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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x88c
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x10199603
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x88c
ret 0x14
mov ecx, dword [0x10283b08]
mov eax, dword [eax + 0x54]
push ecx
push eax
call fcn.10197940
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x1019962d
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x88c
ret 0x14
mov ax, word [ebp + 0x44]
test ax, ax
je 0x10199a58
cmp ax, 0xffff
je 0x10199a58
mov esi, dword [esp + 0x8a8]
cmp si, word [ebp + 0x1a4]
ja 0x10199a47
cmp si, 7
ja 0x1019966f
pop edi
pop esi
pop ebp
mov ax, 4
pop ebx
add esp, 0x88c
ret 0x14
mov ebx, dword [esp + 0x8b0]
cmp bl, 7
je 0x10199691
cmp bl, 3
jbe 0x10199691
pop edi
pop esi
pop ebp
mov ax, 6
pop ebx
add esp, 0x88c
ret 0x14
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x25c]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x3ec]
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0xcc]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ecx
lea edi, [esp + 0x58]
mov dword [esp + 0x24], ecx
mov ecx, 0xc
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x50], edx
xor ecx, ecx
stosw word es:[edi], ax
xor eax, eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x34]
movsx edx, word [ebp + 0x5a]
mov ax, word [ebp + edx*2 + 0x46]
push eax
push 0x1020dd80
push ecx
call fcn.101bc928
xor edx, edx
lea eax, [esp + 0x28]
mov dx, word [ebp + 0x44]
push edx
push 0x1020dd80
push eax
call fcn.101bc928
mov ecx, dword [esp + 0x8bc]
lea edx, [esp + 0x70]
and ecx, 0xffff
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
mov ecx, dword [esp + 0x8dc]
lea edx, [esp + 0x58]
and ecx, 0xffff
push ecx
push 0x1020dd80
push edx
call fcn.101bc928
and ebx, 0xff
lea eax, [esp + 0x7c]
push ebx
push 0x1020dd80
push eax
call fcn.101bc928
mov edx, dword [esp + 0x8e8]
add esp, 0x48
lea ecx, [esp + 0x8c]
push 0x40
push ecx
push edx
call fcn.101960c0
test ax, ax
jne 0x10199a5c
lea eax, [esp + 0x40]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
push 6
push 0x1020dd78
call fcn.1019fa00
mov edx, eax
add esp, 0x20
test edx, edx
jne 0x1019981d
push ebp
push 0x4a
call fcn.10196730
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88c
ret 0x14
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x3ec]
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 + 0x50]
lea edx, [esp + 0x3f0]
push ecx
push edx
push str.writeKey
push 3
push 0x1020dc74
call fcn.1019fa00
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x10199888
push ebp
push 0x4a
call fcn.10196730
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88c
ret 0x14
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xcc]
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 + 0xd0]
push ecx
call fcn.1019fae0
mov edx, eax
add esp, 8
test edx, edx
jne 0x101998e2
push ebp
push 0x4a
call fcn.10196730
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88c
ret 0x14
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xcc]
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 + 0x260]
lea edx, [esp + 0xd0]
push ecx
push ebp
push edx
call fcn.1019d090
add esp, 0x10
test ax, ax
je 0x10199943
push ebp
push eax
call fcn.10196660
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88c
ret 0x14
lea eax, [esp + 0x25c]
push eax
call fcn.1019f7d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10199971
push ebp
push 0x42
call fcn.10196730
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88c
ret 0x14
lea ecx, [esp + 0x25c]
lea edx, [esp + 0x70c]
push ecx
lea eax, [esp + 0x580]
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 0x101999be
push ebp
push 0x42
call fcn.10196730
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88c
ret 0x14
mov esi, str.error
lea eax, [esp + 0x57c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x101999f2
test cl, cl
je 0x101999ee
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x101999f2
add eax, 2
add esi, 2
test cl, cl
jne 0x101999ca
xor eax, eax
jmp 0x101999f7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10199a1f
lea eax, [esp + 0x70c]
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, 0x88c
ret 0x14
lea esi, [ebp + 0x68]
push esi
call fcn.101cdda5
mov edi, dword [esi]
push ebp
add edi, 0x78
push 0
mov dword [esi], edi
call fcn.10196730
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88c
ret 0x14
pop edi
pop esi
pop ebp
mov ax, 5
pop ebx
add esp, 0x88c
ret 0x14
mov ax, 0x47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88c
ret 0x14