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

Disassembly:
push 0xffffffffffffffff
push 0x1011c414
mov eax, dword fs:[0]
push eax
mov eax, 0x2188
call fcn.100ddb90
mov eax, dword [0x10159df0]
xor eax, esp
mov dword [esp + 0x2180], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10159df0]
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 0x1012d9f4
push str.2651
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.1001a820
add esp, 0x1c
mov esi, eax
mov dword [esp + 0x21cc], ebx
push 3
push 0x1012da1c
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.1000a2e0
add esp, 0xc
push eax
lea ecx, [esp + 0x100]
push ecx
mov byte [esp + 0x21d4], 2
call fcn.1000a390
add esp, 0xc
push eax
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x21d0], 3
call fcn.1000a390
add esp, 0xc
push eax
mov byte [esp + 0x21c8], 4
mov eax, dword [esp + 0x38]
push eax
call fcn.1000a390
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.10055fb0
mov esi, 0x10
cmp dword [esp + 0x7c], esi
jb 0x1003b63f
mov eax, dword [esp + 0x68]
push eax
call fcn.100d574a
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 0x1003b66b
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.100d574a
add esp, 4
mov dword [esp + 0xec], ebp
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
cmp dword [esp + 0x140], esi
jb 0x1003b699
mov edx, dword [esp + 0x12c]
push edx
call fcn.100d574a
add esp, 4
mov dword [esp + 0x140], ebp
mov dword [esp + 0x13c], ebx
mov byte [esp + 0x12c], bl
cmp dword [esp + 0x44], esi
jb 0x1003b6c1
mov eax, dword [esp + 0x30]
push eax
call fcn.100d574a
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 0x1003b6ee
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.100d574a
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 0x1003b73b
lea ecx, [esp + 0x2170]
push ecx
mov dword [esp + 0x21a8], 0xffffffff
call fcn.10056250
mov eax, esi
jmp 0x1003bad1
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x1003b756
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2170]
mov dword [edx], ebx
push eax
jmp 0x1003babf
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 0x1003b78a
lea edx, [esp + 0x2170]
push edx
mov dword [esp + 0x21a8], 0xffffffff
call fcn.10056250
mov eax, esi
jmp 0x1003bad1
cmp dword [esp + 0x1d4], ebx
jne 0x1003ba82
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 4
mov dword [esp + 0x14], eax
call fcn.1005cfa0
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov esi, eax
call fcn.1000a460
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 0x1003b7e4
push eax
call fcn.10074910
add esp, 4
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1003ba4a
push 0x1012d9f4
push str.2670
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.1001a820
add esp, 0x1c
mov esi, eax
mov byte [esp + 0x21b0], 0xd
push 3
push 0x1012da1c
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.1000a2e0
add esp, 0xc
push eax
lea ecx, [esp + 0x11c]
push ecx
mov byte [esp + 0x21b8], 0xf
call fcn.1000a390
add esp, 0xc
push eax
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x21b4], 0x10
call fcn.1000a390
add esp, 0xc
push eax
lea eax, [esp + 0xa4]
push eax
mov byte [esp + 0x21b0], 0x11
call fcn.1000a390
add esp, 0xc
mov edi, eax
mov byte [esp + 0x21a4], 0x12
call fcn.1005cfa0
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x168]
push edx
call fcn.1000a530
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.100087d0
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
jb 0x1003b90c
mov edi, dword [edi + 4]
jmp 0x1003b90f
add edi, 4
push eax
push edi
mov ecx, esi
call fcn.100087d0
lea ecx, [esp + 0x160]
mov byte [esp + 0x21a4], 0x12
call fcn.10006d40
mov esi, 0x10
cmp dword [esp + 0xb4], esi
jb 0x1003b94a
mov eax, dword [esp + 0xa0]
push eax
call fcn.100d574a
add esp, 4
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
cmp dword [esp + 0x98], esi
jb 0x1003b978
mov ecx, dword [esp + 0x84]
push ecx
call fcn.100d574a
add esp, 4
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0x124], esi
jb 0x1003b9a6
mov edx, dword [esp + 0x110]
push edx
call fcn.100d574a
add esp, 4
mov dword [esp + 0x124], ebp
mov dword [esp + 0x120], ebx
mov byte [esp + 0x110], bl
cmp dword [esp + 0x15c], esi
jb 0x1003b9d4
mov eax, dword [esp + 0x148]
push eax
call fcn.100d574a
add esp, 4
mov dword [esp + 0x15c], ebp
mov dword [esp + 0x158], ebx
mov byte [esp + 0x148], bl
cmp dword [esp + 0x60], esi
jb 0x1003b9fc
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.100d574a
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 0x1003ba29
mov edx, dword [esp + 0xbc]
push edx
call fcn.100d574a
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 0x1003b7f0
mov byte [esp + 0x21a4], 0xb
cmp eax, ebx
je 0x1003ba63
push eax
call fcn.10074910
add esp, 4
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x2170]
push eax
mov dword [esp + 0x21a8], 0xffffffff
call fcn.10056250
mov eax, 0xc0030006
jmp 0x1003bad1
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.100dc310
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.10056250
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.100d4871
add esp, 0x2194
ret 4