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

Disassembly:
push 0xffffffffffffffff
push 0x10119c14
mov eax, dword fs:[0]
push eax
mov eax, 0x2188
call fcn.100db4f0
mov eax, dword [0x10156de0]
xor eax, esp
mov dword [esp + 0x2180], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10156de0]
xor eax, esp
push eax
lea eax, [esp + 0x219c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x21ac]
sub esp, 0x1c
mov dword [esp + 0x44], esp
mov dword [esp + 0x3c], eax
mov eax, esp
push 0x1012a9d4
push str.2546
push str.__line:
sub esp, 0x1c
mov dword [esp + 0x58], esp
mov dword [esp + 0x5c], ecx
mov ecx, esp
xor ebx, ebx
push 0x1c
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.._adaptor_cflashtool_api.cpp
mov ebp, 1
mov byte [ecx + 4], bl
mov dword [esp + 0x60], eax
call fcn.10007110
lea esi, [esp + 0x134]
call fcn.1001a7b0
add esp, 0x1c
mov esi, eax
mov dword [esp + 0x21cc], ebx
push 3
push 0x1012a9fc
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.10007110
push esi
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x158]
push eax
mov byte [esp + 0x21d8], 1
call fcn.1000a250
add esp, 0xc
push eax
lea ecx, [esp + 0x100]
push ecx
mov byte [esp + 0x21d4], 2
call fcn.1000a300
add esp, 0xc
push eax
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x21d0], 3
call fcn.1000a300
add esp, 0xc
push eax
mov byte [esp + 0x21c8], 4
mov eax, dword [esp + 0x38]
push eax
call fcn.1000a300
sub esp, 0x10
mov byte [esp + 0x21dc], 5
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x23
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.cflashtool_api::DL_GetBMTBlockCount
mov byte [ecx + 4], bl
call fcn.10007110
mov ecx, ebp
lea ebx, [esp + 0x21a8]
mov byte [esp + 0x21dc], 4
call fcn.100537f0
mov esi, 0x10
cmp dword [esp + 0x7c], esi
jb 0x1003a35f
mov eax, dword [esp + 0x68]
push eax
call fcn.100d30aa
add esp, 4
xor ebx, ebx
mov ebp, 0xf
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
cmp dword [esp + 0xec], esi
jb 0x1003a38b
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0xec], ebp
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
cmp dword [esp + 0x140], esi
jb 0x1003a3b9
mov edx, dword [esp + 0x12c]
push edx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x140], ebp
mov dword [esp + 0x13c], ebx
mov byte [esp + 0x12c], bl
cmp dword [esp + 0x44], esi
jb 0x1003a3e1
mov eax, dword [esp + 0x30]
push eax
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x21a4], 0xb
cmp dword [esp + 0x108], esi
jb 0x1003a40e
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.100d30aa
add esp, 4
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x110], ebp
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
mov dword [esp + 0x2c], ebx
call sym.Flashtoollib.dll_DL_GetFTHandle
mov esi, eax
cmp esi, ebx
je 0x1003a45b
lea ecx, [esp + 0x2170]
push ecx
mov dword [esp + 0x21a8], 0xffffffff
call fcn.10053a90
mov eax, esi
jmp 0x1003a7f1
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x1003a476
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2170]
mov dword [edx], ebx
push eax
jmp 0x1003a7df
lea ecx, [esp + 0x16c]
push ecx
push eax
call dword [sym.imp.FlashtoollibEx.dll_flashtool_get_device_info]
mov esi, eax
cmp esi, ebx
je 0x1003a4aa
lea edx, [esp + 0x2170]
push edx
mov dword [esp + 0x21a8], 0xffffffff
call fcn.10053a90
mov eax, esi
jmp 0x1003a7f1
cmp dword [esp + 0x1cc], ebx
jne 0x1003a7a2
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 4
mov dword [esp + 0x14], eax
call fcn.1005ab30
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov esi, eax
call fcn.1000a3d0
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [eax], ebx
mov byte [esp + 0x21a4], 0xc
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1003a504
push eax
call fcn.10072220
add esp, 4
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1003a76a
push 0x1012a9d4
push str.2565
push str.__line:
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x1c
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.._adaptor_cflashtool_api.cpp
mov byte [ecx + 4], bl
call fcn.10007110
lea esi, [esp + 0xe0]
call fcn.1001a7b0
add esp, 0x1c
mov esi, eax
mov byte [esp + 0x21b0], 0xd
push 3
push 0x1012a9fc
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.10007110
push esi
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x158]
push eax
mov byte [esp + 0x21bc], 0xe
call fcn.1000a250
add esp, 0xc
push eax
lea ecx, [esp + 0x11c]
push ecx
mov byte [esp + 0x21b8], 0xf
call fcn.1000a300
add esp, 0xc
push eax
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x21b4], 0x10
call fcn.1000a300
add esp, 0xc
push eax
lea eax, [esp + 0xa4]
push eax
mov byte [esp + 0x21b0], 0x11
call fcn.1000a300
add esp, 0xc
mov edi, eax
mov byte [esp + 0x21a4], 0x12
call fcn.1005ab30
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x168]
push edx
call fcn.1000a480
add esp, 0xc
mov byte [esp + 0x21a4], 0x13
mov esi, dword [eax + 4]
push 0x12
add esi, 4
push str.device_is_not_NAND
mov ecx, esi
call fcn.10008750
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
jb 0x1003a62c
mov edi, dword [edi + 4]
jmp 0x1003a62f
add edi, 4
push eax
push edi
mov ecx, esi
call fcn.10008750
lea ecx, [esp + 0x160]
mov byte [esp + 0x21a4], 0x12
call fcn.10006cd0
mov esi, 0x10
cmp dword [esp + 0xb4], esi
jb 0x1003a66a
mov eax, dword [esp + 0xa0]
push eax
call fcn.100d30aa
add esp, 4
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
cmp dword [esp + 0x98], esi
jb 0x1003a698
mov ecx, dword [esp + 0x84]
push ecx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0x124], esi
jb 0x1003a6c6
mov edx, dword [esp + 0x110]
push edx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x124], ebp
mov dword [esp + 0x120], ebx
mov byte [esp + 0x110], bl
cmp dword [esp + 0x15c], esi
jb 0x1003a6f4
mov eax, dword [esp + 0x148]
push eax
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x15c], ebp
mov dword [esp + 0x158], ebx
mov byte [esp + 0x148], bl
cmp dword [esp + 0x60], esi
jb 0x1003a71c
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.100d30aa
add esp, 4
mov byte [esp + 0x21a4], 0xc
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
cmp dword [esp + 0xd0], esi
jb 0x1003a749
mov edx, dword [esp + 0xbc]
push edx
call fcn.100d30aa
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
cmp eax, ebx
jne 0x1003a510
mov byte [esp + 0x21a4], 0xb
cmp eax, ebx
je 0x1003a783
push eax
call fcn.10072220
add esp, 4
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x2170]
push eax
mov dword [esp + 0x21a8], 0xffffffff
call fcn.10053a90
mov eax, 0xc0030006
jmp 0x1003a7f1
mov ecx, dword [esp + 0x1dc]
sub ecx, dword [esp + 0x1e4]
mov edx, dword [esp + 0x1e0]
mov eax, dword [esp + 0x1d4]
sbb edx, dword [esp + 0x1e8]
push ebx
push eax
push edx
push ecx
call fcn.100d9c70
mov ecx, dword [esp + 0x18]
sub eax, 2
lea edx, [esp + 0x2170]
mov dword [ecx], eax
push edx
mov dword [esp + 0x21a8], 0xffffffff
call fcn.10053a90
xor eax, eax
mov ecx, dword [esp + 0x219c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2180]
xor ecx, esp
call fcn.100d21d1
add esp, 0x2194
ret 4