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

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x8c
cmp eax, 3
ja case.0x10165d0f.1
jmp dword [eax*4 + 0x1016604c]
mov dword [esp + 8], 0x10165420
jmp 0x10165d3c
mov dword [esp + 8], 0x10167240
jmp 0x10165d3c
mov dword [esp + 8], 0x10167260
jmp 0x10165d3c
mov dword [esp + 8], 0x10166390
push ebx
push ebp
push esi
push edi
push dword [esp + 0xa4]
lea ecx, [esp + 0x70]
call fcn.10164530
push dword [esp + 0xa8]
lea ecx, [esp + 0x88]
call fcn.10164530
mov cl, byte [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x94]
mov ebx, dword [esp + 0x90]
mov edi, dword [esp + 0x78]
mov byte [esp + 0x12], cl
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x2c], ecx
mov cl, byte [esp + 0x98]
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ecx
nop dword [eax]
xor edx, edx
xor ecx, ecx
cmp edi, ebx
jge 0x10165de8
mov edx, dword [esp + 0x1c]
mov esi, edi
cmp eax, ebx
jle 0x10165e0b
mov edi, ebx
mov eax, ebx
jmp 0x10165e0b
mov ecx, dword [esp + 0x20]
jle 0x10165df8
mov esi, ebx
cmp ebp, edi
jg 0x10165e05
mov eax, ebp
jmp 0x10165e0b
mov edx, dword [esp + 0x1c]
mov esi, edi
cmp ebp, eax
mov edi, eax
cmovl edi, ebp
mov eax, edi
mov dword [esp + 0x24], edi
mov ebx, dword [esp + 0xa0]
mov ebx, dword [ebx + 0xc]
cmp esi, ebx
jge 0x1016603f
cmp eax, ebx
cmovle ebx, eax
mov dword [esp + 0x40], ebx
test edx, edx
jne 0x10165ea4
test ecx, ecx
jne 0x10165ea4
mov eax, dword [esp + 0xa0]
sub ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
dec ebx
sub ebp, dword [eax]
mov esi, dword [eax + 0x1c]
cmp ebx, dword [eax + 0x20]
je 0x10165e67
push 1
mov ecx, eax
mov dword [eax + 0x20], ebx
call fcn.101655f0
mov esi, eax
mov eax, dword [esp + 0xa0]
mov dword [esi], ebx
mov dword [esi + 4], 0
mov dword [eax + 0x1c], esi
mov ebx, dword [esi + 4]
neg ebx
mov eax, dword [esi + 8]
mov dword [esp + 0x3c], eax
je 0x10165e88
push ebx
push 0
push eax
call fcn.101646e0
mov eax, dword [esp + 0x48]
add esp, 0xc
add dword [esi + 4], ebx
push ebp
push 0
push eax
call fcn.101646e0
mov ebx, dword [esp + 0x4c]
add esp, 0xc
add dword [esi + 4], ebp
mov ebp, dword [esp + 0x28]
jmp 0x10165f66
mov eax, dword [esp + 0xa0]
cmp esi, dword [eax + 4]
jl 0x10165f66
mov eax, dword [esp + 0xa4]
test edx, edx
mov dword [esp + 0x58], edx
cmove eax, dword [esp + 0xa0]
mov esi, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], eax
je 0x10165eef
movzx eax, byte [edx]
add eax, esi
mov byte [esp + 0x68], 0
mov dword [esp + 0x60], eax
mov al, byte [edx + 1]
mov byte [esp + 0x69], al
jmp 0x10165efe
mov word [esp + 0x68], 1
mov dword [esp + 0x60], 0x7fffffff
mov eax, dword [esp + 0xa8]
test ecx, ecx
mov esi, dword [esp + 0xa0]
cmove eax, esi
mov dword [esp + 0x44], ecx
mov edx, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], eax
je 0x10165f3b
movzx eax, byte [ecx]
add eax, edx
mov byte [esp + 0x54], 0
mov dword [esp + 0x4c], eax
mov al, byte [ecx + 1]
mov byte [esp + 0x55], al
jmp 0x10165f4a
mov word [esp + 0x54], 1
mov dword [esp + 0x4c], 0x7fffffff
push esi
push dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [ebx - 1]
push eax
push esi
call fcn.10166060
add esp, 0x18
mov eax, dword [esp + 0x14]
cmp ebx, eax
jne 0x10165fbc
cmp byte [esp + 0x12], 0
jne 0x10165fb4
mov edx, dword [esp + 0x2c]
lea ecx, [edx + 8]
cmp ecx, dword [esp + 0x70]
jb 0x10165f9a
mov eax, 0x7fffffff
mov byte [esp + 0x12], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
jmp 0x10165fb4
mov eax, dword [ecx]
sub eax, dword [edx]
add dword [esp + 0x14], eax
mov eax, dword [ecx + 4]
sub eax, dword [edx + 4]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov edi, dword [esp + 0x30]
mov dword [esp + 0x30], eax
cmp ebx, ebp
jne 0x10166025
cmp byte [esp + 0x13], 0
jne 0x10166017
mov edx, dword [esp + 0x34]
lea ecx, [edx + 8]
cmp ecx, dword [esp + 0x88]
jb 0x10165ffb
mov ebx, dword [esp + 0x38]
mov ebp, 0x7fffffff
mov byte [esp + 0x13], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebp
jmp 0x10166029
mov eax, dword [ecx]
sub eax, dword [edx]
add ebp, eax
mov dword [esp + 0x34], ecx
mov eax, dword [ecx + 4]
sub eax, dword [edx + 4]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebp
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebp
jmp 0x10166029
mov ebx, dword [esp + 0x24]
cmp byte [esp + 0x12], 0
je 0x10165dd0
cmp byte [esp + 0x13], 0
je 0x10165dd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret