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

Disassembly:
push 0xffffffffffffffff
push 0x1011c291
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x10156de0]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10156de0]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x3c], esp
push 0x1012a9d4
push 0x1012b39c
push str.__line:
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x68], esp
xor ebx, ebx
push 0x1c
mov ebp, 0xf
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.._adaptor_cflashtool_api.cpp
mov edi, 1
mov byte [ecx + 4], bl
mov dword [esp + 0x68], eax
call fcn.10007110
lea esi, [esp + 0x1a0]
call fcn.1001a7b0
add esp, 0x1c
mov esi, eax
mov dword [esp + 0x1f8], ebx
push 3
push 0x1012a9fc
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.10007110
push esi
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x11c]
push ecx
mov byte [esp + 0x204], 1
call fcn.1000a250
add esp, 0xc
push eax
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x200], 2
call fcn.1000a300
add esp, 0xc
push eax
lea eax, [esp + 0xdc]
push eax
mov byte [esp + 0x1fc], 3
call fcn.1000a300
add esp, 0xc
push eax
mov byte [esp + 0x1f4], 4
mov eax, dword [esp + 0x40]
push eax
call fcn.1000a300
sub esp, 0x10
mov byte [esp + 0x208], 5
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x29
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.cflashtool_api::FlashTool_OTP_CheckDevice
mov byte [ecx + 4], bl
call fcn.10007110
mov ecx, edi
lea ebx, [esp + 0x1d8]
mov byte [esp + 0x208], 4
call fcn.100537f0
mov esi, 0x10
cmp dword [esp + 0xcc], esi
jb 0x1001ed92
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.100d30aa
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
cmp dword [esp + 0x94], esi
jb 0x1001edc7
mov edx, dword [esp + 0x80]
push edx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
cmp dword [esp + 0x104], esi
jb 0x1001edf5
mov eax, dword [esp + 0xf0]
push eax
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
cmp dword [esp + 0x40], esi
jb 0x1001ee1d
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov byte [esp + 0x1d0], 0xb
cmp dword [esp + 0x174], esi
jb 0x1001ee4a
mov edx, dword [esp + 0x160]
push edx
call fcn.100d30aa
add esp, 4
lea eax, [esp + 0x24]
mov dword [esp + 0x174], edi
mov dword [esp + 0x170], ebx
mov byte [esp + 0x160], bl
mov dword [esp + 0x24], 3
mov dword [esp + 0x20], eax
call fcn.1005ab30
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
mov esi, eax
call fcn.1000a3d0
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov dword [eax], ebx
mov byte [esp + 0x1d0], 0xc
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1001eeac
push eax
call fcn.10072220
add esp, 4
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1001f1c7
jmp 0x1001eec2
mov edi, esi
push 0x1012a9d4
push 0x1012b3cc
push str.__line:
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x1c
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push str.._adaptor_cflashtool_api.cpp
mov byte [ecx + 4], bl
call fcn.10007110
lea esi, [esp + 0x1a0]
call fcn.1001a7b0
add esp, 0x1c
mov esi, eax
mov byte [esp + 0x1dc], 0xd
push 3
push 0x1012a9fc
lea ecx, [esp + 0x74]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
call fcn.10007110
push esi
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x154]
push eax
mov byte [esp + 0x1e8], 0xe
call fcn.1000a250
add esp, 0xc
push eax
lea ecx, [esp + 0x118]
push ecx
mov byte [esp + 0x1e4], 0xf
call fcn.1000a300
add esp, 0xc
push eax
lea edx, [esp + 0xdc]
push edx
mov byte [esp + 0x1e0], 0x10
call fcn.1000a300
add esp, 0xc
push eax
lea eax, [esp + 0xa0]
push eax
mov byte [esp + 0x1dc], 0x11
call fcn.1000a300
add esp, 0xc
mov ebp, eax
mov byte [esp + 0x1d0], 0x12
push 0x29
push str.cflashtool_api::FlashTool_OTP_CheckDevice
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.10007110
push str.UNIMPLEMENTED
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x12c]
push edx
mov byte [esp + 0x1dc], 0x13
call fcn.1000a300
add esp, 0xc
mov edi, eax
mov byte [esp + 0x1d0], 0x14
call fcn.1005ab30
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x19c]
push edx
call fcn.1000a480
add esp, 0xc
mov byte [esp + 0x1d0], 0x15
mov esi, dword [eax + 4]
mov eax, dword [edi + 0x14]
add esi, 4
cmp dword [edi + 0x18], 0x10
jb 0x1001f01e
mov edi, dword [edi + 4]
jmp 0x1001f021
add edi, 4
push eax
push edi
mov ecx, esi
call fcn.10008750
mov eax, dword [ebp + 0x14]
mov edi, 0x10
cmp dword [ebp + 0x18], edi
jb 0x1001f03c
mov ebp, dword [ebp + 4]
jmp 0x1001f03f
add ebp, 4
push eax
push ebp
mov ecx, esi
call fcn.10008750
lea ecx, [esp + 0x194]
mov byte [esp + 0x1d0], 0x14
call fcn.10006cd0
cmp dword [esp + 0x13c], edi
jb 0x1001f075
mov eax, dword [esp + 0x128]
push eax
call fcn.100d30aa
add esp, 4
mov esi, 0xf
mov dword [esp + 0x13c], esi
mov dword [esp + 0x138], ebx
mov byte [esp + 0x128], bl
cmp dword [esp + 0x5c], edi
jb 0x1001f0a2
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0xb0], edi
jb 0x1001f0c7
mov edx, dword [esp + 0x9c]
push edx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
cmp dword [esp + 0xe8], edi
jb 0x1001f0f5
mov eax, dword [esp + 0xd4]
push eax
call fcn.100d30aa
add esp, 4
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
cmp dword [esp + 0x120], edi
jb 0x1001f123
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
cmp dword [esp + 0x158], edi
jb 0x1001f151
mov edx, dword [esp + 0x144]
push edx
call fcn.100d30aa
add esp, 4
mov dword [esp + 0x158], esi
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
cmp dword [esp + 0x78], edi
jb 0x1001f179
mov eax, dword [esp + 0x64]
push eax
call fcn.100d30aa
add esp, 4
mov byte [esp + 0x1d0], 0xc
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
cmp dword [esp + 0x190], edi
jb 0x1001f1a6
mov ecx, dword [esp + 0x17c]
push ecx
call fcn.100d30aa
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x190], esi
mov dword [esp + 0x18c], ebx
mov byte [esp + 0x17c], bl
cmp eax, ebx
jne 0x1001eec0
mov byte [esp + 0x1d0], 0xb
cmp eax, ebx
je 0x1001f1e0
push eax
call fcn.10072220
add esp, 4
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x1a0]
push edx
mov dword [esp + 0x1d4], 0xffffffff
call fcn.10053a90
mov eax, 0xc001000c
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.100d21d1
add esp, 0x1c0
ret