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

Disassembly:
sub esp, 0x84c
push ebx
mov ebx, dword [esp + 0x854]
push ebp
push esi
test ebx, ebx
push edi
jne 0x101991b6
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x84c
ret 0xc
mov ecx, dword [0x10283b08]
mov eax, dword [ebx + 0x54]
push ecx
push eax
call fcn.10197940
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x101991e0
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x84c
ret 0xc
mov eax, dword [esp + 0x868]
test eax, eax
jne 0x101991fc
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x84c
ret 0xc
mov ax, word [ebp + 0x44]
test ax, ax
je 0x101995c5
cmp ax, 0xffff
je 0x101995c5
mov esi, dword [esp + 0x864]
cmp si, word [ebp + 0x1a4]
ja 0x101995b4
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x21c]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x3ac]
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x8c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x14], eax
xor ecx, ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], eax
movsx ecx, word [ebp + 0x5a]
lea eax, [esp + 0x10]
mov dx, word [ebp + ecx*2 + 0x46]
push edx
push 0x1020dd80
push eax
call fcn.101bc928
xor ecx, ecx
lea edx, [esp + 0x40]
mov cx, word [ebp + 0x44]
push ecx
push 0x1020dd80
push edx
call fcn.101bc928
and esi, 0xffff
lea eax, [esp + 0x34]
push esi
push 0x1020dd80
push eax
call fcn.101bc928
add esp, 0x24
lea ecx, [esp + 0x4c]
push 0x40
push ecx
push ebx
call fcn.101960c0
test ax, ax
jne 0x101995c9
lea edx, [esp + 0x1c]
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push 3
push 0x1020dd78
call fcn.1019fa00
mov edx, eax
add esp, 0x14
test edx, edx
jne 0x1019932d
push ebp
push 0x4a
call fcn.10196730
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x3ac]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.101bceaa
lea ecx, [esp + 0x44]
lea edx, [esp + 0x3b0]
push ecx
push edx
push str.readKey
push 3
push 0x1020dc74
call fcn.1019fa00
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x10199398
push ebp
push 0x4a
call fcn.10196730
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x8c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.101bceaa
lea ecx, [esp + 0x90]
push ecx
call fcn.1019fae0
mov edx, eax
add esp, 8
test edx, edx
jne 0x101993f2
push ebp
push 0x4a
call fcn.10196730
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x8c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.101bceaa
lea ecx, [esp + 0x220]
lea edx, [esp + 0x90]
push ecx
push ebp
push edx
call fcn.1019d090
add esp, 0x10
test ax, ax
je 0x10199453
push ebp
push eax
call fcn.10196660
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret 0xc
lea eax, [esp + 0x21c]
push eax
call fcn.1019f7d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10199481
push ebp
push 0x42
call fcn.10196730
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret 0xc
lea ecx, [esp + 0x21c]
lea edx, [esp + 0x6cc]
push ecx
lea eax, [esp + 0x540]
push edx
push eax
push esi
push 3
push 0x1020dc74
call fcn.1019f630
push esi
mov edi, eax
call fcn.101bceaa
add esp, 0x1c
test di, di
je 0x101994ce
push ebp
push 0x42
call fcn.10196730
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret 0xc
mov byte [esp + 0x6cb], 0
mov byte [esp + 0x85b], 0
mov esi, str.error
lea eax, [esp + 0x53c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x10199512
test cl, cl
je 0x1019950e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x10199512
add eax, 2
add esi, 2
test cl, cl
jne 0x101994ea
xor eax, eax
jmp 0x10199517
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1019953f
lea eax, [esp + 0x6cc]
push eax
call fcn.101bfa53
push ebp
push eax
call fcn.10196730
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret 0xc
lea ecx, [esp + 0x28]
lea edx, [esp + 0x21c]
push ecx
push edx
push 1
push 0x1020dd78
call fcn.1019f630
add esp, 0x10
test ax, ax
je 0x10199578
push ebp
push 0x42
call fcn.10196730
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret 0xc
lea eax, [esp + 0x28]
push eax
call fcn.101bfa53
mov ecx, dword [esp + 0x86c]
lea esi, [ebp + 0x68]
push esi
mov word [ecx], ax
call fcn.101cdda5
mov edi, dword [esi]
push ebp
add edi, 0x78
push 0
mov dword [esi], edi
call fcn.10196730
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret 0xc
pop edi
pop esi
pop ebp
mov ax, 5
pop ebx
add esp, 0x84c
ret 0xc
mov ax, 0x47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84c
ret 0xc