Function at 0x1004e570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1019f190
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [esp + 0x88]
push str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov edx, 0x10201619
xor cl, cl
mov eax, 0x70f
lea esi, [esp + 0x40]
call fcn.10111280
mov dword [esp + 0x78], 0
mov ecx, dword [0x103b321c]
push str.DA_cmd::CMD_SDMMC_WriteImage__
push ecx
push eax
call fcn.10111350
add esp, 0xc
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x28], 0x400000
test ebx, ebx
je 0x1004f059
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0xaf3addc7
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1004f059
test edi, edi
je 0x1004e61e
mov ecx, dword [esp + 0x8c]
push 0
push ecx
call edi
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0xaf3addc7
imul ecx
add edx, ecx
sar edx, 0xa
xor esi, esi
mov eax, edx
shr eax, 0x1f
xor ebp, ebp
add eax, edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
je 0x1004e6bd
xor edi, edi
cmp esi, eax
jb 0x1004e658
call fcn.1016d669
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + eax + 0x64]
cmp ecx, 7
je 0x1004e69a
cmp ecx, 9
je 0x1004e69a
cmp byte [edi + eax + 0x5b8], 0
je 0x1004e69a
test ebp, ebp
jne 0x1004e680
mov dword [esp + 0x20], esi
mov ebp, 1
mov edx, dword [edi + eax + 0x418]
add dword [esp + 0x2c], edx
mov ecx, dword [edi + eax + 0x41c]
mov dword [esp + 0x1c], esi
adc dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x10]
sub ecx, eax
mov eax, 0xaf3addc7
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add edi, 0x5d8
cmp esi, eax
jb 0x1004e658
lea edx, [ebx + 0x20e0]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.100633c0
mov dword [esp + 0x78], 1
mov ecx, dword [esp + 0x68]
mov esi, dword [ecx]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], esi
mov ebp, dword [esp + 0x68]
test edi, edi
je 0x1004e6f6
cmp edi, dword [esp + 0x50]
je 0x1004e6fb
call fcn.1016d669
cmp esi, ebp
je 0x1004e812
test edi, edi
jne 0x1004e7ea
call fcn.1016d669
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x1004e71c
call fcn.1016d669
mov ecx, dword [esi + 0x38]
sub ecx, dword [esi + 0x34]
mov eax, 0xaf3addc7
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x1004e73c
call fcn.1016d669
mov ecx, dword [esi + 0x34]
cmp byte [ecx + 0x5b8], 0
je 0x1004e7fc
xor ebp, ebp
xor edi, edi
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x1004e7f1
call fcn.1016d669
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x1004e76d
call fcn.1016d669
mov ecx, dword [esi + 0x38]
sub ecx, dword [esi + 0x34]
mov eax, 0xaf3addc7
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jae 0x1004e7fc
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x1004e7f8
call fcn.1016d669
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x1004e7a3
call fcn.1016d669
mov ecx, dword [esi + 0x38]
sub ecx, dword [esi + 0x34]
mov eax, 0xaf3addc7
imul ecx
add edx, ecx
sar edx, 0xa
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebp, ecx
jb 0x1004e7c5
call fcn.1016d669
mov eax, dword [esi + 0x34]
mov edx, dword [eax + edi + 0x418]
add dword [esp + 0x2c], edx
mov eax, dword [eax + edi + 0x41c]
adc dword [esp + 0x30], eax
inc ebp
add edi, 0x5d8
jmp 0x1004e750
mov eax, dword [edi]
jmp 0x1004e712
mov eax, dword [eax]
jmp 0x1004e763
mov eax, dword [eax]
jmp 0x1004e799
lea esi, [esp + 0x34]
call fcn.100fad00
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
jmp 0x1004e6e8
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0xaf3addc7
imul ecx
add edx, ecx
sar edx, 0xa
xor esi, esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x18], esi
je 0x1004ed96
mov dword [esp + 0x24], esi
cmp esi, eax
jb 0x1004e84c
call fcn.1016d669
mov ebp, dword [ebx + 0xc]
add ebp, dword [esp + 0x24]
mov byte [esp + 0x44], 0
mov eax, dword [ebp + 0x64]
mov dword [esp + 0x48], str._DEBUG:
mov dword [esp + 0x4c], str.DA_cmd::CMD_SDMMC_WriteImage
push esi
lea edi, [esp + 0x40]
cmp eax, 9
jne 0x1004e897
push str.m_rom_list__u__is_an_MBR_BIN___Skipped
mov dword [esp + 0x44], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x48], 0x74f
call fcn.10017c90
add esp, 8
jmp 0x1004ed68
cmp eax, 7
jne 0x1004e8be
push str.m_rom_list__u__is_an_SV5_BL_BIN___Skipped
mov dword [esp + 0x44], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x48], 0x755
call fcn.10017c90
add esp, 8
jmp 0x1004ed68
cmp byte [ebp + 0x5b8], 0
jne 0x1004e8e9
push str.m_rom_list__u__is_not_enabled___Skipped
mov dword [esp + 0x44], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x48], 0x75b
call fcn.10017c90
add esp, 8
jmp 0x1004ed68
mov ebx, str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
push str.Downloading_m_rom_list__u_...
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0x75f
call fcn.10017c90
push 0x61
push str.send_DA_SDMMC_WRITE_IMAGE_CMD_0x_02X_.
lea edi, [esp + 0x4c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0x764
mov byte [esp + 0x54], 0
mov dword [esp + 0x58], str._DEBUG:
mov dword [esp + 0x5c], str.DA_cmd::CMD_SDMMC_WriteImage
call fcn.10017c90
mov edx, dword [esp + 0x94]
mov esi, dword [esp + 0x90]
add esp, 0x10
push 1
push 1
lea ecx, [esp + 0x94]
push ecx
push edx
push esi
mov ebx, 1
mov byte [esp + 0xa0], 0x61
call fcn.1004a550
test eax, eax
jne 0x1004edbb
movzx eax, byte [esi + 0x30]
mov ecx, dword [esp + 0x84]
push eax
push esi
call fcn.10063100
mov ebx, eax
xor eax, eax
mov dword [esp + 0x3c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov byte [esp + 0x44], al
mov dword [esp + 0x48], str._DEBUG:
mov dword [esp + 0x4c], str.DA_cmd::CMD_SDMMC_WriteImage
lea edi, [esp + 0x3c]
cmp ebx, eax
jne 0x1004ede3
mov ebx, dword [esp + 0x88]
movzx ecx, byte [ebx + 0x6b]
push ecx
push 0x10224024
mov dword [esp + 0x48], 0x77a
call fcn.10017c90
mov ecx, dword [esp + 0x8c]
mov dl, byte [ebx + 0x6b]
add esp, 8
push 1
push 1
lea eax, [esp + 0x94]
push eax
push ecx
push esi
mov ebx, 1
mov byte [esp + 0xa0], dl
call fcn.1004a550
test eax, eax
jne 0x1004ee12
mov byte [esp + 0x44], al
mov eax, dword [ebp + 0x3f4]
push eax
push eax
mov dword [esp + 0x44], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x48], 0x785
mov dword [esp + 0x50], str._DEBUG:
mov dword [esp + 0x54], str.DA_cmd::CMD_SDMMC_WriteImage
call sym.FlashToolLib.v1.dll_EmmcPartToString
push eax
push 0x10224040
lea edi, [esp + 0x48]
call fcn.10017c90
mov ecx, dword [esp + 0x90]
mov dl, byte [ebp + 0x3f4]
add esp, 0xc
push ebx
push ebx
lea eax, [esp + 0x94]
push eax
push ecx
push esi
mov byte [esp + 0xa0], dl
call fcn.1004a550
test eax, eax
jne 0x1004ee2e
mov edx, dword [ebp + 0x44]
mov byte [esp + 0x44], al
mov eax, dword [ebp + 0x40]
push edx
push eax
push str._32___64__Send_begin_address___0x_016I64X
lea edi, [esp + 0x48]
mov dword [esp + 0x48], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x4c], 0x792
mov dword [esp + 0x54], str._DEBUG:
mov dword [esp + 0x58], str.DA_cmd::CMD_SDMMC_WriteImage
call fcn.10017c90
mov ecx, dword [ebp + 0x44]
mov edx, dword [ebp + 0x40]
mov ebx, dword [esp + 0x90]
add esp, 0xc
push ecx
push edx
mov edi, ebx
call fcn.1004ac10
test eax, eax
jne 0x1004ee4a
mov ecx, dword [ebp + 0x41c]
mov eax, dword [ebp + 0x418]
push ecx
push eax
push str._32___64__Send_image_length___0x_016I64X
lea edi, [esp + 0x48]
mov dword [esp + 0x48], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x4c], 0x79d
mov byte [esp + 0x50], 0
mov dword [esp + 0x54], str._DEBUG:
mov dword [esp + 0x58], str.DA_cmd::CMD_SDMMC_WriteImage
call fcn.10017c90
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp + 0x418]
add esp, 0xc
push eax
push ecx
mov edi, ebx
call fcn.1004ac10
test eax, eax
jne 0x1004ee66
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push edx
mov byte [esp + 0x48], al
mov eax, dword [esp + 0x24]
push eax
push ebx
push str.send_index__d_first:__d__end__d
lea edi, [esp + 0x4c]
mov dword [esp + 0x4c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x50], 0x7a3
mov dword [esp + 0x58], str._DEBUG:
mov dword [esp + 0x5c], str.DA_cmd::CMD_SDMMC_WriteImage
call fcn.10017c90
mov esi, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
add esp, 0x10
push 1
push 1
lea ecx, [esp + 0x94]
push ecx
push esi
mov byte [esp + 0x9c], bl
push edx
mov ebx, 1
call fcn.1004a550
test eax, eax
jne 0x1004ee82
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
call fcn.10062120
mov ebx, eax
push ebx
push str.dl_image_status__d_
lea edi, [esp + 0x44]
mov dword [esp + 0x44], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x48], 0x7a9
mov byte [esp + 0x4c], 0
mov dword [esp + 0x50], str._DEBUG:
mov dword [esp + 0x54], str.DA_cmd::CMD_SDMMC_WriteImage
call fcn.10017c90
mov edi, dword [esp + 0x88]
add esp, 8
push ebx
push esi
mov al, 1
push edi
mov cl, al
call fcn.1004aaa0
test eax, eax
jne 0x1004ee9e
lea eax, [esp + 0x28]
push eax
push esi
mov al, 1
push edi
mov ecx, 0x2710
mov dl, al
call fcn.1004abb0
test eax, eax
jne 0x1004eeba
push str.wait_for_image_range_validation_...
lea edi, [esp + 0x40]
mov dword [esp + 0x40], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x44], 0x7b6
mov byte [esp + 0x48], al
mov dword [esp + 0x4c], str._DEBUG:
mov dword [esp + 0x50], str.DA_cmd::CMD_SDMMC_WriteImage
call fcn.10017c90
mov edx, dword [esp + 0x84]
add esp, 4
push 1
push 0x1388
push 1
lea ecx, [esp + 0x23]
push ecx
push esi
push edx
mov ebx, 1
call fcn.1004a830
test eax, eax
jne 0x1004eed6
mov al, byte [esp + 0x17]
cmp al, 0x5a
jne 0x1004eef2
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
push 0x2710
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [ebp + 0x41c]
push ecx
mov ecx, dword [ebp + 0x418]
push edx
mov edx, dword [esp + 0x9c]
push eax
push ecx
push ebp
push edx
mov edx, dword [esp + 0xbc]
mov ecx, esi
call fcn.10051ef0
mov ebx, eax
test ebx, ebx
jne 0x1004efb2
cmp dword [ebp + 0x410], 0x10
jb 0x1004ecf5
mov eax, dword [ebp + 0x3fc]
jmp 0x1004ecfb
lea eax, [ebp + 0x3fc]
push eax
mov ebx, str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
push str.Start_Verify_Download_Image___s_
lea edi, [esp + 0x44]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0x7e7
mov byte [esp + 0x4c], 0
mov dword [esp + 0x50], str._DEBUG:
mov dword [esp + 0x54], str.DA_cmd::CMD_SDMMC_WriteImage
call fcn.10017c90
mov ecx, dword [esp + 0x88]
add esp, 8
push ebp
push esi
call fcn.10058440
test eax, eax
jne 0x1004f009
mov eax, dword [ebp + 0x418]
add dword [esp + 0x34], eax
mov ecx, dword [ebp + 0x41c]
mov esi, dword [esp + 0x18]
adc dword [esp + 0x38], ecx
mov ebx, dword [esp + 0x88]
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
add dword [esp + 0x24], 0x5d8
mov eax, 0xaf3addc7
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [esp + 0x18], esi
cmp esi, eax
jb 0x1004e84c
lea esi, [esp + 0x50]
mov dword [esp + 0x78], 3
call fcn.10063790
mov edx, dword [esp + 0x50]
push edx
call fcn.1016d679
add esp, 4
xor eax, eax
jmp 0x1004f0af
lea esi, [esp + 0x50]
mov dword [esp + 0x78], 2
call fcn.10063790
mov edx, dword [esp + 0x50]
push edx
call fcn.1016d679
add esp, 4
mov eax, 2
jmp 0x1004f0af
push ebx
push str.Send_phone_info_fail__ret__d_
mov dword [esp + 0x48], 0x773
call fcn.10017c90
add esp, 8
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x7c], 0xffffffff
call fcn.10063470
mov eax, ebx
jmp 0x1004f0af
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x7c], 0xffffffff
call fcn.10063470
mov eax, 3
jmp 0x1004f0af
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x7c], 0xffffffff
call fcn.10063470
mov eax, 4
jmp 0x1004f0af
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x7c], 0xffffffff
call fcn.10063470
mov eax, 5
jmp 0x1004f0af
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x7c], 0xffffffff
call fcn.10063470
mov eax, 6
jmp 0x1004f0af
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x7c], 0xffffffff
call fcn.10063470
mov eax, 0xd
jmp 0x1004f0af
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x7c], 0xffffffff
call fcn.10063470
mov eax, 0xe
jmp 0x1004f0af
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x7c], 0xffffffff
call fcn.10063470
mov eax, 9
jmp 0x1004f0af
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x7c], 0xffffffff
call fcn.10063470
mov eax, 7
jmp 0x1004f0af
cmp al, 0xa5
je 0x1004ef12
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x7c], 0xffffffff
call fcn.10063470
mov eax, 8
jmp 0x1004f0af
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x80]
push ecx
push esi
mov al, bl
push edx
mov ecx, 0x2710
mov dl, al
call fcn.1004abb0
test eax, eax
je 0x1004ef51
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x7c], 0xffffffff
call fcn.10063470
mov eax, 9
jmp 0x1004f0af
mov eax, dword [esp + 0x80]
push eax
push eax
mov dword [esp + 0x44], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x48], 0x7ca
mov byte [esp + 0x4c], 0xff
mov dword [esp + 0x50], str._ERROR:
mov dword [esp + 0x54], str.DA_cmd::CMD_SDMMC_WriteImage
call sym.FlashToolLib.v1.dll_StatusToString
push eax
push str._s__d_
lea edi, [esp + 0x48]
call fcn.10017c90
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x7c], 0xffffffff
call fcn.10063470
mov eax, 0xa
jmp 0x1004f0af
push ebx
push ebx
mov dword [esp + 0x44], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x48], 0x7e0
mov byte [esp + 0x4c], 0xff
mov dword [esp + 0x50], str._ERROR:
mov dword [esp + 0x54], str.DA_cmd::CMD_SDMMC_WriteImage
call sym.FlashToolLib.v1.dll_StatusToString
push eax
push 0x1022410c
lea edi, [esp + 0x48]
call fcn.10017c90
add esp, 0xc
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x7c], 0xffffffff
call fcn.10063470
mov eax, ebx
jmp 0x1004f0af
mov eax, dword [esp + 0x18]
push eax
push str.VerifyOneImageChecksum___bin__d__failed
lea edi, [esp + 0x44]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0x7eb
mov byte [esp + 0x4c], 0xff
mov dword [esp + 0x50], str._ERROR:
mov dword [esp + 0x54], str.DA_cmd::CMD_SDMMC_WriteImage
call fcn.10017c90
add esp, 8
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x7c], 0xffffffff
call fcn.10063470
mov eax, 0xc
jmp 0x1004f0af
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov eax, 0xaf3addc7
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ebx
push str.invalid_arguments___dl_handle0x_08X___of_roms___llu
lea edi, [esp + 0x48]
mov dword [esp + 0x48], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x4c], 0x714
mov byte [esp + 0x50], 0xff
mov dword [esp + 0x54], str._ERROR:
mov dword [esp + 0x58], str.DA_cmd::CMD_SDMMC_WriteImage
call fcn.10017c90
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x18