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

Disassembly:
push 0xffffffffffffffff
push 0x1011ec41
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x10159df0]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10159df0]
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 0x1012d9f4
push 0x1012e3e4
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.10007180
lea esi, [esp + 0x1a0]
call fcn.1001a820
add esp, 0x1c
mov esi, eax
mov dword [esp + 0x1f8], ebx
push 3
push 0x1012da1c
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.10007180
push esi
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x11c]
push ecx
mov byte [esp + 0x204], 1
call fcn.1000a2e0
add esp, 0xc
push eax
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x200], 2
call fcn.1000a390
add esp, 0xc
push eax
lea eax, [esp + 0xdc]
push eax
mov byte [esp + 0x1fc], 3
call fcn.1000a390
add esp, 0xc
push eax
mov byte [esp + 0x1f4], 4
mov eax, dword [esp + 0x40]
push eax
call fcn.1000a390
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.10007180
mov ecx, edi
lea ebx, [esp + 0x1d8]
mov byte [esp + 0x208], 4
call fcn.10055fb0
mov esi, 0x10
cmp dword [esp + 0xcc], esi
jb 0x1001ef42
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.100d574a
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 0x1001ef77
mov edx, dword [esp + 0x80]
push edx
call fcn.100d574a
add esp, 4
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
cmp dword [esp + 0x104], esi
jb 0x1001efa5
mov eax, dword [esp + 0xf0]
push eax
call fcn.100d574a
add esp, 4
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
cmp dword [esp + 0x40], esi
jb 0x1001efcd
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.100d574a
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 0x1001effa
mov edx, dword [esp + 0x160]
push edx
call fcn.100d574a
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.1005cfa0
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
mov esi, eax
call fcn.1000a460
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 0x1001f05c
push eax
call fcn.10074910
add esp, 4
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1001f377
jmp 0x1001f072
mov edi, esi
push 0x1012d9f4
push 0x1012e414
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.10007180
lea esi, [esp + 0x1a0]
call fcn.1001a820
add esp, 0x1c
mov esi, eax
mov byte [esp + 0x1dc], 0xd
push 3
push 0x1012da1c
lea ecx, [esp + 0x74]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
call fcn.10007180
push esi
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x154]
push eax
mov byte [esp + 0x1e8], 0xe
call fcn.1000a2e0
add esp, 0xc
push eax
lea ecx, [esp + 0x118]
push ecx
mov byte [esp + 0x1e4], 0xf
call fcn.1000a390
add esp, 0xc
push eax
lea edx, [esp + 0xdc]
push edx
mov byte [esp + 0x1e0], 0x10
call fcn.1000a390
add esp, 0xc
push eax
lea eax, [esp + 0xa0]
push eax
mov byte [esp + 0x1dc], 0x11
call fcn.1000a390
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.10007180
push str.UNIMPLEMENTED
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x12c]
push edx
mov byte [esp + 0x1dc], 0x13
call fcn.1000a390
add esp, 0xc
mov edi, eax
mov byte [esp + 0x1d0], 0x14
call fcn.1005cfa0
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x19c]
push edx
call fcn.1000a530
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 0x1001f1ce
mov edi, dword [edi + 4]
jmp 0x1001f1d1
add edi, 4
push eax
push edi
mov ecx, esi
call fcn.100087d0
mov eax, dword [ebp + 0x14]
mov edi, 0x10
cmp dword [ebp + 0x18], edi
jb 0x1001f1ec
mov ebp, dword [ebp + 4]
jmp 0x1001f1ef
add ebp, 4
push eax
push ebp
mov ecx, esi
call fcn.100087d0
lea ecx, [esp + 0x194]
mov byte [esp + 0x1d0], 0x14
call fcn.10006d40
cmp dword [esp + 0x13c], edi
jb 0x1001f225
mov eax, dword [esp + 0x128]
push eax
call fcn.100d574a
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 0x1001f252
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100d574a
add esp, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0xb0], edi
jb 0x1001f277
mov edx, dword [esp + 0x9c]
push edx
call fcn.100d574a
add esp, 4
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
cmp dword [esp + 0xe8], edi
jb 0x1001f2a5
mov eax, dword [esp + 0xd4]
push eax
call fcn.100d574a
add esp, 4
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
cmp dword [esp + 0x120], edi
jb 0x1001f2d3
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.100d574a
add esp, 4
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
cmp dword [esp + 0x158], edi
jb 0x1001f301
mov edx, dword [esp + 0x144]
push edx
call fcn.100d574a
add esp, 4
mov dword [esp + 0x158], esi
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
cmp dword [esp + 0x78], edi
jb 0x1001f329
mov eax, dword [esp + 0x64]
push eax
call fcn.100d574a
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 0x1001f356
mov ecx, dword [esp + 0x17c]
push ecx
call fcn.100d574a
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 0x1001f070
mov byte [esp + 0x1d0], 0xb
cmp eax, ebx
je 0x1001f390
push eax
call fcn.10074910
add esp, 4
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x1a0]
push edx
mov dword [esp + 0x1d4], 0xffffffff
call fcn.10056250
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.100d4871
add esp, 0x1c0
ret