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

Disassembly:
mov eax, 0x11d8
call fcn.1003d710
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x11ec]
mov dword [esp + 0x14], 0
test edi, edi
jne 0x100127f2
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x11d8
ret 0x14
mov ecx, dword [0x10071a48]
mov eax, dword [edi + 0x54]
push ecx
push eax
call fcn.10012130
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x1001281c
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x11d8
ret 0x14
mov ax, word [ebp + 0x44]
test ax, ax
je 0x10012de0
cmp ax, 0xffff
je 0x10012de0
mov dx, word [ebp + 0x1bc]
mov ebx, dword [esp + 0x11f4]
cmp bx, dx
jae 0x10012dcf
cmp bx, 7
ja 0x10012861
pop edi
pop esi
pop ebp
mov ax, 4
pop ebx
add esp, 0x11d8
ret 0x14
mov ecx, dword [esp + 0x11fc]
cmp cl, 3
jbe 0x1001287e
pop edi
pop esi
pop ebp
mov ax, 6
pop ebx
add esp, 0x11d8
ret 0x14
mov eax, dword [ebp + 0x1dc]
test eax, eax
je 0x10012a11
mov eax, dword [ebp + 0x1cc]
cmp eax, 5
je 0x10012956
cmp eax, 7
je 0x10012956
cmp eax, 8
jne 0x10012a11
lea edx, [esp + 0x14]
lea eax, [esp + 0x618]
lea esi, [ebp + 0x1e0]
push edx
mov edx, dword [esp + 0x11f4]
push eax
push esi
push ecx
mov ecx, dword [esp + 0x1208]
mov dword [esp + 0x24], 0x400
mov ax, word [ebp + 0x1bc]
push ecx
push ebx
push edx
push eax
call fcn.100100b0
test ax, ax
jne 0x10012de4
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x61c]
push eax
push edx
push eax
lea eax, [esp + 0x628]
push eax
push edi
call fcn.10014300
test ax, ax
jne 0x10012de4
lea ecx, [esp + 0x618]
push esi
push ecx
call fcn.10010030
test ax, ax
jne 0x10012de4
lea edx, [esp + 0x618]
push edx
call fcn.10010410
push ebp
push eax
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d8
ret 0x14
test byte [ebp + 0x1d0], 4
je 0x10012a11
lea edi, [esp + 0x1c]
lea esi, [ebp + 0x1e0]
push edi
lea edi, [esp + 0xb0]
push 0x50
push edi
push esi
push ecx
mov ecx, dword [esp + 0x120c]
push ecx
mov ecx, dword [esp + 0x1208]
push ebx
push ecx
push edx
push eax
call fcn.1000e600
test ax, ax
jne 0x100129fa
lea edx, [esp + 0x18]
lea eax, [esp + 0x13c]
push edx
mov edx, dword [esp + 0x20]
push 0x50
push eax
mov eax, dword [esp + 0x11f8]
lea ecx, [esp + 0xb8]
push 0x50
push ecx
push edx
push eax
call fcn.10013e10
test ax, ax
jne 0x100129fa
lea ecx, [esp + 0x68]
push ecx
push esi
call fcn.1000e440
lea edx, [esp + 0x18]
lea eax, [esp + 0xac]
push edx
push 0x50
lea ecx, [esp + 0x70]
push eax
mov eax, dword [ebp + 0x1cc]
lea edx, [esp + 0x148]
push ecx
push edx
push eax
call fcn.1000ef50
push ebp
push eax
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d8
ret 0x14
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x5c], ecx
lea edi, [esp + 0xa18]
mov dword [esp + 0x60], ecx
xor edx, edx
mov dword [esp + 0x64], ecx
mov ecx, 0xfa
rep stosd dword es:[edi], eax
mov ecx, 0xfa
lea edi, [esp + 0xe00]
rep stosd dword es:[edi], eax
mov ecx, 0xfa
lea edi, [esp + 0x230]
rep stosd dword es:[edi], eax
mov dword [esp + 0x2c], eax
mov ecx, 0xc
mov dword [esp + 0x30], eax
lea edi, [esp + 0x78]
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x48], edx
xor ecx, ecx
stosw word es:[edi], ax
xor eax, eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x28], eax
mov esi, dword [sym.imp.MSVCR100.dll_sprintf]
movsx ecx, word [ebp + 0x70]
lea eax, [esp + 0x44]
mov edx, dword [ebp + ecx*4 + 0x48]
push edx
push 0x1005f734
push eax
call esi
xor ecx, ecx
lea edx, [esp + 0x38]
mov cx, word [ebp + 0x44]
push ecx
push 0x1005f734
push edx
call esi
mov eax, dword [esp + 0x1208]
lea ecx, [esp + 0x90]
and eax, 0xffff
push eax
push 0x1005f734
push ecx
call esi
and ebx, 0xffff
lea edx, [esp + 0x74]
push ebx
push 0x1005f734
push edx
call esi
mov eax, dword [esp + 0x1228]
lea ecx, [esp + 0x68]
and eax, 0xffff
push eax
push 0x1005f734
push ecx
call esi
mov eax, dword [esp + 0x1238]
lea edx, [esp + 0x5c]
and eax, 0xff
push eax
push 0x1005f734
push edx
call esi
add esp, 0x48
lea eax, [esp + 0x1f0]
push 0x40
mov ecx, dword [esp + 0x11f0]
push eax
push ecx
call fcn.10009f00
test ax, ax
jne 0x10012de4
lea edx, [esp + 0x20]
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x80]
push ecx
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x54]
push eax
push ecx
push 6
push 0x1005f72c
call fcn.10019ee0
mov edx, eax
add esp, 0x20
test edx, edx
jne 0x10012b9a
push ebp
push 0x4a
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d8
ret 0x14
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xe00]
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 + 0x60]
lea edx, [esp + 0xe04]
push ecx
push edx
push str.writeKey
push 3
push 0x1005f61c
call fcn.10019ee0
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x10012c08
push ebp
push 0x4a
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d8
ret 0x14
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x230]
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 + 0x234]
push ecx
call fcn.10019fc0
mov edx, eax
add esp, 8
test edx, edx
jne 0x10012c65
push ebp
push 0x4a
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d8
ret 0x14
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x230]
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 + 0xa1c]
lea edx, [esp + 0x234]
push ecx
push ebp
push edx
call fcn.10017cc0
add esp, 0x10
test ax, ax
je 0x10012cc9
push ebp
push eax
call fcn.1000a4a0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d8
ret 0x14
lea eax, [esp + 0xa18]
push eax
call fcn.10019cc0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10012cf7
push ebp
push 0x42
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d8
ret 0x14
lea ecx, [esp + 0xa18]
lea edx, [esp + 0x18c]
push ecx
lea eax, [esp + 0x100]
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 0x10012d41
push ebp
push 0x42
call fcn.1000a580
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d8
ret 0x14
mov esi, str.error
lea eax, [esp + 0xfc]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x10012d75
test cl, cl
je 0x10012d71
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x10012d75
add eax, 2
add esi, 2
test cl, cl
jne 0x10012d4d
xor eax, eax
jmp 0x10012d7a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10012da3
lea eax, [esp + 0x18c]
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, 0x11d8
ret 0x14
lea esi, [ebp + 0x80]
push esi
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, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d8
ret 0x14
pop edi
pop esi
pop ebp
mov ax, 5
pop ebx
add esp, 0x11d8
ret 0x14
mov ax, 0x47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11d8
ret 0x14