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

Disassembly:
push 0xffffffffffffffff
push 0x1011ae04
mov eax, dword fs:[0]
push eax
mov eax, 0x2188
call fcn.100dc600
mov eax, dword [0x10157de0]
xor eax, esp
mov dword [esp + 0x2180], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10157de0]
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 0x1012b9e4
push str.2608
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.10007180
lea esi, [esp + 0x134]
call fcn.1001a7c0
add esp, 0x1c
mov esi, eax
mov dword [esp + 0x21cc], ebx
push 3
push 0x1012ba0c
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.10007180
push esi
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x158]
push eax
mov byte [esp + 0x21d8], 1
call fcn.1000a2c0
add esp, 0xc
push eax
lea ecx, [esp + 0x100]
push ecx
mov byte [esp + 0x21d4], 2
call fcn.1000a370
add esp, 0xc
push eax
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x21d0], 3
call fcn.1000a370
add esp, 0xc
push eax
mov byte [esp + 0x21c8], 4
mov eax, dword [esp + 0x38]
push eax
call fcn.1000a370
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.10007180
mov ecx, ebp
lea ebx, [esp + 0x21a8]
mov byte [esp + 0x21dc], 4
call fcn.10054c60
mov esi, 0x10
cmp dword [esp + 0x7c], esi
jb 0x1003ae9f
mov eax, dword [esp + 0x68]
push eax
call fcn.100d41ba
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 0x1003aecb
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.100d41ba
add esp, 4
mov dword [esp + 0xec], ebp
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
cmp dword [esp + 0x140], esi
jb 0x1003aef9
mov edx, dword [esp + 0x12c]
push edx
call fcn.100d41ba
add esp, 4
mov dword [esp + 0x140], ebp
mov dword [esp + 0x13c], ebx
mov byte [esp + 0x12c], bl
cmp dword [esp + 0x44], esi
jb 0x1003af21
mov eax, dword [esp + 0x30]
push eax
call fcn.100d41ba
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 0x1003af4e
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.100d41ba
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 0x1003af9b
lea ecx, [esp + 0x2170]
push ecx
mov dword [esp + 0x21a8], 0xffffffff
call fcn.10054f00
mov eax, esi
jmp 0x1003b331
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x1003afb6
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2170]
mov dword [edx], ebx
push eax
jmp 0x1003b31f
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 0x1003afea
lea edx, [esp + 0x2170]
push edx
mov dword [esp + 0x21a8], 0xffffffff
call fcn.10054f00
mov eax, esi
jmp 0x1003b331
cmp dword [esp + 0x1d4], ebx
jne 0x1003b2e2
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 4
mov dword [esp + 0x14], eax
call fcn.1005bc20
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov esi, eax
call fcn.1000a440
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 0x1003b044
push eax
call fcn.10073310
add esp, 4
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1003b2aa
push 0x1012b9e4
push str.2627
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.10007180
lea esi, [esp + 0xe0]
call fcn.1001a7c0
add esp, 0x1c
mov esi, eax
mov byte [esp + 0x21b0], 0xd
push 3
push 0x1012ba0c
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.10007180
push esi
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x158]
push eax
mov byte [esp + 0x21bc], 0xe
call fcn.1000a2c0
add esp, 0xc
push eax
lea ecx, [esp + 0x11c]
push ecx
mov byte [esp + 0x21b8], 0xf
call fcn.1000a370
add esp, 0xc
push eax
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x21b4], 0x10
call fcn.1000a370
add esp, 0xc
push eax
lea eax, [esp + 0xa4]
push eax
mov byte [esp + 0x21b0], 0x11
call fcn.1000a370
add esp, 0xc
mov edi, eax
mov byte [esp + 0x21a4], 0x12
call fcn.1005bc20
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x168]
push edx
call fcn.1000a4f0
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.100087c0
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
jb 0x1003b16c
mov edi, dword [edi + 4]
jmp 0x1003b16f
add edi, 4
push eax
push edi
mov ecx, esi
call fcn.100087c0
lea ecx, [esp + 0x160]
mov byte [esp + 0x21a4], 0x12
call fcn.10006d40
mov esi, 0x10
cmp dword [esp + 0xb4], esi
jb 0x1003b1aa
mov eax, dword [esp + 0xa0]
push eax
call fcn.100d41ba
add esp, 4
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
cmp dword [esp + 0x98], esi
jb 0x1003b1d8
mov ecx, dword [esp + 0x84]
push ecx
call fcn.100d41ba
add esp, 4
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0x124], esi
jb 0x1003b206
mov edx, dword [esp + 0x110]
push edx
call fcn.100d41ba
add esp, 4
mov dword [esp + 0x124], ebp
mov dword [esp + 0x120], ebx
mov byte [esp + 0x110], bl
cmp dword [esp + 0x15c], esi
jb 0x1003b234
mov eax, dword [esp + 0x148]
push eax
call fcn.100d41ba
add esp, 4
mov dword [esp + 0x15c], ebp
mov dword [esp + 0x158], ebx
mov byte [esp + 0x148], bl
cmp dword [esp + 0x60], esi
jb 0x1003b25c
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.100d41ba
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 0x1003b289
mov edx, dword [esp + 0xbc]
push edx
call fcn.100d41ba
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 0x1003b050
mov byte [esp + 0x21a4], 0xb
cmp eax, ebx
je 0x1003b2c3
push eax
call fcn.10073310
add esp, 4
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x2170]
push eax
mov dword [esp + 0x21a8], 0xffffffff
call fcn.10054f00
mov eax, 0xc0030006
jmp 0x1003b331
mov ecx, dword [esp + 0x1e4]
sub ecx, dword [esp + 0x1ec]
mov edx, dword [esp + 0x1e8]
mov eax, dword [esp + 0x1dc]
sbb edx, dword [esp + 0x1f0]
push ebx
push eax
push edx
push ecx
call fcn.100dad80
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.10054f00
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.100d32e1
add esp, 0x2194
ret 4