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

Disassembly:
push 0xffffffffffffffff
push 0x1019c8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
push str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov edx, 0x10201619
xor cl, cl
mov eax, 0x7fd
lea esi, [esp + 0x38]
call fcn.10111280
xor ebx, ebx
mov dword [esp + 0x50], ebx
mov ecx, dword [0x103b321c]
push str.DA_cmd::CMD_SDMMC_WriteMBR__
push ecx
push eax
call fcn.10111350
mov esi, dword [esp + 0x6c]
add esp, 0xc
mov dword [esp + 0x50], 0xffffffff
cmp esi, ebx
je 0x1004f701
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0xaf3addc7
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1004f701
cmp edi, ebx
je 0x1004f17c
mov ecx, dword [esp + 0x64]
push ecx
call edi
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0xaf3addc7
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
xor ebp, ebp
add eax, edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x1004f1fb
xor edi, edi
cmp ebp, eax
jb 0x1004f1ac
call fcn.1016d669
mov eax, dword [esi + 0xc]
cmp dword [edi + eax + 0x64], 9
jne 0x1004f1d4
cmp byte [edi + eax + 0x5b8], 0
je 0x1004f1d4
mov edx, dword [edi + eax + 0x418]
mov ecx, dword [edi + eax + 0x41c]
add ebx, edx
adc dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0xaf3addc7
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
inc ebp
add eax, edx
add edi, 0x5d8
cmp ebp, eax
jb 0x1004f1ac
mov dword [esp + 0x2c], ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0xaf3addc7
imul ecx
add edx, ecx
sar edx, 0xa
xor ebx, ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
je 0x1004f5f2
mov dword [esp + 0x1c], ebx
cmp ebx, eax
jb 0x1004f235
call fcn.1016d669
mov ebp, dword [esi + 0xc]
add ebp, dword [esp + 0x1c]
mov dword [esp + 0x34], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
cmp dword [ebp + 0x64], 9
mov byte [esp + 0x3c], 0
mov dword [esp + 0x40], str._DEBUG:
mov dword [esp + 0x44], str.DA_cmd::CMD_SDMMC_WriteMBR
push ebx
lea edi, [esp + 0x38]
je 0x1004f27e
push str.m_rom_list__u__is_not_an_MBR_BIN___Skipped
mov dword [esp + 0x40], 0x827
call fcn.10017c90
add esp, 8
jmp 0x1004f5c4
cmp byte [ebp + 0x5b8], 0
jne 0x1004f2a1
push str.m_rom_list__u__is_not_enabled___Skipped
mov dword [esp + 0x40], 0x82d
call fcn.10017c90
add esp, 8
jmp 0x1004f5c4
push str.Downloading_m_rom_list__u_...
mov dword [esp + 0x40], 0x831
call fcn.10017c90
push 0x61
push str.send_DA_SDMMC_WRITE_IMAGE_CMD_0x_02X_.
lea edi, [esp + 0x44]
mov dword [esp + 0x44], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x48], 0x836
mov byte [esp + 0x4c], 0
mov dword [esp + 0x50], str._DEBUG:
mov dword [esp + 0x54], str.DA_cmd::CMD_SDMMC_WriteMBR
call fcn.10017c90
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
add esp, 0x10
push 1
push 1
lea edx, [esp + 0x6c]
push edx
push eax
push ecx
mov ebx, 1
mov byte [esp + 0x78], 0x61
call fcn.1004a550
test eax, eax
jne 0x1004f5f9
movzx edx, byte [esi + 0x6b]
push edx
push str.send_checksum_level__X_.
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x40], 0x840
mov byte [esp + 0x44], al
mov dword [esp + 0x48], str._DEBUG:
mov dword [esp + 0x4c], str.DA_cmd::CMD_SDMMC_WriteMBR
call fcn.10017c90
mov al, byte [esi + 0x6b]
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
add esp, 8
push ebx
push ebx
lea ecx, [esp + 0x6c]
push ecx
push esi
push edx
mov byte [esp + 0x78], al
call fcn.1004a550
test eax, eax
jne 0x1004f603
mov byte [esp + 0x3c], al
mov eax, dword [ebp + 0x3f4]
push eax
push eax
mov dword [esp + 0x3c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x40], 0x84b
mov dword [esp + 0x48], str._DEBUG:
mov dword [esp + 0x4c], str.DA_cmd::CMD_SDMMC_WriteMBR
call sym.FlashToolLib.v1.dll_EmmcPartToString
push eax
push str.send_partition__s_0x_02X_.
lea edi, [esp + 0x40]
call fcn.10017c90
mov edx, dword [esp + 0x64]
mov al, byte [ebp + 0x3f4]
add esp, 0xc
push ebx
push ebx
lea ecx, [esp + 0x6c]
push ecx
push esi
push edx
mov byte [esp + 0x78], al
call fcn.1004a550
test eax, eax
jne 0x1004f60d
mov ecx, dword [ebp + 0x40]
mov byte [esp + 0x3c], al
mov eax, dword [ebp + 0x44]
push eax
push ecx
push str._32___64__Send_begin_address___0x_016I64X
lea edi, [esp + 0x40]
mov dword [esp + 0x40], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x44], 0x855
mov dword [esp + 0x4c], str._DEBUG:
mov dword [esp + 0x50], str.DA_cmd::CMD_SDMMC_WriteMBR
call fcn.10017c90
mov edx, dword [ebp + 0x44]
mov eax, dword [ebp + 0x40]
add esp, 0xc
push edx
mov edi, esi
mov esi, dword [esp + 0x5c]
push eax
call fcn.1004ac10
test eax, eax
jne 0x1004f617
mov ecx, dword [ebp + 0x41c]
mov edx, dword [ebp + 0x418]
push ecx
push edx
push str._32___64__Send_image_length___0x_016I64X
lea edi, [esp + 0x40]
mov dword [esp + 0x40], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x44], 0x860
mov byte [esp + 0x48], al
mov dword [esp + 0x4c], str._DEBUG:
mov dword [esp + 0x50], str.DA_cmd::CMD_SDMMC_WriteMBR
call fcn.10017c90
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp + 0x418]
mov ebx, dword [esp + 0x68]
add esp, 0xc
push eax
push ecx
mov edi, ebx
call fcn.1004ac10
test eax, eax
jne 0x1004f621
push str.wait_for_image_range_validation_...
lea edi, [esp + 0x38]
mov dword [esp + 0x38], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x3c], 0x86a
mov byte [esp + 0x40], al
mov dword [esp + 0x44], str._DEBUG:
mov dword [esp + 0x48], str.DA_cmd::CMD_SDMMC_WriteMBR
call fcn.10017c90
add esp, 4
push 1
push 0x1388
push 1
lea edx, [esp + 0x27]
push edx
push ebx
push esi
mov ebx, 1
call fcn.1004a830
test eax, eax
jne 0x1004f62b
mov al, byte [esp + 0x1b]
cmp al, 0x5a
jne 0x1004f635
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x30]
push 0x20000
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [ebp + 0x41c]
push ecx
mov ecx, dword [ebp + 0x418]
push edx
mov edx, dword [ebp + 0x414]
push eax
push ecx
push edx
push esi
push ebx
call fcn.100519f0
test eax, eax
jne 0x1004f6b5
cmp dword [ebp + 0x410], 0x10
jb 0x1004f55a
mov eax, dword [ebp + 0x3fc]
jmp 0x1004f560
lea eax, [ebp + 0x3fc]
push eax
push str.Start_Verify_Download_Image___s_
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x40], 0x897
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], str._DEBUG:
mov dword [esp + 0x4c], str.DA_cmd::CMD_SDMMC_WriteMBR
call fcn.10017c90
add esp, 8
push ebp
push esi
mov ecx, ebx
call fcn.10058440
test eax, eax
jne 0x1004f6bf
mov eax, dword [ebp + 0x418]
add dword [esp + 0x24], eax
mov ecx, dword [ebp + 0x41c]
mov ebx, dword [esp + 0x20]
adc dword [esp + 0x28], ecx
mov esi, dword [esp + 0x60]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
add dword [esp + 0x1c], 0x5d8
mov eax, 0xaf3addc7
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
mov dword [esp + 0x20], ebx
cmp ebx, eax
jb 0x1004f235
xor eax, eax
jmp 0x1004f757
mov eax, 2
jmp 0x1004f757
mov eax, 3
jmp 0x1004f757
mov eax, 4
jmp 0x1004f757
mov eax, 5
jmp 0x1004f757
mov eax, 6
jmp 0x1004f757
mov eax, 7
jmp 0x1004f757
cmp al, 0xa5
je 0x1004f643
mov eax, 8
jmp 0x1004f757
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x58]
push edx
push eax
mov ecx, esi
mov al, bl
push ecx
mov ecx, 0x2710
mov dl, al
call fcn.1004abb0
test eax, eax
je 0x1004f66c
mov eax, 9
jmp 0x1004f757
mov eax, dword [esp + 0x58]
push eax
push eax
mov dword [esp + 0x3c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x40], 0x87e
mov byte [esp + 0x44], 0xff
mov dword [esp + 0x48], str._ERROR:
mov dword [esp + 0x4c], str.DA_cmd::CMD_SDMMC_WriteMBR
call sym.FlashToolLib.v1.dll_StatusToString
push eax
push str._s__d_
lea edi, [esp + 0x40]
call fcn.10017c90
mov eax, 0xa
jmp 0x1004f754
mov eax, 0xb
jmp 0x1004f757
mov edx, dword [esp + 0x20]
push edx
push str.VerifyOneImageChecksum___bin__d__failed
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x40], 0x89b
mov byte [esp + 0x44], 0xff
mov dword [esp + 0x48], str._ERROR:
mov dword [esp + 0x4c], str.DA_cmd::CMD_SDMMC_WriteMBR
call fcn.10017c90
add esp, 8
mov eax, 0xc
jmp 0x1004f757
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0xaf3addc7
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
push str.invalid_arguments___dl_handle0x_08X___of_roms___llu
lea edi, [esp + 0x40]
mov dword [esp + 0x40], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x44], 0x801
mov byte [esp + 0x48], 0xff
mov dword [esp + 0x4c], str._ERROR:
mov dword [esp + 0x50], str.DA_cmd::CMD_SDMMC_WriteMBR
call fcn.10017c90
mov eax, 1
add esp, 0xc
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x18