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

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1032e6c0]
xor eax, esp
mov dword [esp + 0x108], eax
mov ecx, dword [esp + 0x110]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
mov edx, dword [ecx + 0x78]
mov ebp, dword [esp + 0x120]
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esi + 4]
cmp edx, 0xffffffff
je 0x1016065b
test bl, 8
jne 0x1016065b
test dword [edi + 4], 0x7fff0000
jne 0x1016065b
test dword [edi + 8], 0x8000
jne 0x1016065b
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [edi + 0x21c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x108]
push eax
lea eax, [esi + 0x4c]
push eax
push dword [edi + 0x68]
mov eax, dword [ecx + 0x48]
push ebx
push ebp
push edx
push edi
call eax
mov edx, eax
add esp, 0x1c
test edx, edx
jne 0x10160357
movzx ecx, word [esp + 0x10a]
mov dword [esi + 0x6c], eax
movzx eax, word [esp + 0x108]
shl eax, 6
mov dword [esi + 0x1c], eax
shl ecx, 6
mov dword [esi + 0x18], ecx
movsx ecx, word [esp + 0x10c]
mov eax, ecx
mov dword [esi + 0x48], 0x62697473
shl eax, 6
mov dword [esi + 0x20], eax
movsx eax, word [esp + 0x10e]
shl eax, 6
mov dword [esi + 0x24], eax
movzx eax, word [esp + 0x110]
shl eax, 6
mov dword [esi + 0x28], eax
movsx eax, word [esp + 0x112]
shl eax, 6
mov dword [esi + 0x2c], eax
movsx eax, word [esp + 0x114]
shl eax, 6
mov dword [esi + 0x30], eax
movzx eax, word [esp + 0x116]
shl eax, 6
mov dword [esi + 0x34], eax
test bl, 0x10
je 0x10160349
movsx eax, word [esp + 0x112]
mov dword [esi + 0x64], eax
movsx eax, word [esp + 0x114]
jmp 0x10160354
movsx eax, word [esp + 0x10e]
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov eax, dword [esi + 4]
cmp dl, 0x9d
jne 0x101604d2
test byte [eax + 8], 1
jne 0x10160657
cmp dword [edi + 0x2fc], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
je 0x101604e1
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
call fcn.1015f8e0
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push ebp
push edi
call fcn.1015f910
xor eax, eax
add esp, 0x24
mov dword [esi + 0x6c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
movsx eax, word [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x20], eax
movzx eax, word [esp + 0x28]
mov dword [esi + 0x24], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x28], eax
movsx eax, word [esp + 0x1c]
mov dword [esi + 0x2c], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x30], eax
movzx eax, word [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], eax
xor eax, eax
mov dword [esi + 0x48], 0x62697473
mov byte [esi + 0x5e], 1
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
jmp 0x1016090f
mov eax, dword [eax + 8]
test edx, edx
je 0x101604e8
test al, 1
jne 0x10160657
mov eax, edx
jmp 0x1016090f
test eax, 0x20001
je 0x10160650
push 1
push ebx
push esi
push dword [esp + 0x24]
lea eax, [esp + 0x40]
push eax
call fcn.101684a0
push 1
push 0
lea eax, [esp + 0x4c]
push ebp
push eax
call fcn.101667b0
lea eax, [esp + 0x54]
push eax
call fcn.10168480
mov eax, dword [esp + 0x94]
add esp, 0x28
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0xe0]
mov dword [esi + 0x3c], eax
cmp dword [edi + 0x328], 3
jne 0x101605d4
cmp word [esp + 0x50], 0
jle 0x101605d4
test bl, 0x10
je 0x10160564
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xdc]
jmp 0x10160570
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sar eax, 6
add dword [esi + 0x64], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sar eax, 6
add dword [esi + 0x68], eax
cmp dword [esi + 0x28], 0
jne 0x10160612
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10160612
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x28], eax
cmp dword [esi + 0x34], 0
jne 0x10160650
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x10160650
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], eax
xor eax, eax
jmp 0x1016090f
mov ecx, dword [esp + 0x18]
test ebx, 0x4000
je 0x1016066d
mov edi, 6
jmp 0x1016090d
mov eax, ebx
and eax, 1
mov dword [esp + 0x14], eax
jne 0x10160688
cmp byte [ecx + 0x70], 0
jne 0x10160688
mov edi, 0x24
jmp 0x1016090d
test ebx, 0x1000000
jne 0x10160796
test ebx, 0x100000
je 0x10160796
cmp dword [edi + 0x378], 0
je 0x10160796
mov eax, dword [edi + 0x21c]
mov dword [esp + 0x10], eax
push ebp
push esi
mov eax, dword [eax + 0xb4]
call eax
add esp, 8
test eax, eax
jne 0x10160796
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
mov dword [esi + 0x48], 0x53564720
push eax
mov eax, dword [ebx + 0xa0]
push ebp
push 0
push edi
call eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [ebx + 0xa0]
push ebp
push 1
push edi
call eax
movzx ecx, word [esp + 0x4c]
add esp, 0x28
movzx eax, word [esp + 0x28]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x28], eax
movzx eax, word [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x34], eax
xor eax, eax
jmp 0x1016090f
test ebx, 0x800000
jne 0x10160663
push 0
push ebx
push esi
push dword [esp + 0x24]
lea eax, [esp + 0x40]
push eax
call fcn.101684a0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1016090d
mov ecx, ebx
and ecx, 0x110
cmp ecx, 0x100
jne 0x101607eb
mov eax, dword [esp + 0x104]
test eax, eax
je 0x101607eb
movzx eax, byte [eax + ebp]
shl eax, 6
mov dword [esi + 0x28], eax
jmp 0x101608f2
push 0
push 0
lea eax, [esp + 0x38]
mov dword [esi + 0x48], 0x6f75746c
push ebp
push eax
mov dword [esi + 0x80], 0
mov dword [esi + 0x7c], 0
call fcn.101667b0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x101608d6
cmp dword [esi + 0x48], 0x636f6d70
jne 0x10160840
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x30]
mov dword [esi + 0x80], eax
mov eax, dword [ecx + 0x34]
mov dword [esi + 0x84], eax
jmp 0x10160871
mov eax, dword [esp + 0x3c]
lea ecx, [esi + 0x6c]
movups xmm0, xmmword [eax + 0x14]
movups xmmword [ecx], xmm0
mov eax, dword [eax + 0x24]
mov dword [ecx + 0x10], eax
and dword [esi + 0x7c], 0xfffffdff
mov eax, dword [esp + 0x74]
test eax, eax
je 0x10160871
push 0
neg eax
push eax
push ecx
call fcn.1014c9c0
add esp, 0xc
test bl, 2
jne case.0x101608a9.1
mov ecx, dword [esp + 0xcc]
mov eax, dword [ecx + 0x198]
mov dword [esi + 0x88], eax
mov eax, dword [ecx + 0x194]
mov dword [esi + 0x8c], eax
cmp byte [ecx + 0x155], 0
je case.0x101608a9.2
mov eax, dword [ecx + 0x158]
cmp eax, 5
ja case.0x101608a9.2
jmp dword [eax*4 + 0x10160928]
or dword [esi + 0x7c], 0x20
jmp case.0x101608a9.1
or dword [esi + 0x7c], 0x30
jmp case.0x101608a9.1
or dword [esi + 0x7c], 0x10
jmp case.0x101608a9.1
or dword [esi + 0x7c], 8
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.10164ec0
add esp, 8
mov edi, eax
cmp dword [esp + 0x14], 0
jne 0x101608f2
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x2c]
cmp word [eax + 2], 0x18
jae 0x101608f2
or dword [esi + 0x7c], 0x100
mov eax, dword [esp + 0x30]
push 0
push dword [eax + 0x64]
lea eax, [esp + 0x104]
push 0
push eax
call fcn.1014aaa0
add esp, 0x10
mov eax, edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1026465b
add esp, 0x10c
ret