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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100d0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x78]
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0xf4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1005ea25
test bl, 8
jne 0x1005ea25
test dword [edi + 4], 0x7fff0000
jne 0x1005ea25
test dword [edi + 8], 0x8000
jne 0x1005ea25
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x108], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [edi + 0x21c]
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x4c]
push eax
push dword [edi + 0x68]
mov eax, dword [ecx + 0x48]
push ebx
push edx
push dword [ebp - 0xf4]
push edi
call eax
mov edx, eax
add esp, 0x1c
test edx, edx
jne 0x1005e678
movzx ecx, word [ebp - 0x12]
mov dword [esi + 0x6c], eax
movzx eax, word [ebp - 0x14]
shl eax, 6
mov dword [esi + 0x1c], eax
shl ecx, 6
mov dword [esi + 0x18], ecx
movsx ecx, word [ebp - 0x10]
mov eax, ecx
mov dword [esi + 0x48], 0x62697473
shl eax, 6
mov dword [esi + 0x20], eax
movsx eax, word [ebp - 0xe]
shl eax, 6
mov dword [esi + 0x24], eax
movzx eax, word [ebp - 0xc]
shl eax, 6
mov dword [esi + 0x28], eax
movsx eax, word [ebp - 0xa]
shl eax, 6
mov dword [esi + 0x2c], eax
movsx eax, word [ebp - 8]
shl eax, 6
mov dword [esi + 0x30], eax
movzx eax, word [ebp - 6]
shl eax, 6
mov dword [esi + 0x34], eax
test bl, 0x10
je 0x1005e66e
movsx eax, word [ebp - 0xa]
mov dword [esi + 0x64], eax
movsx eax, word [ebp - 8]
jmp 0x1005e675
movsx eax, word [ebp - 0xe]
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov eax, dword [esi + 4]
cmp dl, 0x9d
jne 0x1005e845
test byte [eax + 8], 1
jne 0x1005ea19
cmp dword [edi + 0x2fc], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0xf4], 0
je 0x1005e854
mov ebx, dword [ebp - 0xf8]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xfc]
push eax
push ebx
push edi
call fcn.1005dc30
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push ebx
push edi
call fcn.1005dc60
xor eax, eax
add esp, 0x24
mov dword [esi + 0x6c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
movsx eax, word [ebp - 0xfc]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf8]
mov edx, dword [ebp - 0x108]
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 [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov dword [esi + 0x20], eax
movzx eax, word [ebp - 0x10c]
mov dword [esi + 0x24], 0
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov edx, dword [ebp - 0x108]
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 [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf8]
mov dword [esi + 0x28], eax
movsx eax, word [ebp - 0x104]
mov dword [esi + 0x2c], 0
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov edx, dword [ebp - 0x100]
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 [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf8]
mov dword [esi + 0x30], eax
movzx eax, word [ebp - 0xf4]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov edx, dword [ebp - 0x100]
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 [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf8]
pop edi
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
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a95f7
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 8]
test edx, edx
je 0x1005e867
test al, 1
jne 0x1005ea19
pop edi
pop esi
mov eax, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a95f7
mov esp, ebp
pop ebp
ret
test eax, 0x20001
je 0x1005ea06
push 1
push ebx
push esi
push dword [ebp - 0xfc]
lea eax, [ebp - 0xec]
push eax
call fcn.10066450
mov eax, dword [ebp - 0xf8]
push 1
push 0
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.100647c0
lea eax, [ebp - 0xec]
push eax
call fcn.10066430
mov eax, dword [ebp - 0xb0]
add esp, 0x28
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x3c], eax
cmp dword [edi + 0x328], 3
jne 0x1005e976
cmp word [ebp - 0xcc], 0
jle 0x1005e976
test bl, 0x10
je 0x1005e8ee
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x40]
jmp 0x1005e900
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0xf4]
mov edx, dword [ebp - 0x108]
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 [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
sar eax, 6
add dword [esi + 0x64], eax
mov eax, dword [ebp - 0x104]
mov edx, dword [ebp - 0x100]
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 [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
sar eax, 6
add dword [esi + 0x68], eax
cmp dword [esi + 0x28], 0
jne 0x1005e9be
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1005e9be
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov edx, dword [ebp - 0x108]
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 [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
mov dword [esi + 0x28], eax
cmp dword [esi + 0x34], 0
jne 0x1005ea06
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1005ea06
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov edx, dword [ebp - 0x100]
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 [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
mov dword [esi + 0x34], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a95f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xfc]
mov edx, dword [ebp - 0xf8]
test ebx, 0x4000
je 0x1005ea45
mov edi, 6
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a95f7
mov esp, ebp
pop ebp
ret
mov eax, ebx
and eax, 1
mov dword [ebp - 0xf0], eax
jne 0x1005ea70
cmp byte [ecx + 0x70], 0
jne 0x1005ea70
mov edi, 0x24
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a95f7
mov esp, ebp
pop ebp
ret
test ebx, 0x1000000
jne 0x1005ebc2
test ebx, 0x100000
je 0x1005ebc2
cmp dword [edi + 0x378], 0
je 0x1005ebc2
mov eax, dword [edi + 0x21c]
push edx
mov dword [ebp - 0xf4], eax
push esi
mov eax, dword [eax + 0xb4]
call eax
add esp, 8
test eax, eax
jne 0x1005ebc2
mov ecx, dword [ebp - 0xfc]
mov ebx, dword [ebp - 0xf8]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x104], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xfc]
mov dword [esi + 0x48], 0x53564720
push eax
mov eax, dword [ebp - 0xf4]
push ebx
push 0
push edi
mov eax, dword [eax + 0xa0]
call eax
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0xf8]
push eax
mov eax, dword [ebp - 0xf4]
push ebx
push 1
push edi
mov eax, dword [eax + 0xa0]
call eax
movzx ecx, word [ebp - 0x108]
add esp, 0x28
movzx eax, word [ebp - 0x100]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [ebp - 0xf0], ecx
mov eax, dword [ebp - 0xf0]
mov edx, dword [ebp - 0x104]
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 [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
mov dword [esi + 0x28], eax
movzx eax, word [ebp - 0x100]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov edx, dword [ebp - 0x10c]
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 [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
pop edi
mov dword [esi + 0x34], eax
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a95f7
mov esp, ebp
pop ebp
ret
test ebx, 0x800000
jne 0x1005ea2d
push 0
push ebx
push esi
push dword [ebp - 0xfc]
lea eax, [ebp - 0xec]
push eax
call fcn.10066450
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1005ed52
mov ecx, ebx
and ecx, 0x110
cmp ecx, 0x100
jne 0x1005ec1d
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1005ec1d
mov eax, dword [ebp - 0xf8]
movzx eax, byte [eax + ecx]
shl eax, 6
mov dword [esi + 0x28], eax
jmp 0x1005ed39
mov eax, dword [ebp - 0xf8]
push 0
push 0
push eax
lea eax, [ebp - 0xec]
mov dword [esi + 0x48], 0x6f75746c
push eax
mov dword [esi + 0x80], 0
mov dword [esi + 0x7c], 0
call fcn.100647c0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1005ed19
cmp dword [esi + 0x48], 0x636f6d70
jne 0x1005ec7c
mov ecx, dword [ebp - 0xe0]
mov eax, dword [ecx + 0x30]
mov dword [esi + 0x80], eax
mov eax, dword [ecx + 0x34]
mov dword [esi + 0x84], eax
jmp 0x1005ecb1
mov eax, dword [ebp - 0xe0]
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 [ebp - 0xa8]
test eax, eax
je 0x1005ecb1
push 0
neg eax
push eax
push ecx
call fcn.1004c330
add esp, 0xc
test bl, 2
jne case.0x1005ece5.1
mov ecx, dword [ebp - 0x50]
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.0x1005ece5.2
mov eax, dword [ecx + 0x158]
cmp eax, 5
ja case.0x1005ece5.2
jmp dword [eax*4 + 0x1005ed68]
or dword [esi + 0x7c], 0x20
jmp case.0x1005ece5.1
or dword [esi + 0x7c], 0x30
jmp case.0x1005ece5.1
or dword [esi + 0x7c], 0x10
jmp case.0x1005ece5.1
or dword [esi + 0x7c], 8
push dword [ebp - 0xf8]
lea eax, [ebp - 0xec]
push eax
call fcn.10062fa0
add esp, 8
mov edi, eax
cmp dword [ebp - 0xf0], 0
jne 0x1005ed39
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x2c]
cmp word [eax + 2], 0x18
jae 0x1005ed39
or dword [esi + 0x7c], 0x100
mov eax, dword [ebp - 0xec]
push 0
push dword [eax + 0x64]
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.1004a610
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a95f7
mov esp, ebp
pop ebp
ret