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

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [edx]
mov esi, dword [edi + 8]
test esi, esi
jne 0x10163674
cmp dword [edi + 0x78], esi
jne 0x10163665
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x10163665
mov byte [edi + 0x17], 1
push edi
call fcn.1013a130
mov edx, dword [esp + 0x2c]
add esp, 4
mov esi, eax
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 0xc]
mov cl, byte [edi + 0x13]
mov dword [esp + 0x20], eax
test cl, cl
jne 0x10163692
mov ebp, dword [edi + 0x2c]
inc ebp
mov eax, ebp
lea ebx, [eax + 1]
mov eax, ebx
jmp 0x101636c0
sub cl, 1
movzx eax, cl
mov byte [edi + 0x13], cl
mov ebp, dword [edi + eax*4 + 0x9c]
mov eax, dword [edi + 0x2c]
jne 0x101636ae
lea ebx, [eax + 1]
mov eax, ebx
jmp 0x101636c0
dec cl
movzx eax, cl
mov byte [edi + 0x13], cl
mov ebx, dword [edi + eax*4 + 0x9c]
mov eax, dword [edi + 0x2c]
dec dword [edi + 0x38]
inc eax
mov dword [esp + 0x18], eax
mov dword [edi + 0x2c], eax
mov eax, 0x6a
push ebp
push dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x38]
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
call fcn.10164670
push ebx
push dword [esp + 0x48]
push dword [esp + 0x3c]
call fcn.10164670
mov eax, dword [esp + 0x38]
add esp, 0x18
mov cl, byte [eax + 0x10]
test cl, 1
je 0x1016373a
mov eax, dword [esp + 0x2c]
cmp eax, 0x36
je 0x1016372a
xor ebx, ebx
cmp eax, 0x39
mov eax, 0x6b
setne bl
mov dword [esp + 0x14], eax
lea ebx, [ebx*2 + 0x37]
jmp 0x1016373e
mov eax, 0x6b
mov ebx, 0x38
mov dword [esp + 0x14], eax
jmp 0x1016373e
mov ebx, dword [esp + 0x2c]
test cl, 2
je 0x101637e7
push ebp
push 0x33
push esi
call fcn.10139aa0
mov ecx, ebx
mov dword [esp + 0x34], eax
add esp, 0xc
sub ecx, 0x36
je 0x1016377e
sub ecx, 1
je 0x10163771
sub ecx, 2
jne 0x10163792
push dword [esp + 0x3c]
push ecx
push 9
jmp 0x10163789
push dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
push edx
push 0x32
jmp 0x10163789
push dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
push edx
push 0x33
push esi
call fcn.10139b00
add esp, 0x10
push dword [esp + 0x1c]
push 0
push 9
push esi
call fcn.10139b00
mov eax, dword [esi]
add esp, 0x10
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x101637b5
mov eax, 0x101a3d48
jmp 0x101637c2
mov eax, dword [esp + 0x28]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
cmp ebx, 0x36
je 0x101637d3
mov eax, dword [esp + 0x3c]
cmp ebx, 0x39
jne 0x101637d7
mov eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x14]
push 0x32
push esi
call fcn.10139b00
add esp, 0x10
push 0xffffffffffffffff
push 0x10183be2
push 0
push dword [esp + 0x24]
push 0
push 0x75
push esi
call fcn.10139bc0
mov edx, dword [esi + 0x6c]
add esp, 0x1c
mov dword [esp + 0x28], edx
cmp dword [esi + 0x70], edx
jg 0x10163825
push ebp
push 0
push dword [esp + 0x20]
push 0x39
push esi
call fcn.100f0a80
add esp, 0x14
mov dword [esp + 0x28], eax
jmp 0x10163854
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x39
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x14]
cmp ebx, 0x39
jne 0x10163862
cmp eax, 0x6a
je 0x1016386c
cmp ebx, 0x37
jne 0x101638c0
cmp eax, 0x6b
jne 0x101638c0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x10163889
push ebp
push dword [esp + 0x40]
push dword [esp + 0x18]
push ebx
push esi
call fcn.100f0a80
add esp, 0x14
jmp 0x101638c0
lea eax, [ecx + 1]
xor edx, edx
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov byte [eax + ecx*4], bl
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x101638de
mov eax, dword [esp + 0x14]
push ebp
push ebp
push dword [esp + 0x3c]
push eax
push esi
call fcn.100f0a80
add esp, 0x14
jmp 0x10163914
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
mov byte [ecx + 1], 0
mov byte [ecx], al
xor eax, eax
mov word [ecx + 2], ax
mov eax, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x10163926
mov eax, 0x101a3d48
jmp 0x10163933
mov eax, dword [esp + 0x28]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x10163957
push ebp
push dword [esp + 0x40]
push dword [esp + 0x18]
push ebx
push esi
call fcn.100f0a80
mov ebx, dword [esp + 0x24]
add esp, 0x14
jmp 0x1016398e
lea eax, [ecx + 1]
xor edx, edx
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4], bl
mov ebx, dword [esp + 0x10]
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esp + 0x20]
push dword [eax + 8]
push edi
call fcn.10118360
mov edx, eax
add esp, 8
test edx, edx
jne 0x101639a9
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x101639c3
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xfe
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x101639da
lea ecx, [eax + eax*4]
mov edx, 0x80
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x1c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x101639f8
push edx
push esi
push ecx
call fcn.101020c0
add esp, 0xc
jmp 0x10163a01
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
test ebp, ebp
je 0x10163a19
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x10163a19
movzx eax, al
mov dword [edi + eax*4 + 0x9c], ebp
inc byte [edi + 0x13]
test ebx, ebx
je 0x10163a31
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x10163a31
movzx eax, al
mov dword [edi + eax*4 + 0x9c], ebx
inc byte [edi + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret