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

Disassembly:
push 0xffffffffffffffff
push 0x10192438
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10218460]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [esp + 0x8c]
mov eax, dword [esi + 0x1c]
mov edx, dword [eax + 0x3c]
add esi, 0x1c
mov ecx, esi
call edx
mov ebp, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x40]
mov ecx, esi
call edx
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
mov ebx, ebp
mov ecx, esi
mov dword [esp + 0x38], edi
sar ebx, 5
call edx
mov ecx, ebx
shl ecx, 5
cmp ecx, eax
jge 0x10165ad6
add ebx, 1
mov esi, dword [esp + 0x88]
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 0x54]
lea ecx, [esi + 0x28]
push edi
push ebx
call eax
add esi, 0xc
xor edi, edi
call fcn.10082bf0
push 1
lea ecx, [esp + 0x58]
call fcn.1005eca0
push edi
push ebp
lea esi, [esp + 0x64]
mov dword [esp + 0x88], edi
call fcn.10005ca0
xor eax, eax
lea edx, [esp + 0x54]
call fcn.1005f330
mov edi, dword [esp + 0x90]
lea eax, [edi + edi + 1]
mov ecx, eax
imul ecx, eax
mov esi, edi
neg esi
cmp esi, dword [esp + 0x38]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], esi
jge 0x10165d30
mov edx, esi
imul edx, ebx
add ebx, ebx
mov eax, esi
sub eax, edi
add ebx, ebx
add eax, 0xffffffff
lea ecx, [esi + edi]
add edx, edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x34], ecx
imul ecx, ebp
add edx, edx
mov ebx, eax
imul ebx, ebp
mov dword [esp + 0x40], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ebx
jmp 0x10165b8c
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
test eax, eax
jl 0x10165ba2
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 4]
add ebx, eax
mov dword [esp + 0x14], ebx
jmp 0x10165baa
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x34], eax
jge 0x10165bc3
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 4]
lea ebx, [ecx + eax]
jmp 0x10165bc5
xor ebx, ebx
mov ecx, dword [esp + 0x88]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x10]
lea ecx, [edx + eax]
mov eax, dword [esp + 0x44]
cmp eax, ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], 1
jge 0x10165d07
mov edx, eax
sub edx, edi
mov dword [esp + 0x3c], ecx
lea ecx, [edx + ebx - 1]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x14]
mov edx, ecx
sub edx, ebx
mov dword [esp + 0x48], edx
jmp 0x10165c2c
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10165c5f
mov ebx, ebp
sub ebx, edi
cmp eax, ebx
jge 0x10165c40
add ecx, eax
movzx ecx, byte [ecx + edi]
jmp 0x10165c42
xor ecx, ecx
cmp eax, edi
jle 0x10165c53
mov ebx, dword [esp + 0x90]
movzx edx, byte [edx + ebx]
jmp 0x10165c55
xor edx, edx
mov ebx, dword [esp + 0x18]
sub ecx, edx
add dword [esp + 0x20], ecx
test ebx, ebx
je 0x10165c8e
mov edx, ebp
sub edx, edi
cmp eax, edx
jge 0x10165c74
lea ecx, [eax + ebx]
movzx ecx, byte [ecx + edi]
jmp 0x10165c76
xor ecx, ecx
cmp eax, edi
jle 0x10165c86
mov edx, dword [esp + 0x90]
movzx edx, byte [edx]
jmp 0x10165c88
xor edx, edx
sub ecx, edx
add dword [esp + 0x1c], ecx
test eax, eax
jl 0x10165cf0
mov edx, dword [esp + 0x1c]
sub edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x60]
add dword [ecx + eax*4], edx
test esi, esi
jl 0x10165cf0
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx + 0x14]
mov ebx, dword [esp + 0x60]
imul edx, esi
add edx, dword [ecx + 4]
movzx ecx, byte [edx + eax]
imul ecx, dword [esp + 0x4c]
xor edx, edx
cmp ecx, dword [ebx + eax*4]
mov ebx, dword [esp + 0x24]
setg dl
mov ecx, edx
mov edx, dword [esp + 0x3c]
imul ecx, ebx
or dword [edx], ecx
add ebx, ebx
mov dword [esp + 0x24], ebx
jne 0x10165cf0
add edx, 4
mov dword [esp + 0x24], 1
mov dword [esp + 0x3c], edx
add dword [esp + 0x90], 1
add eax, 1
cmp eax, ebp
jl 0x10165c20
mov edx, dword [esp + 0x40]
add edx, dword [esp + 0x50]
add dword [esp + 0x28], ebp
add dword [esp + 0x2c], ebp
mov eax, 1
add dword [esp + 0x30], eax
add dword [esp + 0x34], eax
add esi, eax
cmp esi, dword [esp + 0x38]
mov dword [esp + 0x40], edx
jl 0x10165b80
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x54]
push ecx
mov dword [eax + 8], ebp
mov dword [esp + 0x84], 0xffffffff
call fcn.10001b50
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 0xc