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

Disassembly:
sub esp, 0x74
mov eax, dword [0x1020c0c0]
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 0x1005b191
mov ecx, dword [edi + 4]
cmp byte [ecx + 0xc], 0
jne 0x1005b191
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.1005b110
mov edx, dword [esp + 0x1c]
cmp byte [edx + 4], 0
jne 0x1005b254
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 0x1005b1cf
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
test eax, eax
je 0x1005b1ca
cmp dword [eax], 0
jne 0x1005b1ca
mov dword [eax], 0x12
lea esi, [edx + 8]
jmp 0x1005b223
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 0x1005b21f
xor eax, eax
test ecx, ecx
je 0x1005b211
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 0x1005b200
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
not dl
and byte [eax + ecx + 0xf], dl
mov edx, eax
jmp 0x1005b223
mov edx, dword [esp + 0x1c]
cmp byte [edx + 4], 0
jne 0x1005b257
cmp byte [ebp + 8], 0
je 0x1005b81e
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.101a0143
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 0x1005b81e
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp byte [edi + 0xf9], 0
je 0x1005b2df
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.1005af20
lea eax, [edi + 0x10c]
mov ecx, esi
push eax
lea edx, [esp + 0x3c]
call fcn.1005af20
lea edx, [esp + 0x70]
mov edi, dword [esp + 0x30]
mov al, 0x80
xor ebp, ebp
mov byte [esp + 0x17], al
test edi, edi
je 0x1005b529
test byte [edx], al
je 0x1005b4f6
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 0x1005b326
mov eax, dword [ebx + 4]
test eax, eax
je 0x1005b324
cmp dword [eax], esi
jne 0x1005b324
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 0x1005b349
mov esi, ecx
mov ecx, 1
jmp 0x1005b361
cmp eax, 0xffec0000
jne 0x1005b354
xor ecx, ecx
jmp 0x1005b361
mov esi, ecx
test eax, eax
js 0x1005b35c
mov esi, edi
mov ecx, 4
mov edi, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], ecx
and edi, 0xa
je 0x1005b37d
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 0x1005b3c1
cmp byte [edx], 0
je 0x1005b3c1
test edi, edi
je 0x1005b3b1
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], ecx
jmp 0x1005b3ca
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], ecx
jmp 0x1005b3ca
mov edx, eax
mov ecx, esi
call fcn.1003f360
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 0x1005b3fd
mov eax, dword [ebx + 4]
test eax, eax
je 0x1005b3fb
cmp dword [eax], ecx
jne 0x1005b3fb
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 0x1005b41b
xor ebx, ebx
jmp 0x1005b436
mov ecx, esi
cmp eax, 0xffec0000
jne 0x1005b42b
mov ebx, 2
jmp 0x1005b436
mov ebx, 8
test eax, eax
js 0x1005b436
mov ecx, edi
mov edi, dword [esp + 0x20]
mov esi, ebx
mov dword [esp + 0x4c], ebx
and esi, 0xa
je 0x1005b44e
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 0x1005b48a
cmp byte [edx], 0
je 0x1005b48a
test esi, esi
je 0x1005b47e
mov eax, dword [edx + 0x10]
or ebx, 0x10
mov dword [esp + 0x4c], ebx
jmp 0x1005b491
mov eax, dword [edx + 0xc]
or ebx, 0x10
mov dword [esp + 0x4c], ebx
jmp 0x1005b491
mov edx, eax
call fcn.1003f360
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2c]
shr eax, 4
test al, 1
jne 0x1005b4c0
shr ebx, 4
test bl, 1
jne 0x1005b4c0
lea eax, [esp + 0x4c]
push eax
lea ecx, [edi + 0xf0]
lea edx, [esp + 0x3c]
call fcn.10059cc0
test al, al
je 0x1005b4e2
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x3c]
mov ecx, esi
call fcn.1005af20
mov edx, dword [esp + 0x24]
mov ah, byte [esp + 0x17]
not ah
and byte [edx], ah
jmp 0x1005b4ea
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 0x1005b507
mov byte [esp + 0x17], 0x80
jmp 0x1005b50d
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 0x1005b2f3
cmp byte [esp + 0x94], 0
je 0x1005b593
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1005b54a
cmp dword [esi + 0x24], 0
jg 0x1005b54a
lea eax, [eax + eax*4]
cmp dword [esi + eax*4 + 0x10], 0
jge 0x1005b587
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.1005af20
mov ecx, esi
call fcn.1005aca0
jmp 0x1005b812
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 0x1005b614
mov ebp, dword [esp + 0x28]
mov ecx, esi
call fcn.1005aca0
xor edi, edi
cmp dword [esi + 0x14], edi
jbe 0x1005b812
lea edx, [esi + 0x1c]
mov ecx, dword [edx]
mov eax, ecx
shr eax, 5
test al, 1
jne 0x1005b805
mov esi, dword [edx + 4]
cmp esi, dword [ebp + 0x14]
jb 0x1005b5ef
mov eax, dword [ebp + 4]
test eax, eax
je 0x1005b5ed
cmp dword [eax], 0
jne 0x1005b5ed
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 0x1005b7fb
mov dword [eax + 0x10], esi
jmp 0x1005b7fe
mov ebx, dword [esp + 0x28]
test byte [eax], dl
je 0x1005b7c6
mov ebp, dword [esi + 0x10]
mov eax, edi
xor esi, esi
mov dword [esp + 0x4c], 0
cmp edi, dword [ebx + 0x14]
jb 0x1005b643
mov eax, dword [ebx + 4]
test eax, eax
je 0x1005b641
cmp dword [eax], esi
jne 0x1005b641
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 0x1005b666
mov esi, ecx
mov ecx, 1
jmp 0x1005b67e
cmp eax, 0xffec0000
jne 0x1005b671
xor ecx, ecx
jmp 0x1005b67e
mov esi, ecx
test eax, eax
js 0x1005b679
mov esi, ebx
mov ecx, 4
mov ebx, ecx
mov dword [esp + 0x4c], ecx
and ebx, 0xa
je 0x1005b696
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 0x1005b6ce
cmp byte [edx], 0
je 0x1005b6ce
test ebx, ebx
je 0x1005b6c2
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x4c], ecx
jmp 0x1005b6d7
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x4c], ecx
jmp 0x1005b6d7
mov edx, ebp
mov ecx, esi
call fcn.1003f360
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 0x1005b70e
mov eax, dword [ebp + 4]
test eax, eax
je 0x1005b70c
cmp dword [eax], esi
jne 0x1005b70c
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 0x1005b72c
xor ecx, ecx
jmp 0x1005b747
mov esi, ecx
cmp eax, 0xffec0000
jne 0x1005b73c
mov ecx, 2
jmp 0x1005b747
test eax, eax
js 0x1005b742
mov esi, ebx
mov ecx, 8
mov ebx, ecx
mov dword [esp + 0x38], ecx
and ebx, 0xa
je 0x1005b75f
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 0x1005b79b
cmp byte [edx], 0
je 0x1005b79b
test ebx, ebx
je 0x1005b78f
mov eax, dword [edx + 0x10]
or ecx, 0x10
mov dword [esp + 0x38], ecx
jmp 0x1005b7a4
mov eax, dword [edx + 0xc]
or ecx, 0x10
mov dword [esp + 0x38], ecx
jmp 0x1005b7a4
mov edx, eax
mov ecx, esi
call fcn.1003f360
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.1005af20
mov dl, byte [esp + 0x17]
mov eax, dword [esp + 0x24]
jmp 0x1005b7ca
mov ebp, dword [esp + 0x28]
mov ecx, edi
and ecx, 7
cmp ecx, 7
jne 0x1005b7d8
mov dl, 0x80
jmp 0x1005b7da
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 0x1005b610
jmp 0x1005b5ad
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 0x1005b5c2
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.101a0143
add esp, 0x74
ret 0x10