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

Disassembly:
push 0xffffffffffffffff
push 0x1011d1e1
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x10157de0]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10157de0]
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 0x1012b9e4
push 0x1012c4cc
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.1001a7c0
add esp, 0x1c
mov esi, eax
mov dword [esp + 0x1f8], ebx
push 3
push 0x1012ba0c
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.1000a2c0
add esp, 0xc
push eax
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x200], 2
call fcn.1000a370
add esp, 0xc
push eax
lea eax, [esp + 0xdc]
push eax
mov byte [esp + 0x1fc], 3
call fcn.1000a370
add esp, 0xc
push eax
mov byte [esp + 0x1f4], 4
mov eax, dword [esp + 0x40]
push eax
call fcn.1000a370
sub esp, 0x10
mov byte [esp + 0x208], 5
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0x27
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str.cflashtool_api::FlashTool_SetOTPAddress
mov byte [ecx + 4], bl
call fcn.10007180
mov ecx, edi
lea ebx, [esp + 0x1d8]
mov byte [esp + 0x208], 4
call fcn.10054c90
mov esi, 0x10
cmp dword [esp + 0xcc], esi
jb 0x100203c2
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.100d41da
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 0x100203f7
mov edx, dword [esp + 0x80]
push edx
call fcn.100d41da
add esp, 4
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
cmp dword [esp + 0x104], esi
jb 0x10020425
mov eax, dword [esp + 0xf0]
push eax
call fcn.100d41da
add esp, 4
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
cmp dword [esp + 0x40], esi
jb 0x1002044d
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.100d41da
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 0x1002047a
mov edx, dword [esp + 0x160]
push edx
call fcn.100d41da
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.1005bc40
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
mov esi, eax
call fcn.1000a440
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 0x100204dc
push eax
call fcn.10073330
add esp, 4
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x100207f7
jmp 0x100204f2
mov edi, esi
push 0x1012b9e4
push 0x1012c4f8
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.1001a7c0
add esp, 0x1c
mov esi, eax
mov byte [esp + 0x1dc], 0xd
push 3
push 0x1012ba0c
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.1000a2c0
add esp, 0xc
push eax
lea ecx, [esp + 0x118]
push ecx
mov byte [esp + 0x1e4], 0xf
call fcn.1000a370
add esp, 0xc
push eax
lea edx, [esp + 0xdc]
push edx
mov byte [esp + 0x1e0], 0x10
call fcn.1000a370
add esp, 0xc
push eax
lea eax, [esp + 0xa0]
push eax
mov byte [esp + 0x1dc], 0x11
call fcn.1000a370
add esp, 0xc
mov ebp, eax
mov byte [esp + 0x1d0], 0x12
push 0x27
push str.cflashtool_api::FlashTool_SetOTPAddress
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.1000a370
add esp, 0xc
mov edi, eax
mov byte [esp + 0x1d0], 0x14
call fcn.1005bc40
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x19c]
push edx
call fcn.1000a4f0
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 0x1002064e
mov edi, dword [edi + 4]
jmp 0x10020651
add edi, 4
push eax
push edi
mov ecx, esi
call fcn.100087c0
mov eax, dword [ebp + 0x14]
mov edi, 0x10
cmp dword [ebp + 0x18], edi
jb 0x1002066c
mov ebp, dword [ebp + 4]
jmp 0x1002066f
add ebp, 4
push eax
push ebp
mov ecx, esi
call fcn.100087c0
lea ecx, [esp + 0x194]
mov byte [esp + 0x1d0], 0x14
call fcn.10006d40
cmp dword [esp + 0x13c], edi
jb 0x100206a5
mov eax, dword [esp + 0x128]
push eax
call fcn.100d41da
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 0x100206d2
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100d41da
add esp, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0xb0], edi
jb 0x100206f7
mov edx, dword [esp + 0x9c]
push edx
call fcn.100d41da
add esp, 4
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
cmp dword [esp + 0xe8], edi
jb 0x10020725
mov eax, dword [esp + 0xd4]
push eax
call fcn.100d41da
add esp, 4
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
cmp dword [esp + 0x120], edi
jb 0x10020753
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.100d41da
add esp, 4
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
cmp dword [esp + 0x158], edi
jb 0x10020781
mov edx, dword [esp + 0x144]
push edx
call fcn.100d41da
add esp, 4
mov dword [esp + 0x158], esi
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
cmp dword [esp + 0x78], edi
jb 0x100207a9
mov eax, dword [esp + 0x64]
push eax
call fcn.100d41da
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 0x100207d6
mov ecx, dword [esp + 0x17c]
push ecx
call fcn.100d41da
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 0x100204f0
mov byte [esp + 0x1d0], 0xb
cmp eax, ebx
je 0x10020810
push eax
call fcn.10073330
add esp, 4
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x1a0]
push edx
mov dword [esp + 0x1d4], 0xffffffff
call fcn.10054f30
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.100d3301
add esp, 0x1c0
ret