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

Disassembly:
mov eax, 0x1188
call fcn.1003d710
push ebx
mov ebx, dword [esp + 0x1190]
push ebp
push esi
test ebx, ebx
push edi
mov dword [esp + 0x14], 0
jne 0x10012232
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x1188
ret 0xc
mov ecx, dword [0x10071a48]
mov eax, dword [ebx + 0x54]
push ecx
push eax
call fcn.10012130
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x1001225c
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x1188
ret 0xc
mov eax, dword [esp + 0x11a4]
test eax, eax
jne 0x10012278
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x1188
ret 0xc
mov ax, word [ebp + 0x44]
test ax, ax
je 0x100127ac
cmp ax, 0xffff
je 0x100127ac
mov cx, word [ebp + 0x1bc]
mov esi, dword [esp + 0x11a0]
cmp si, cx
jae 0x1001279b
mov eax, dword [ebp + 0x1dc]
test eax, eax
je 0x10012409
mov eax, dword [ebp + 0x1cc]
cmp eax, 5
je 0x10012377
cmp eax, 7
je 0x10012377
cmp eax, 8
jne 0x10012409
lea edx, [esp + 0x14]
lea eax, [esp + 0x9b0]
lea edi, [ebp + 0x1e0]
push edx
mov dword [esp + 0x18], 0x400
mov cx, word [ebp + 0x1bc]
push eax
push edi
push esi
push ecx
call fcn.100101e0
test ax, ax
jne 0x100127b0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x9b4]
push eax
push ecx
lea edx, [esp + 0x9bc]
push eax
push edx
push ebx
call fcn.10014300
test ax, ax
jne 0x100127b0
lea eax, [esp + 0x9b0]
push edi
push eax
call fcn.10010030
test ax, ax
jne 0x100127b0
mov ecx, dword [esp + 0x11a4]
push 0
lea edx, [esp + 0x9b4]
push ecx
push edx
call fcn.10010430
push ebp
push eax
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1188
ret 0xc
test byte [ebp + 0x1d0], 4
je 0x10012409
lea edx, [esp + 0x18]
lea edi, [ebp + 0x1e0]
push edx
lea edx, [esp + 0x154]
push 0x50
push edx
push edi
push esi
push ecx
push eax
call fcn.1000e460
test ax, ax
jne 0x100123f2
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x100]
push eax
mov eax, dword [esp + 0x1c]
push 0x50
push ecx
lea edx, [esp + 0x15c]
push 0x50
push edx
push eax
push ebx
call fcn.10013e10
test ax, ax
jne 0x100123f2
mov ecx, dword [esp + 0x11a4]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [ebp + 0x1cc]
lea edx, [esp + 0x104]
push edi
push edx
push eax
push ecx
call fcn.1000eae0
push ebp
push eax
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1188
ret 0xc
mov ecx, 0xfa
xor eax, eax
lea edi, [esp + 0x5c8]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0xfa
lea edi, [esp + 0xdb0]
rep stosd dword es:[edi], eax
mov ecx, 0xfa
lea edi, [esp + 0x1e0]
rep stosd dword es:[edi], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], eax
xor ecx, ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x4c], eax
movsx ecx, word [ebp + 0x70]
mov edi, dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [esp + 0x2c]
mov edx, dword [ebp + ecx*4 + 0x48]
push edx
push 0x1005f734
push eax
call edi
xor ecx, ecx
lea edx, [esp + 0x44]
mov cx, word [ebp + 0x44]
push ecx
push 0x1005f734
push edx
call edi
and esi, 0xffff
lea eax, [esp + 0x38]
push esi
push 0x1005f734
push eax
call edi
add esp, 0x24
lea ecx, [esp + 0x1a0]
push 0x40
push ecx
push ebx
call fcn.10009f00
test ax, ax
jne 0x100127b0
lea edx, [esp + 0x20]
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
push 3
push 0x1005f72c
call fcn.10019ee0
mov edx, eax
add esp, 0x14
test edx, edx
jne 0x1001250e
push ebp
push 0x4a
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1188
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xdb0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebx
mov ebx, dword [sym.imp.MSVCR100.dll_free]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x54]
lea edx, [esp + 0xdb4]
push ecx
push edx
push str.readKey
push 3
push 0x1005f61c
call fcn.10019ee0
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x1001257c
push ebp
push 0x4a
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1188
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x1e0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x1e4]
push ecx
call fcn.10019fc0
mov edx, eax
add esp, 8
test edx, edx
jne 0x100125d9
push ebp
push 0x4a
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1188
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x1e0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x5cc]
lea edx, [esp + 0x1e4]
push ecx
push ebp
push edx
call fcn.10017cc0
add esp, 0x10
test ax, ax
je 0x1001263d
push ebp
push eax
call fcn.1000a4a0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1188
ret 0xc
lea eax, [esp + 0x5c8]
push eax
call fcn.10019cc0
mov esi, eax
add esp, 4
test esi, esi
jne 0x1001266b
push ebp
push 0x42
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1188
ret 0xc
lea ecx, [esp + 0x5c8]
lea edx, [esp + 0x9c]
push ecx
lea eax, [esp + 0x60]
push edx
push eax
push esi
push 3
push 0x1005f61c
call fcn.10019b20
push esi
mov edi, eax
call ebx
add esp, 0x1c
test di, di
je 0x100126b2
push ebp
push 0x42
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1188
ret 0xc
mov byte [esp + 0x9b], 0
mov byte [esp + 0xff], 0
mov esi, str.error
lea eax, [esp + 0x5c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x100126f3
test cl, cl
je 0x100126ef
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x100126f3
add eax, 2
add esi, 2
test cl, cl
jne 0x100126cb
xor eax, eax
jmp 0x100126f8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10012721
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
push ebp
push eax
call fcn.1000a580
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1188
ret 0xc
lea ecx, [esp + 0x44]
lea edx, [esp + 0x5c8]
push ecx
push edx
push 1
push 0x1005f72c
call fcn.10019b20
add esp, 0x10
test ax, ax
je 0x1001275a
push ebp
push 0x42
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1188
ret 0xc
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
mov ecx, dword [esp + 0x11a8]
lea esi, [ebp + 0x80]
push esi
mov word [ecx], ax
call dword [sym.imp.MSVCR100.dll__time32]
mov edi, dword [esi]
push ebp
add edi, 0x78
push 0
mov dword [esi], edi
call fcn.1000a580
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1188
ret 0xc
pop edi
pop esi
pop ebp
mov ax, 5
pop ebx
add esp, 0x1188
ret 0xc
mov ax, 0x47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1188
ret 0xc