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

Disassembly:
sub esp, 0x74
mov eax, dword [0x1020f0c0]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp byte [esp + 0x84], 0
mov eax, dword [esp + 0x7c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x84]
mov ebp, edx
push edi
mov edi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
mov ebx, dword [edi]
mov dword [esp + 0x2c], ebx
jne 0x1005bed8
mov ecx, dword [edi + 4]
cmp byte [ecx + 0xc], 0
jne 0x1005bed8
mov eax, dword [eax]
xorps xmm0, xmm0
push 1
push dword [esp + 0x94]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x68]
push eax
push esi
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
call fcn.1005be60
mov eax, dword [esp + 0x20]
cmp byte [eax + 4], 0
jne 0x1005bf76
mov eax, dword [esi + 0x14]
mov edx, 1
add eax, dword [ebp + 0x14]
mov esi, dword [esp + 0x20]
mov ecx, eax
neg ecx
and ecx, 7
shl edx, cl
dec edx
cmp eax, 0x60
jbe 0x1005bf13
mov eax, dword [esi]
test eax, eax
je 0x1005bf45
cmp dword [eax], 0
jne 0x1005bf45
mov dword [eax], 0x12
jmp 0x1005bf45
lea ecx, [eax + 7]
mov dword [esi + 8], eax
shr ecx, 3
mov dword [esi + 0xc], ecx
mov word [esi + 4], 0x101
test eax, eax
je 0x1005bf45
xor eax, eax
test ecx, ecx
je 0x1005bf3d
nop
mov byte [esi + eax + 0x10], 0xff
inc eax
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x1005bf30
lea eax, [esi + ecx]
not dl
and byte [eax + 0xf], dl
cmp byte [esi + 4], 0
jne 0x1005bf7a
cmp byte [ebx + 8], 0
je 0x1005c526
mov eax, dword [esi]
mov dword [eax], 0
mov byte [edi + 0xd], 0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.101a1d25
add esp, 0x74
ret 0x10
mov esi, dword [esp + 0x20]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x20]
movups xmmword [esp + 0x60], xmm0
mov dword [esp + 0x34], ecx
movq xmm0, qword [esi + 0x10]
lea esi, [esp + 0x70]
movq qword [esp + 0x70], xmm0
mov dword [esp + 0x24], esi
cmp ecx, dword [eax + 8]
ja 0x1005c526
cmp byte [ebx + 0xf9], 0
je 0x1005bfff
lea eax, [esp + 0x38]
mov dword [esp + 0x48], 0
xorps xmm0, xmm0
lea edx, [ebx + 0x120]
push eax
mov ecx, edi
movups xmmword [esp + 0x3c], xmm0
call fcn.1005bc80
lea eax, [ebx + 0x10c]
mov ecx, edi
push eax
lea edx, [esp + 0x3c]
call fcn.1005bc80
mov ecx, dword [esp + 0x34]
xor ebx, ebx
mov dl, 0x80
mov byte [esp + 0x17], dl
mov dword [esp + 0x30], ebx
test ecx, ecx
je 0x1005c24e
test byte [esi], dl
je 0x1005c21c
mov eax, dword [edi + 0x10]
xor esi, esi
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x38], 0
cmp ebx, dword [ebp + 0x14]
jb 0x1005c046
mov eax, dword [ebp + 4]
test eax, eax
je 0x1005c044
cmp dword [eax], esi
jne 0x1005c044
mov dword [eax], 0x82
xor eax, eax
mov edx, dword [ebp + 8]
imul edx, eax
add edx, dword [ebp + 0x1c]
mov ecx, dword [edx + 8]
mov eax, ecx
mov edi, dword [edx + 4]
sub eax, edi
cmp eax, 0xffeb0000
jne 0x1005c069
mov esi, ecx
mov ecx, 1
jmp 0x1005c081
cmp eax, 0xffec0000
jne 0x1005c074
xor ecx, ecx
jmp 0x1005c081
mov esi, ecx
test eax, eax
js 0x1005c07c
mov esi, edi
mov ecx, 4
mov edi, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x28], ecx
and edi, 0xa
je 0x1005c09d
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0xe8]
lea esi, [esi + eax*2]
add esi, dword [esp + 0x90]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], ebx
test ecx, ecx
je 0x1005c0e1
cmp byte [edx], 0
je 0x1005c0e1
test edi, edi
je 0x1005c0d1
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], ecx
jmp 0x1005c0ea
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], ecx
jmp 0x1005c0ea
mov edx, eax
mov ecx, esi
call fcn.10040490
mov dword [esp + 0x44], eax
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], 0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], eax
mov eax, ebx
cmp ebx, dword [ebp + 0x14]
jb 0x1005c11d
mov eax, dword [ebp + 4]
test eax, eax
je 0x1005c11b
cmp dword [eax], ecx
jne 0x1005c11b
mov dword [eax], 0x82
xor eax, eax
mov edx, dword [ebp + 8]
imul edx, eax
add edx, dword [ebp + 0x1c]
mov edi, dword [edx + 8]
mov eax, edi
mov esi, dword [edx + 4]
sub eax, esi
cmp eax, 0xffeb0000
jne 0x1005c13b
xor ebx, ebx
jmp 0x1005c156
mov ecx, esi
cmp eax, 0xffec0000
jne 0x1005c14b
mov ebx, 2
jmp 0x1005c156
mov ebx, 8
test eax, eax
js 0x1005c156
mov ecx, edi
mov esi, ebx
mov dword [esp + 0x4c], ebx
and esi, 0xa
je 0x1005c16e
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0xe8]
lea ecx, [ecx + eax*2]
add ecx, dword [esp + 0x90]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x50], eax
test ebx, ebx
je 0x1005c1ae
cmp byte [edx], 0
je 0x1005c1ae
test esi, esi
je 0x1005c1a2
mov eax, dword [edx + 0x10]
or ebx, 0x10
mov dword [esp + 0x4c], ebx
jmp 0x1005c1b5
mov eax, dword [edx + 0xc]
or ebx, 0x10
mov dword [esp + 0x4c], ebx
jmp 0x1005c1b5
mov edx, edi
call fcn.10040490
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
shr eax, 4
test al, 1
jne 0x1005c1e8
shr ebx, 4
test bl, 1
jne 0x1005c1e8
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x3c]
lea ecx, [ecx + 0xf0]
call fcn.1005a9f0
test al, al
je 0x1005c20c
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x3c]
mov ecx, edi
call fcn.1005bc80
mov dl, byte [esp + 0x17]
mov esi, dword [esp + 0x24]
mov al, dl
not al
and byte [esi], al
jmp 0x1005c218
mov dl, byte [esp + 0x17]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
mov ecx, ebx
and ecx, 7
cmp ecx, 7
jne 0x1005c22a
mov dl, 0x80
jmp 0x1005c22c
shr dl, 1
inc ebx
mov byte [esp + 0x17], dl
cmp ecx, 7
mov dword [esp + 0x30], ebx
lea eax, [esi + 1]
cmovne eax, esi
mov esi, eax
mov dword [esp + 0x24], esi
cmp ebx, dword [esp + 0x34]
jb 0x1005c013
cmp byte [esp + 0x94], 0
je 0x1005c2b8
mov eax, dword [edi + 0x14]
test eax, eax
je 0x1005c26f
cmp dword [edi + 0x24], 0
jg 0x1005c26f
lea eax, [eax + eax*4]
cmp dword [edi + eax*4 + 0x10], 0
jge 0x1005c2ac
mov eax, dword [edi + 0x10]
lea edx, [esp + 0x38]
mov dword [esp + 0x48], eax
xorps xmm0, xmm0
lea eax, [esp + 0x4c]
movlpd qword [esp + 0x3c], xmm0
push eax
mov ecx, edi
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], 0x31
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], 0
call fcn.1005bc80
mov ecx, edi
call fcn.1005b9a0
jmp 0x1005c51a
mov esi, dword [esp + 0x34]
lea ebx, [esp + 0x70]
mov dl, 0x80
mov dword [esp + 0x24], ebx
xor edi, edi
mov byte [esp + 0x17], dl
test esi, esi
je 0x1005c4ba
test byte [ebx], dl
je 0x1005c48e
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x4c], 0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], eax
mov eax, edi
cmp edi, dword [ebp + 0x14]
jb 0x1005c30b
mov eax, dword [ebp + 4]
test eax, eax
je 0x1005c309
cmp dword [eax], esi
jne 0x1005c309
mov dword [eax], 0x82
xor eax, eax
mov edx, dword [ebp + 8]
imul edx, eax
add edx, dword [ebp + 0x1c]
mov ecx, dword [edx + 8]
mov eax, ecx
mov ebx, dword [edx + 4]
sub eax, ebx
cmp eax, 0xffeb0000
jne 0x1005c32e
mov esi, ecx
mov ecx, 1
jmp 0x1005c346
cmp eax, 0xffec0000
jne 0x1005c339
xor ecx, ecx
jmp 0x1005c346
mov esi, ecx
test eax, eax
js 0x1005c341
mov esi, ebx
mov ecx, 4
mov ebx, ecx
mov dword [esp + 0x4c], ecx
and ebx, 0xa
je 0x1005c35e
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0xe8]
lea esi, [esi + eax*2]
add esi, dword [esp + 0x90]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], edi
test ecx, ecx
je 0x1005c39a
cmp byte [edx], 0
je 0x1005c39a
test ebx, ebx
je 0x1005c38e
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x4c], ecx
jmp 0x1005c3a3
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x4c], ecx
jmp 0x1005c3a3
mov edx, eax
mov ecx, esi
call fcn.10040490
mov dword [esp + 0x58], eax
xor esi, esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], 0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], eax
mov eax, edi
cmp edi, dword [ebp + 0x14]
jb 0x1005c3d6
mov eax, dword [ebp + 4]
test eax, eax
je 0x1005c3d4
cmp dword [eax], esi
jne 0x1005c3d4
mov dword [eax], 0x82
xor eax, eax
mov edx, dword [ebp + 8]
imul edx, eax
add edx, dword [ebp + 0x1c]
mov ebx, dword [edx + 8]
mov eax, ebx
mov ecx, dword [edx + 4]
sub eax, ecx
cmp eax, 0xffeb0000
jne 0x1005c3f4
xor ecx, ecx
jmp 0x1005c40f
mov esi, ecx
cmp eax, 0xffec0000
jne 0x1005c404
mov ecx, 2
jmp 0x1005c40f
test eax, eax
js 0x1005c40a
mov esi, ebx
mov ecx, 8
mov ebx, ecx
mov dword [esp + 0x38], ecx
and ebx, 0xa
je 0x1005c427
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0xe8]
lea esi, [esi + eax*2]
add esi, dword [esp + 0x90]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], edi
test ecx, ecx
je 0x1005c463
cmp byte [edx], 0
je 0x1005c463
test ebx, ebx
je 0x1005c457
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x38], ecx
jmp 0x1005c46c
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x38], ecx
jmp 0x1005c46c
mov edx, eax
mov ecx, esi
call fcn.10040490
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x4c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
call fcn.1005bc80
mov dl, byte [esp + 0x17]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x34]
mov ecx, edi
and ecx, 7
cmp ecx, 7
jne 0x1005c49c
mov dl, 0x80
jmp 0x1005c49e
shr dl, 1
inc edi
mov byte [esp + 0x17], dl
cmp ecx, 7
lea eax, [ebx + 1]
cmovne eax, ebx
mov ebx, eax
mov dword [esp + 0x24], ebx
cmp edi, esi
jb 0x1005c2d4
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.1005b9a0
xor esi, esi
cmp dword [edi + 0x14], esi
jbe 0x1005c51a
lea ecx, [edi + 0x1c]
nop
mov eax, dword [ecx]
shr eax, 5
test al, 1
jne 0x1005c511
mov edx, dword [ecx + 4]
cmp edx, dword [ebp + 0x14]
jb 0x1005c4f5
mov eax, dword [ebp + 4]
test eax, eax
je 0x1005c4f3
cmp dword [eax], 0
jne 0x1005c4f3
mov dword [eax], 0x82
xor edx, edx
mov eax, dword [ebp + 8]
imul eax, edx
mov edx, dword [ecx + 0xc]
add eax, dword [ebp + 0x1c]
test byte [ecx], 0xa
je 0x1005c50b
mov dword [eax + 0x10], edx
jmp 0x1005c50e
mov dword [eax + 0xc], edx
mov byte [eax], 1
inc esi
add ecx, 0x14
cmp esi, dword [edi + 0x14]
jb 0x1005c4d0
mov eax, dword [esp + 0x20]
mov byte [edi + 0xc], 1
mov byte [eax + 5], 0
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101a1d25
add esp, 0x74
ret 0x10