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

Disassembly:
sub esp, 0x74
mov eax, dword [0x1020a0c0]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp byte [esp + 0x84], 0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x84]
mov ebx, edx
mov edx, dword [esp + 0x88]
push edi
mov edi, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
mov ebp, dword [edi]
mov dword [esp + 0x20], ebp
jne 0x1005a6d1
mov ecx, dword [edi + 4]
cmp byte [ecx + 0xc], 0
jne 0x1005a6d1
mov eax, dword [edx]
xorps xmm0, xmm0
push 1
push dword [esp + 0x94]
mov dword [esp + 0x68], eax
mov edx, ebx
lea eax, [esp + 0x68]
movlpd qword [esp + 0x6c], xmm0
push eax
push esi
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
call fcn.1005a650
mov edx, dword [esp + 0x1c]
cmp byte [edx + 4], 0
jne 0x1005a794
mov eax, dword [esi + 0x14]
mov edx, 1
add eax, dword [ebx + 0x14]
mov ecx, eax
neg ecx
and ecx, 7
shl edx, cl
dec edx
cmp eax, 0x60
jbe 0x1005a70f
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
test eax, eax
je 0x1005a70a
cmp dword [eax], 0
jne 0x1005a70a
mov dword [eax], 0x12
lea esi, [edx + 8]
jmp 0x1005a763
mov edi, dword [esp + 0x1c]
lea ecx, [eax + 7]
mov esi, dword [esp + 0x1c]
add esi, 8
shr ecx, 3
mov dword [edi + 0xc], ecx
mov word [edi + 4], 0x101
mov edi, dword [esp + 0x18]
mov dword [esi], eax
test eax, eax
je 0x1005a75f
xor eax, eax
test ecx, ecx
je 0x1005a751
mov ebp, dword [esp + 0x1c]
nop dword [eax]
mov byte [eax + ebp + 0x10], 0xff
inc eax
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jb 0x1005a740
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
not dl
and byte [eax + ecx + 0xf], dl
mov edx, eax
jmp 0x1005a763
mov edx, dword [esp + 0x1c]
cmp byte [edx + 4], 0
jne 0x1005a797
cmp byte [ebp + 8], 0
je 0x1005ad5e
mov eax, dword [edx]
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.1019d163
add esp, 0x74
ret 0x10
lea esi, [edx + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
movups xmm0, xmmword [edx]
mov eax, dword [edx + 0x18]
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x14]
movups xmmword [esp + 0x60], xmm0
mov dword [esp + 0x30], eax
movq xmm0, qword [edx + 0x10]
lea edx, [esp + 0x70]
movq qword [esp + 0x70], xmm0
mov dword [esp + 0x24], edx
cmp eax, dword [esi]
ja 0x1005ad5e
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp byte [edi + 0xf9], 0
je 0x1005a81f
lea eax, [esp + 0x38]
mov dword [esp + 0x48], 0
xorps xmm0, xmm0
lea edx, [edi + 0x120]
push eax
mov ecx, esi
movups xmmword [esp + 0x3c], xmm0
call fcn.1005a460
lea eax, [edi + 0x10c]
mov ecx, esi
push eax
lea edx, [esp + 0x3c]
call fcn.1005a460
lea edx, [esp + 0x70]
mov edi, dword [esp + 0x30]
mov al, 0x80
xor ebp, ebp
mov byte [esp + 0x17], al
test edi, edi
je 0x1005aa69
test byte [edx], al
je 0x1005aa36
mov eax, dword [esi + 0x10]
xor esi, esi
mov dword [esp + 0x34], eax
mov eax, ebp
mov dword [esp + 0x38], 0
cmp ebp, dword [ebx + 0x14]
jb 0x1005a866
mov eax, dword [ebx + 4]
test eax, eax
je 0x1005a864
cmp dword [eax], esi
jne 0x1005a864
mov dword [eax], 0x82
xor eax, eax
mov edx, dword [ebx + 8]
imul edx, eax
add edx, dword [ebx + 0x1c]
mov ecx, dword [edx + 8]
mov eax, ecx
mov edi, dword [edx + 4]
sub eax, edi
cmp eax, 0xffeb0000
jne 0x1005a889
mov esi, ecx
mov ecx, 1
jmp 0x1005a8a1
cmp eax, 0xffec0000
jne 0x1005a894
xor ecx, ecx
jmp 0x1005a8a1
mov esi, ecx
test eax, eax
js 0x1005a89c
mov esi, edi
mov ecx, 4
mov edi, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], ecx
and edi, 0xa
je 0x1005a8bd
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xe8]
lea esi, [esi + eax*2]
add esi, dword [esp + 0x90]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], ebp
test ecx, ecx
je 0x1005a901
cmp byte [edx], 0
je 0x1005a901
test edi, edi
je 0x1005a8f1
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], ecx
jmp 0x1005a90a
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], ecx
jmp 0x1005a90a
mov edx, eax
mov ecx, esi
call fcn.1003e8a0
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 + 0x34], eax
mov eax, ebp
cmp ebp, dword [ebx + 0x14]
jb 0x1005a93d
mov eax, dword [ebx + 4]
test eax, eax
je 0x1005a93b
cmp dword [eax], ecx
jne 0x1005a93b
mov dword [eax], 0x82
xor eax, eax
mov edx, dword [ebx + 8]
imul edx, eax
add edx, dword [ebx + 0x1c]
mov edi, dword [edx + 8]
mov eax, edi
mov esi, dword [edx + 4]
sub eax, esi
cmp eax, 0xffeb0000
jne 0x1005a95b
xor ebx, ebx
jmp 0x1005a976
mov ecx, esi
cmp eax, 0xffec0000
jne 0x1005a96b
mov ebx, 2
jmp 0x1005a976
mov ebx, 8
test eax, eax
js 0x1005a976
mov ecx, edi
mov edi, dword [esp + 0x20]
mov esi, ebx
mov dword [esp + 0x4c], ebx
and esi, 0xa
je 0x1005a98e
mov eax, dword [edi + 0xe8]
lea ecx, [ecx + eax*2]
add ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], ebp
test ebx, ebx
je 0x1005a9ca
cmp byte [edx], 0
je 0x1005a9ca
test esi, esi
je 0x1005a9be
mov eax, dword [edx + 0x10]
or ebx, 0x10
mov dword [esp + 0x4c], ebx
jmp 0x1005a9d1
mov eax, dword [edx + 0xc]
or ebx, 0x10
mov dword [esp + 0x4c], ebx
jmp 0x1005a9d1
mov edx, eax
call fcn.1003e8a0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2c]
shr eax, 4
test al, 1
jne 0x1005aa00
shr ebx, 4
test bl, 1
jne 0x1005aa00
lea eax, [esp + 0x4c]
push eax
lea ecx, [edi + 0xf0]
lea edx, [esp + 0x3c]
call fcn.10059200
test al, al
je 0x1005aa22
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x3c]
mov ecx, esi
call fcn.1005a460
mov edx, dword [esp + 0x24]
mov ah, byte [esp + 0x17]
not ah
and byte [edx], ah
jmp 0x1005aa2a
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
mov al, byte [esp + 0x17]
mov ebx, dword [esp + 0x28]
mov ecx, ebp
and ecx, 7
cmp ecx, 7
jne 0x1005aa47
mov byte [esp + 0x17], 0x80
jmp 0x1005aa4d
shr al, 1
mov byte [esp + 0x17], al
inc ebp
lea eax, [edx + 1]
cmp ecx, 7
cmovne eax, edx
mov edx, eax
mov al, byte [esp + 0x17]
mov dword [esp + 0x24], edx
cmp ebp, edi
jb 0x1005a833
cmp byte [esp + 0x94], 0
je 0x1005aad3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1005aa8a
cmp dword [esi + 0x24], 0
jg 0x1005aa8a
lea eax, [eax + eax*4]
cmp dword [esi + eax*4 + 0x10], 0
jge 0x1005aac7
mov eax, dword [esi + 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, esi
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], 0x31
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], 0
call fcn.1005a460
mov ecx, esi
call fcn.1005a1e0
jmp 0x1005ad52
xor edi, edi
lea eax, [esp + 0x70]
mov dl, 0x80
mov dword [esp + 0x24], eax
mov byte [esp + 0x17], dl
cmp dword [esp + 0x30], edi
ja 0x1005ab54
mov ebp, dword [esp + 0x28]
mov ecx, esi
call fcn.1005a1e0
xor edi, edi
cmp dword [esi + 0x14], edi
jbe 0x1005ad52
lea edx, [esi + 0x1c]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 5
test al, 1
jne 0x1005ad45
mov esi, dword [edx + 4]
cmp esi, dword [ebp + 0x14]
jb 0x1005ab2f
mov eax, dword [ebp + 4]
test eax, eax
je 0x1005ab2d
cmp dword [eax], 0
jne 0x1005ab2d
mov dword [eax], 0x82
mov ecx, dword [edx]
xor esi, esi
mov eax, dword [ebp + 8]
imul eax, esi
mov esi, dword [edx + 0xc]
add eax, dword [ebp + 0x1c]
test cl, 0xa
je 0x1005ad3b
mov dword [eax + 0x10], esi
jmp 0x1005ad3e
mov ebx, dword [esp + 0x28]
test byte [eax], dl
je 0x1005ad06
mov ebp, dword [esi + 0x10]
mov eax, edi
xor esi, esi
mov dword [esp + 0x4c], 0
cmp edi, dword [ebx + 0x14]
jb 0x1005ab83
mov eax, dword [ebx + 4]
test eax, eax
je 0x1005ab81
cmp dword [eax], esi
jne 0x1005ab81
mov dword [eax], 0x82
xor eax, eax
mov edx, dword [ebx + 8]
imul edx, eax
add edx, dword [ebx + 0x1c]
mov ecx, dword [edx + 8]
mov eax, ecx
mov ebx, dword [edx + 4]
sub eax, ebx
cmp eax, 0xffeb0000
jne 0x1005aba6
mov esi, ecx
mov ecx, 1
jmp 0x1005abbe
cmp eax, 0xffec0000
jne 0x1005abb1
xor ecx, ecx
jmp 0x1005abbe
mov esi, ecx
test eax, eax
js 0x1005abb9
mov esi, ebx
mov ecx, 4
mov ebx, ecx
mov dword [esp + 0x4c], ecx
and ebx, 0xa
je 0x1005abd6
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xe8]
lea esi, [esi + eax*2]
add esi, dword [esp + 0x90]
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x50], edi
test ecx, ecx
je 0x1005ac0e
cmp byte [edx], 0
je 0x1005ac0e
test ebx, ebx
je 0x1005ac02
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x4c], ecx
jmp 0x1005ac17
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x4c], ecx
jmp 0x1005ac17
mov edx, ebp
mov ecx, esi
call fcn.1003e8a0
mov ebp, dword [esp + 0x28]
xor esi, esi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], 0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x34], eax
mov eax, edi
cmp edi, dword [ebp + 0x14]
jb 0x1005ac4e
mov eax, dword [ebp + 4]
test eax, eax
je 0x1005ac4c
cmp dword [eax], esi
jne 0x1005ac4c
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 0x1005ac6c
xor ecx, ecx
jmp 0x1005ac87
mov esi, ecx
cmp eax, 0xffec0000
jne 0x1005ac7c
mov ecx, 2
jmp 0x1005ac87
test eax, eax
js 0x1005ac82
mov esi, ebx
mov ecx, 8
mov ebx, ecx
mov dword [esp + 0x38], ecx
and ebx, 0xa
je 0x1005ac9f
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xe8]
lea esi, [esi + eax*2]
add esi, dword [esp + 0x90]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], edi
test ecx, ecx
je 0x1005acdb
cmp byte [edx], 0
je 0x1005acdb
test ebx, ebx
je 0x1005accf
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x38], ecx
jmp 0x1005ace4
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x38], ecx
jmp 0x1005ace4
mov edx, eax
mov ecx, esi
call fcn.1003e8a0
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x4c]
mov dword [esp + 0x44], eax
mov ecx, esi
lea eax, [esp + 0x38]
push eax
call fcn.1005a460
mov dl, byte [esp + 0x17]
mov eax, dword [esp + 0x24]
jmp 0x1005ad0a
mov ebp, dword [esp + 0x28]
mov ecx, edi
and ecx, 7
cmp ecx, 7
jne 0x1005ad18
mov dl, 0x80
jmp 0x1005ad1a
shr dl, 1
inc eax
mov byte [esp + 0x17], dl
inc edi
cmp ecx, 7
cmovne eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
cmp edi, dword [esp + 0x30]
jb 0x1005ab50
jmp 0x1005aaed
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x18]
mov byte [eax], 1
inc edi
add edx, 0x14
cmp edi, dword [esi + 0x14]
jb 0x1005ab02
mov eax, dword [esp + 0x1c]
mov byte [esi + 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.1019d163
add esp, 0x74
ret 0x10