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

Disassembly:
push 0xffffffffffffffff
push 0x1019c7d4
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x2e4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2f4]
mov ebp, dword [esp + 0x2f8]
cmp dword [ebp + 0x18], 0x10
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x318]
mov dword [esp + 0x78], eax
lea eax, [ebp + 4]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], eax
jb 0x10051f63
mov eax, dword [eax]
mov ebx, dword [esp + 0x314]
mov esi, dword [esp + 0x300]
mov ecx, dword [esp + 0x2fc]
push ebx
push esi
push ecx
push eax
push str.ROM_FILE__s_:_length__llu___packet_length__u_.
lea edi, [esp + 0x34]
mov dword [esp + 0x34], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x38], 0xbad
mov byte [esp + 0x3c], 0
mov dword [esp + 0x40], str._DEBUG:
mov dword [esp + 0x44], str.DA_cmd::SendDataWithRetransmission
call fcn.10017c90
mov edi, dword [esp + 0x78]
add esp, 0x14
push ebp
mov ecx, edi
call fcn.10058010
test al, al
jne 0x10052002
push str.failed.
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x28], 0xbb3
mov byte [esp + 0x2c], 0xff
mov dword [esp + 0x30], str._ERROR:
mov dword [esp + 0x34], str.DA_cmd::SendDataWithRetransmission
call fcn.10017c90
add esp, 4
mov eax, 0x11
jmp 0x100529d4
mov eax, ebp
mov ecx, edi
call fcn.10058340
mov edx, dword [esp + 0x2fc]
mov dword [esp + 0x70], eax
xor eax, eax
push eax
xor edi, edi
add edx, 0xffffffff
push ebx
adc esi, 0xffffffff
push esi
push edx
mov dword [esp + 0x7c], edi
call fcn.10176970
mov esi, eax
lea eax, [ebp + 0x3f8]
push eax
lea ecx, [esp + 0x120]
inc esi
push ecx
mov dword [esp + 0x70], esi
mov dword [esp + 0x50], edi
call fcn.100d8aa0
lea ecx, [esp + 0x9c]
mov dword [esp + 0x2ec], edi
call fcn.1013bd20
mov byte [esp + 0x2ec], 1
cmp byte [esp + 0x2ad], 0
je 0x100522ab
mov eax, dword [esp + 0x120]
mov edi, 0x10
cmp dword [esp + 0x134], edi
jae 0x10052091
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x24]
call fcn.10004550
mov byte [esp + 0x2ec], 2
mov eax, dword [esp + 0x2b8]
mov edx, dword [esp + 0x148]
push edx
mov edx, dword [esp + 0x148]
xor ecx, ecx
add eax, dword [esp + 0x2d0]
push edx
adc ecx, dword [esp + 0x2d8]
lea esi, [esp + 0xa4]
push ecx
push eax
xor eax, eax
push eax
push ebx
lea eax, [esp + 0x38]
push eax
call fcn.1013bf70
mov byte [esp + 0x2ec], 1
mov byte [esp + 0x1f], al
cmp dword [esp + 0x38], edi
jb 0x10052100
mov ecx, dword [esp + 0x24]
push ecx
call fcn.1016d679
add esp, 4
cmp byte [esp + 0x1f], 0
je 0x10052190
cmp byte [esp + 0x118], 0
je 0x10052190
lea eax, [esp + 0x54]
lea ecx, [esp + 0x9c]
call fcn.1013bf50
mov eax, dword [ebp + 0x564]
mov esi, dword [ebp + 0x560]
mov ecx, dword [ebp + 0x55c]
mov edx, dword [ebp + 0x558]
push eax
mov eax, dword [ebp + 0x554]
mov edi, dword [ebp + 0x538]
push esi
push ecx
push edx
mov edx, dword [ebp + 0x53c]
push eax
mov eax, dword [ebp + 0x550]
push eax
mov eax, dword [ebp + 0x54c]
push eax
mov eax, dword [ebp + 0x548]
push eax
mov eax, dword [ebp + 0x544]
push eax
mov eax, dword [ebp + 0x540]
push eax
mov eax, dword [esp + 0x7c]
mov ecx, edi
call fcn.1012a360
lea eax, [esp + 0x54]
call fcn.101008e0
mov edi, 0x10
lea esi, [esp + 0x9c]
call fcn.1013c180
mov ecx, dword [esp + 0x120]
test eax, eax
jne 0x1005223b
cmp dword [esp + 0x134], edi
jae 0x100521bb
lea ecx, [esp + 0x120]
cmp dword [ebp + 0x18], edi
jb 0x100521c8
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
jmp 0x100521cc
mov eax, dword [esp + 0x3c]
push ebx
push ecx
push eax
push str.mgr.Start___failed__rom__s___path__s___packageLength__d_.
lea edi, [esp + 0x30]
mov dword [esp + 0x30], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x34], 0xbd1
mov byte [esp + 0x38], 0xff
mov dword [esp + 0x3c], str._ERROR:
mov dword [esp + 0x40], str.DA_cmd::SendDataWithRetransmission
call fcn.10017c90
add esp, 0x10
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2ec], 0
call fcn.1013bd90
lea eax, [esp + 0x11c]
push eax
mov dword [esp + 0x2f0], 0xffffffff
call fcn.100d8b40
mov eax, 7
jmp 0x100529d4
cmp dword [esp + 0x134], edi
jae 0x1005224b
lea ecx, [esp + 0x120]
cmp dword [ebp + 0x18], edi
jb 0x10052258
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
jmp 0x1005225c
mov eax, dword [esp + 0x3c]
push ebx
push ecx
push eax
push str.mgr.Start___succeeds__rom__s___path__s___packageLength__d_.
lea edi, [esp + 0x30]
mov dword [esp + 0x30], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x34], 0xbd6
mov byte [esp + 0x38], 0
mov dword [esp + 0x3c], str._DEBUG:
mov dword [esp + 0x40], str.DA_cmd::SendDataWithRetransmission
call fcn.10017c90
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x58]
lea eax, [esp + 0xac]
add esp, 0x10
mov dword [esp + 0x2c4], eax
test esi, esi
jbe 0x100529a6
dec esi
cmp edi, esi
sete byte [esp + 0x18]
xor eax, eax
push eax
push ebx
push eax
push edi
call fcn.101769e0
cmp byte [esp + 0x18], 0
mov esi, eax
mov edi, edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], edi
je 0x100522e4
mov ebp, dword [esp + 0x2fc]
sub ebp, esi
jmp 0x100522e6
mov ebp, ebx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x2b4], ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
push 0
push 0
lea edx, [esp + 0x20]
push edx
push eax
push ecx
mov ebx, 1
mov byte [esp + 0x2c], 0x5a
call fcn.1004a550
test eax, eax
jne 0x1005257f
mov edx, dword [esp + 0x2b8]
cmp byte [esp + 0x2ad], al
je 0x10052341
add edx, esi
adc eax, edi
push eax
push edx
push ebp
lea ecx, [esp + 0x128]
push ecx
call fcn.100db300
jmp 0x10052354
add edx, esi
adc eax, edi
push eax
push edx
push ebp
lea esi, [esp + 0x128]
call fcn.100db890
cmp byte [esp + 0x2c1], 0
mov edi, eax
je 0x100525ed
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
push 0
push 1
push edi
push ecx
push esi
mov ebx, ebp
call fcn.1004a550
test eax, eax
jne 0x10052659
push eax
push ebp
call fcn.100dbaf0
mov edi, dword [esp + 0x60]
movzx eax, ax
push 0
mov edx, eax
push 1
mov byte [esp + 0x49], al
lea eax, [esp + 0x48]
push eax
push edi
shr edx, 8
push esi
mov ebx, 2
mov byte [esp + 0x54], dl
call fcn.1004a550
xor ebx, ebx
cmp eax, ebx
jne 0x100526c7
push ebx
push 0xea60
push 1
lea ecx, [esp + 0x2b]
push ecx
push edi
mov byte [esp + 0x33], bl
push esi
mov ebx, 1
call fcn.1004a830
test eax, eax
jne 0x10052734
mov al, byte [esp + 0x1f]
cmp al, 0x69
je 0x10052406
cmp al, 0xa5
je 0x10052876
cmp al, 0x96
je 0x10052952
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
jmp 0x100522f1
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x1005241b
cmp dword [eax], 0x2694
je 0x100527a2
cmp dword [esp + 0x44], ebx
je 0x1005255a
mov edx, dword [esp + 0x31c]
fild dword [esp + 0x31c]
xor ecx, ecx
add ebp, dword [esp + 0x54]
adc ecx, dword [esp + 0x58]
add ebp, dword [esp + 0x304]
adc ecx, dword [esp + 0x308]
test edx, edx
jge 0x10052455
fadd qword [0x1024b9f8]
mov esi, dword [esp + 0x310]
fnstcw word [esp + 0x18]
mov edi, dword [esp + 0x30c]
mov eax, ecx
mov edx, ecx
and eax, 0x7fffffff
mov dword [esp + 0x90], eax
and edx, 0x80000000
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ebp
fild qword [esp + 0x8c]
mov dword [esp + 0x84], ebx
fild qword [esp + 0x84]
mov eax, esi
mov edx, esi
and eax, 0x7fffffff
fchs
mov dword [esp + 0x80], eax
faddp st(1)
and edx, 0x80000000
mov dword [esp + 0x98], edx
mov dword [esp + 0x7c], edi
fild qword [esp + 0x7c]
mov dword [esp + 0x94], ebx
fild qword [esp + 0x94]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x4c], eax
fchs
faddp st(1)
fdivp st(1)
fmul st(1)
fldcw word [esp + 0x4c]
fistp qword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
mov edx, eax
sub edx, dword [esp + 0x6c]
fldcw word [esp + 0x18]
je 0x10052558
mov edx, dword [esp + 0x78]
push edx
push esi
push edi
push ecx
mov dword [esp + 0x5c], eax
fild dword [esp + 0x5c]
mov dword [esp + 0x7c], eax
push ebp
test eax, eax
jge 0x10052524
fadd qword [0x1024b9f8]
fdivrp st(1)
fmul qword [0x1024b9e0]
fnstcw word [esp + 0x2c]
movzx eax, word [esp + 0x2c]
or eax, 0xc00
mov dword [esp + 0x60], eax
fldcw word [esp + 0x60]
fistp dword [esp + 0x60]
mov al, byte [esp + 0x60]
movzx ecx, al
push ecx
fldcw word [esp + 0x30]
call dword [esp + 0x5c]
jmp 0x1005255a
fstp st(0)
mov eax, dword [esp + 0x48]
inc eax
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0x68]
jae 0x100529a6
mov ebx, dword [esp + 0x314]
mov esi, dword [esp + 0x68]
mov edi, eax
jmp 0x100522b3
push str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0xbf7
lea esi, [esp + 0x24]
call fcn.10111280
mov byte [esp + 0x2ec], 3
mov edx, dword [0x103b321c]
push str.DA_cmd::SendDataWithRetransmission___WriteData8_hCOM__ACK___fail.
push edx
push eax
call fcn.10111350
add esp, 0xc
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2ec], 0
call fcn.1013bd90
lea eax, [esp + 0x11c]
push eax
mov dword [esp + 0x2f0], 0xffffffff
call fcn.100d8b40
mov eax, 1
jmp 0x100529d4
push str.GetDLBuf___is_not_ready_
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x28], 0xbff
mov byte [esp + 0x2c], 0xff
mov dword [esp + 0x30], str._ERROR:
mov dword [esp + 0x34], str.DA_cmd::SendDataWithRetransmission
call fcn.10017c90
add esp, 4
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2ec], 0
call fcn.1013bd90
lea ecx, [esp + 0x11c]
push ecx
mov dword [esp + 0x2f0], 0xffffffff
call fcn.100d8b40
mov eax, 0xfc5
jmp 0x100529d4
push ebp
push edi
push str.WriteData8___data_fail_p_data_buf__p__currentPacketLength__d_.
lea edi, [esp + 0x2c]
mov dword [esp + 0x2c], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x30], 0xc0a
mov byte [esp + 0x34], 0xff
mov dword [esp + 0x38], str._ERROR:
mov dword [esp + 0x3c], str.DA_cmd::SendDataWithRetransmission
call fcn.10017c90
add esp, 0xc
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2ec], 0
call fcn.1013bd90
lea edx, [esp + 0x11c]
push edx
mov dword [esp + 0x2f0], 0xffffffff
call fcn.100d8b40
mov eax, 2
jmp 0x100529d4
push str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0xc22
lea esi, [esp + 0x24]
call fcn.10111280
mov byte [esp + 0x2ec], 4
mov ecx, dword [0x103b321c]
push str.DA_cmd::SendDataWithRetransmission___WriteData16___checksum_fail
push ecx
push eax
call fcn.10111350
add esp, 0xc
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2ec], bl
call fcn.1013bd90
lea edx, [esp + 0x11c]
push edx
mov dword [esp + 0x2f0], 0xffffffff
call fcn.100d8b40
mov eax, 4
jmp 0x100529d4
push str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0xc2f
lea esi, [esp + 0x24]
call fcn.10111280
mov byte [esp + 0x2ec], 5
mov ecx, dword [0x103b321c]
push str.DA_cmd::SendDataWithRetransmission___ReadData8___handle_download_no_response_
push ecx
push eax
call fcn.10111350
add esp, 0xc
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2ec], 0
call fcn.1013bd90
lea edx, [esp + 0x11c]
push edx
mov dword [esp + 0x2f0], 0xffffffff
call fcn.100d8b40
mov eax, 5
jmp 0x100529d4
push ebx
push 1
lea eax, [esp + 0x20]
push eax
push edi
push esi
mov ebx, 1
mov byte [esp + 0x2c], 0x96
call fcn.1004a550
xor ebx, ebx
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov byte [esp + 0x28], 0xff
mov dword [esp + 0x2c], str._ERROR:
mov dword [esp + 0x30], str.DA_cmd::SendDataWithRetransmission
lea edi, [esp + 0x20]
cmp eax, ebx
je 0x1005282b
push eax
push str.STOP_transmission_fails__
mov dword [esp + 0x2c], 0xc3b
call fcn.10017c90
add esp, 8
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2ec], bl
call fcn.1013bd90
lea ecx, [esp + 0x11c]
push ecx
mov dword [esp + 0x2f0], 0xffffffff
call fcn.100d8b40
lea eax, [ebx + 9]
jmp 0x100529d4
push ebx
push str.STOP_transmission_OKAY__
mov dword [esp + 0x2c], 0xc3e
call fcn.10017c90
add esp, 8
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2ec], bl
call fcn.1013bd90
lea edx, [esp + 0x11c]
push edx
mov dword [esp + 0x2f0], 0xffffffff
call fcn.100d8b40
mov eax, 0x3e8
jmp 0x100529d4
lea eax, [esp + 0x44]
push eax
push edi
xor ebx, ebx
push esi
xor al, al
mov ecx, 0x2710
mov dl, 1
mov dword [esp + 0x50], ebx
call fcn.1004abb0
test eax, eax
je 0x100528c8
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2ec], bl
call fcn.1013bd90
lea ecx, [esp + 0x11c]
push ecx
mov dword [esp + 0x2f0], 0xffffffff
call fcn.100d8b40
lea eax, [ebx + 6]
jmp 0x100529d4
mov edx, dword [esp + 0x74]
cmp dword [edx + 0x18], 0x10
jb 0x100528da
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
jmp 0x100528de
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x44]
push esi
mov dword [esp + 0x24], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x28], 0xc4d
mov byte [esp + 0x2c], 0xff
mov dword [esp + 0x30], str._ERROR:
mov dword [esp + 0x34], str.DA_cmd::SendDataWithRetransmission
call sym.FlashToolLib.v1.dll_StatusToString
push eax
push edx
push str.Rom__s___errorCode__s_.
lea edi, [esp + 0x2c]
call fcn.10017c90
add esp, 0xc
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2ec], bl
call fcn.1013bd90
lea ecx, [esp + 0x11c]
push ecx
mov dword [esp + 0x2f0], 0xffffffff
call fcn.100d8b40
mov eax, esi
jmp 0x100529d4
push str.STOP_
lea edi, [esp + 0x24]
mov dword [esp + 0x24], str.FlashToolLib_sv5_common_generic_src_da_cmd.cpp
mov dword [esp + 0x28], 0xc5f
mov byte [esp + 0x2c], 0xd2
mov dword [esp + 0x30], str._WARN:
mov dword [esp + 0x34], str.DA_cmd::SendDataWithRetransmission
call fcn.10017c90
add esp, 4
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2ec], 0
call fcn.1013bd90
lea edx, [esp + 0x11c]
push edx
jmp 0x100529c2
lea ecx, [esp + 0x9c]
mov byte [esp + 0x2ec], 0
call fcn.1013bd90
lea eax, [esp + 0x11c]
push eax
mov dword [esp + 0x2f0], 0xffffffff
call fcn.100d8b40
xor eax, eax
mov ecx, dword [esp + 0x2e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.1016cb16
add esp, 0x2dc
ret 0x2c