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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10105018]
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 0x1005c7c5
test bl, 8
jne 0x1005c7c5
test dword [edi + 4], 0x7fff0000
jne 0x1005c7c5
test dword [edi + 8], 0x8000
jne 0x1005c7c5
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 0x1005c418
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 0x1005c40e
movsx eax, word [ebp - 0xa]
mov dword [esi + 0x64], eax
movsx eax, word [ebp - 8]
jmp 0x1005c415
movsx eax, word [ebp - 0xe]
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov eax, dword [esi + 4]
cmp dl, 0x9d
jne 0x1005c5e5
test byte [eax + 8], 1
jne 0x1005c7b9
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 0x1005c5f4
mov ebx, dword [ebp - 0xf8]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xfc]
push eax
push ebx
push edi
call fcn.1005b9d0
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push ebx
push edi
call fcn.1005ba00
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.100a8abc
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 8]
test edx, edx
je 0x1005c607
test al, 1
jne 0x1005c7b9
pop edi
pop esi
mov eax, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a8abc
mov esp, ebp
pop ebp
ret
test eax, 0x20001
je 0x1005c7a6
push 1
push ebx
push esi
push dword [ebp - 0xfc]
lea eax, [ebp - 0xec]
push eax
call fcn.100641f0
mov eax, dword [ebp - 0xf8]
push 1
push 0
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.10062560
lea eax, [ebp - 0xec]
push eax
call fcn.100641d0
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 0x1005c716
cmp word [ebp - 0xcc], 0
jle 0x1005c716
test bl, 0x10
je 0x1005c68e
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x40]
jmp 0x1005c6a0
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 0x1005c75e
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1005c75e
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 0x1005c7a6
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1005c7a6
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.100a8abc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xfc]
mov edx, dword [ebp - 0xf8]
test ebx, 0x4000
je 0x1005c7e5
mov edi, 6
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a8abc
mov esp, ebp
pop ebp
ret
mov eax, ebx
and eax, 1
mov dword [ebp - 0xf0], eax
jne 0x1005c810
cmp byte [ecx + 0x70], 0
jne 0x1005c810
mov edi, 0x24
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a8abc
mov esp, ebp
pop ebp
ret
test ebx, 0x1000000
jne 0x1005c962
test ebx, 0x100000
je 0x1005c962
cmp dword [edi + 0x378], 0
je 0x1005c962
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 0x1005c962
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.100a8abc
mov esp, ebp
pop ebp
ret
test ebx, 0x800000
jne 0x1005c7cd
push 0
push ebx
push esi
push dword [ebp - 0xfc]
lea eax, [ebp - 0xec]
push eax
call fcn.100641f0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1005caf2
mov ecx, ebx
and ecx, 0x110
cmp ecx, 0x100
jne 0x1005c9bd
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1005c9bd
mov eax, dword [ebp - 0xf8]
movzx eax, byte [eax + ecx]
shl eax, 6
mov dword [esi + 0x28], eax
jmp 0x1005cad9
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.10062560
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1005cab9
cmp dword [esi + 0x48], 0x636f6d70
jne 0x1005ca1c
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 0x1005ca51
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 0x1005ca51
push 0
neg eax
push eax
push ecx
call fcn.1004a0d0
add esp, 0xc
test bl, 2
jne case.0x1005ca85.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.0x1005ca85.2
mov eax, dword [ecx + 0x158]
cmp eax, 5
ja case.0x1005ca85.2
jmp dword [eax*4 + 0x1005cb08]
or dword [esi + 0x7c], 0x20
jmp case.0x1005ca85.1
or dword [esi + 0x7c], 0x30
jmp case.0x1005ca85.1
or dword [esi + 0x7c], 0x10
jmp case.0x1005ca85.1
or dword [esi + 0x7c], 8
push dword [ebp - 0xf8]
lea eax, [ebp - 0xec]
push eax
call fcn.10060d40
add esp, 8
mov edi, eax
cmp dword [ebp - 0xf0], 0
jne 0x1005cad9
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax + 0x2c]
cmp word [eax + 2], 0x18
jae 0x1005cad9
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.100483b0
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a8abc
mov esp, ebp
pop ebp
ret