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

Disassembly:
sub esp, 0x64
cmp byte [esp + 0x74], 0
push ebx
push ebp
mov ebx, ecx
mov ebp, edx
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, dword [ebx]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
jne 0x1005f59c
mov ecx, dword [ebx + 4]
cmp byte [ecx + 0xc], 0
jne 0x1005f59c
mov eax, dword [esp + 0x7c]
xorps xmm0, xmm0
push 1
push dword [esp + 0x84]
movlpd qword [esp + 0x60], xmm0
mov eax, dword [eax]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
push eax
push esi
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
call fcn.1005f540
mov edx, dword [esp + 0x7c]
cmp byte [edx + 4], 0
jne 0x1005f636
mov eax, dword [esi + 0x14]
mov edx, 1
add eax, dword [ebp + 0x14]
mov esi, dword [esp + 0x7c]
mov ecx, eax
neg ecx
and ecx, 7
shl edx, cl
dec edx
cmp eax, 0x60
jbe 0x1005f5db
mov eax, dword [esi]
test eax, eax
je 0x1005f60c
cmp dword [eax], 0
jne 0x1005f60c
mov dword [eax], 0x12
jmp 0x1005f60c
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 0x1005f60c
xor eax, eax
test ecx, ecx
je 0x1005f604
mov byte [esi + eax + 0x10], 0xff
inc eax
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x1005f5f7
lea eax, [ecx + esi]
not dl
and byte [eax + 0xf], dl
cmp byte [esi + 4], 0
jne 0x1005f632
cmp byte [edi + 8], 0
je 0x1005fc1a
mov eax, dword [esi]
mov dword [eax], 0
mov byte [ebx + 0xd], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x10
mov edx, dword [esp + 0x7c]
mov ecx, ebx
lea edi, [esp + 0x64]
mov dword [ecx + 0x14], 0
lea esi, [ecx + 0x14]
mov dword [esp + 0x20], edi
mov dword [ecx + 0x18], 0
movups xmm0, xmmword [edx]
mov eax, dword [edx + 0x18]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x14]
movups xmmword [esp + 0x54], xmm0
mov dword [esp + 0x24], eax
movq xmm0, qword [edx + 0x10]
movq qword [esp + 0x64], xmm0
cmp eax, dword [edx + 8]
ja 0x1005fc1a
mov ebx, dword [esp + 0x14]
cmp byte [ebx + 0xf9], 0
je 0x1005f6c4
lea eax, [esp + 0x40]
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
lea edx, [ebx + 0x120]
push eax
movups xmmword [esp + 0x44], xmm0
call fcn.1005f360
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 0x10c]
push eax
lea edx, [esp + 0x44]
call fcn.1005f360
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dl, 0x80
mov byte [esp + 0x78], dl
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x1005f916
test byte [edi], dl
je 0x1005f8db
mov eax, dword [ecx + 0x10]
xor esi, esi
mov dword [esp + 0x28], eax
mov eax, ebx
mov dword [esp + 0x40], 0
cmp ebx, dword [ebp + 0x14]
jb 0x1005f70b
mov eax, dword [ebp + 4]
test eax, eax
je 0x1005f709
cmp dword [eax], esi
jne 0x1005f709
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 0x1005f72e
mov esi, ecx
mov ecx, 1
jmp 0x1005f746
cmp eax, 0xffec0000
jne 0x1005f739
xor ecx, ecx
jmp 0x1005f746
mov esi, ecx
test eax, eax
js 0x1005f741
mov esi, edi
mov ecx, 4
mov edi, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], ecx
and edi, 0xa
je 0x1005f762
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xe8]
lea esi, [esi + eax*2]
add esi, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], ebx
test ecx, ecx
je 0x1005f7a6
cmp byte [edx], 0
je 0x1005f7a6
test edi, edi
je 0x1005f796
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], ecx
jmp 0x1005f7af
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], ecx
jmp 0x1005f7af
mov edx, eax
mov ecx, esi
call fcn.10044010
mov dword [esp + 0x4c], eax
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], 0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x28], eax
mov eax, ebx
cmp ebx, dword [ebp + 0x14]
jb 0x1005f7e2
mov eax, dword [ebp + 4]
test eax, eax
je 0x1005f7e0
cmp dword [eax], ecx
jne 0x1005f7e0
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 0x1005f800
xor ebx, ebx
jmp 0x1005f81b
mov ecx, esi
cmp eax, 0xffec0000
jne 0x1005f810
mov ebx, 2
jmp 0x1005f81b
mov ebx, 8
test eax, eax
js 0x1005f81b
mov ecx, edi
mov esi, ebx
mov dword [esp + 0x2c], ebx
and esi, 0xa
je 0x1005f833
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xe8]
lea ecx, [ecx + eax*2]
add ecx, dword [esp + 0x80]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], eax
test ebx, ebx
je 0x1005f873
cmp byte [edx], 0
je 0x1005f873
test esi, esi
je 0x1005f867
mov eax, dword [edx + 0x10]
or ebx, 0x10
mov dword [esp + 0x2c], ebx
jmp 0x1005f87a
mov eax, dword [edx + 0xc]
or ebx, 0x10
mov dword [esp + 0x2c], ebx
jmp 0x1005f87a
mov edx, edi
call fcn.10044010
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
shr eax, 4
test al, 1
jne 0x1005f8ad
shr ebx, 4
test bl, 1
jne 0x1005f8ad
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
lea ecx, [ecx + 0xf0]
call fcn.1005e130
test al, al
je 0x1005f8cf
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
call fcn.1005f360
mov dl, byte [esp + 0x78]
mov edi, dword [esp + 0x20]
mov al, dl
not al
and byte [edi], al
jmp 0x1005f8d7
mov dl, byte [esp + 0x78]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
and ecx, 7
cmp ecx, 7
jne 0x1005f8e9
mov dl, 0x80
jmp 0x1005f8eb
shr dl, 1
inc ebx
mov byte [esp + 0x78], dl
cmp ecx, 7
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x10]
lea eax, [edi + 1]
cmovne eax, edi
mov edi, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
cmp ebx, eax
jb 0x1005f6d8
lea esi, [ecx + 0x14]
cmp byte [esp + 0x84], 0
je 0x1005f97f
mov eax, dword [esi]
test eax, eax
je 0x1005f936
cmp dword [ecx + 0x24], 0
jg 0x1005f936
lea eax, [eax + eax*4]
cmp dword [ecx + eax*4 + 0x10], 0
jge 0x1005f975
mov eax, dword [ecx + 0x10]
lea edx, [esp + 0x40]
mov dword [esp + 0x50], eax
xorps xmm0, xmm0
lea eax, [esp + 0x2c]
movlpd qword [esp + 0x44], xmm0
push eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x44], 0x31
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x40], 0
call fcn.1005f360
mov ecx, dword [esp + 0x10]
call fcn.1005f080
jmp 0x1005fc0a
lea ebx, [esp + 0x64]
mov dl, 0x80
xor edi, edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x84], dl
test eax, eax
jne 0x1005fa04
mov ebx, dword [esp + 0x10]
mov edi, esi
call fcn.1005f080
xor esi, esi
cmp dword [edi], esi
jbe 0x1005fc0a
lea ecx, [ebx + 0x1c]
nop
mov eax, dword [ecx]
shr eax, 5
test al, 1
jne 0x1005fbfe
mov edx, dword [ecx + 4]
cmp edx, dword [ebp + 0x14]
jb 0x1005f9d9
mov eax, dword [ebp + 4]
test eax, eax
je 0x1005f9d7
cmp dword [eax], 0
jne 0x1005f9d7
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 0x1005fbf8
mov dword [eax + 0x10], edx
jmp 0x1005fbfb
mov ecx, dword [esp + 0x10]
test byte [ebx], dl
je 0x1005fbb9
mov eax, dword [ecx + 0x10]
xor esi, esi
mov dword [esp + 0x28], eax
mov eax, edi
mov dword [esp + 0x2c], 0
cmp edi, dword [ebp + 0x14]
jb 0x1005fa37
mov eax, dword [ebp + 4]
test eax, eax
je 0x1005fa35
cmp dword [eax], esi
jne 0x1005fa35
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 0x1005fa5a
mov esi, ecx
mov ecx, 1
jmp 0x1005fa72
cmp eax, 0xffec0000
jne 0x1005fa65
xor ecx, ecx
jmp 0x1005fa72
mov esi, ecx
test eax, eax
js 0x1005fa6d
mov esi, ebx
mov ecx, 4
mov ebx, ecx
mov dword [esp + 0x2c], ecx
and ebx, 0xa
je 0x1005fa8a
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xe8]
lea esi, [esi + eax*2]
add esi, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], edi
test ecx, ecx
je 0x1005fac6
cmp byte [edx], 0
je 0x1005fac6
test ebx, ebx
je 0x1005faba
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x2c], ecx
jmp 0x1005facf
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x2c], ecx
jmp 0x1005facf
mov edx, eax
mov ecx, esi
call fcn.10044010
mov dword [esp + 0x38], eax
xor esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], 0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x28], eax
mov eax, edi
cmp edi, dword [ebp + 0x14]
jb 0x1005fb02
mov eax, dword [ebp + 4]
test eax, eax
je 0x1005fb00
cmp dword [eax], esi
jne 0x1005fb00
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 0x1005fb20
xor ecx, ecx
jmp 0x1005fb3b
mov esi, ecx
cmp eax, 0xffec0000
jne 0x1005fb30
mov ecx, 2
jmp 0x1005fb3b
test eax, eax
js 0x1005fb36
mov esi, ebx
mov ecx, 8
mov ebx, ecx
mov dword [esp + 0x40], ecx
and ebx, 0xa
je 0x1005fb53
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xe8]
lea esi, [esi + eax*2]
add esi, dword [esp + 0x80]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], edi
test ecx, ecx
je 0x1005fb8f
cmp byte [edx], 0
je 0x1005fb8f
test ebx, ebx
je 0x1005fb83
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x40], ecx
jmp 0x1005fb98
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x40], ecx
jmp 0x1005fb98
mov edx, eax
mov ecx, esi
call fcn.10044010
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
push eax
call fcn.1005f360
mov dl, byte [esp + 0x84]
mov ebx, dword [esp + 0x78]
mov ecx, edi
and ecx, 7
cmp ecx, 7
jne 0x1005fbc7
mov dl, 0x80
jmp 0x1005fbc9
shr dl, 1
inc edi
mov byte [esp + 0x84], dl
cmp ecx, 7
lea eax, [ebx + 1]
cmovne eax, ebx
mov ebx, eax
mov dword [esp + 0x78], ebx
cmp edi, dword [esp + 0x24]
jb 0x1005fa00
mov ebx, dword [esp + 0x10]
mov ecx, ebx
lea edi, [ebx + 0x14]
jmp 0x1005f99c
mov dword [eax + 0xc], edx
mov byte [eax], 1
inc esi
add ecx, 0x14
cmp esi, dword [edi]
jb 0x1005f9b0
mov eax, dword [esp + 0x10]
mov byte [eax + 0xc], 1
mov eax, dword [esp + 0x7c]
mov byte [eax + 5], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0x10