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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
mov byte [esp + 0x13], 0
mov ebx, edx
push edi
mov edx, dword [esi + 0xb0]
mov eax, dword [esi + 0x88]
mov dword [esi + 4], 0
mov dword [esp + 0x28], eax
mov ecx, dword [edx + 0x218]
mov eax, dword [esi + 0x8c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], eax
cmp dword [esi + 0xb4], ecx
je 0x1005a0e4
mov dword [esi + 0xb4], ecx
mov byte [esp + 0x17], 1
cmp byte [esi + 8], 0
jne 0x1005a120
mov eax, dword [edx + 0x214]
cmp dword [eax + 0xc28], 0
je 0x1005a120
mov eax, dword [ecx + 0x230]
mov dword [esi + 0x60], eax
mov byte [esi + 0x5d], 0
mov eax, dword [ecx + 0x224]
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov eax, dword [edx + 4]
mov ecx, dword [esi + 0x58]
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0x58]
movzx eax, word [eax + 0xe]
shl eax, 0x10
cmp ecx, eax
je 0x1005a144
mov dword [esi + 0x58], eax
mov byte [esp + 0x17], 1
mov dword [esp + 0x18], eax
mov al, byte [esi + 0xc]
lea edx, [esi + 0x10]
and al, 1
mov ecx, ebx
mov byte [esi + 0xb8], al
mov edi, 0xc
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005a177
add ecx, 4
add edx, 4
sub edi, 4
jae 0x1005a160
mov dl, byte [esp + 0x17]
jmp 0x1005a1c5
movups xmm0, xmmword [ebx]
mov dl, 1
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [esi + 0x20], xmm0
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
movups xmm0, xmmword [ebx]
movups xmmword [esi + 0x28], xmm0
movq xmm0, qword [ebx + 0x10]
movq qword [esi + 0x38], xmm0
mov dword [esi + 0x4c], 0x10000
mov dword [esi + 0x40], 0x10000
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0xc]
mov eax, ecx
mov bl, byte [esi + 0xba]
and eax, 2
cmp bl, al
je 0x1005a1e8
shr ecx, 1
and cl, 1
mov byte [esi + 0xba], cl
mov byte [esp + 0x2c], cl
jmp 0x1005a1f4
mov byte [esp + 0x2c], bl
test dl, dl
je 0x1005a422
mov ecx, dword [esi + 0x84]
mov eax, 0x3e8
test ecx, ecx
mov edx, 0x40000
cmove ecx, eax
mov eax, dword [esp + 0x18]
cmp eax, edx
mov dword [esp + 0x38], ecx
cmovl eax, edx
mov dword [esp + 0x18], eax
mov eax, 0x3e80000
cdq
idiv ecx
mov ebp, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax + 0x190]
mov eax, ebp
shl ecx, 0x10
cdq
mov dword [esi + 0xdc], ecx
mov ebx, eax
mov edi, edx
test ecx, ecx
jg 0x1005a2a8
mov dword [esp + 0x20], eax
test ebp, ebp
jns 0x1005a25b
neg eax
mov dword [esp + 0x20], eax
adc edx, 0
neg edx
mov ecx, ebp
sar ecx, 0x1f
and ecx, 0xfffffffe
mov dword [esp + 0x30], ecx
test edx, edx
jne 0x1005a27a
test eax, eax
jne 0x1005a27a
mov eax, 0x7fffffff
mov dword [esp + 0x24], edx
jmp 0x1005a296
mov ecx, eax
mov eax, edx
shrd ecx, eax, 1
push edx
push dword [esp + 0x24]
shr eax, 1
add ecx, 0
adc eax, 0x4b
push eax
push ecx
call fcn.101a0b70
mov ecx, eax
neg ecx
cmp dword [esp + 0x30], 0xffffffff
cmovge ecx, eax
mov dword [esi + 0xdc], ecx
cmp dword [esp + 0x28], 0
mov edx, dword [esp + 0x18]
jle 0x1005a2ed
mov ecx, dword [esp + 0x38]
shl ecx, 0x10
call fcn.10047ae0
mov ecx, dword [esp + 0x28]
cmp ecx, eax
mov dword [esi + 0xe4], 0
cmovle ecx, eax
test ecx, ecx
je 0x1005a309
cmp ebp, 0x28f
jl 0x1005a309
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xe4], eax
jmp 0x1005a309
lea eax, [esi + 0xbc]
push eax
push dword [esp + 0x30]
lea eax, [esi + 0xe4]
push 0
push eax
push ecx
mov ecx, ebp
call fcn.10059e60
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x218]
mov eax, dword [eax + 0x18c]
shl eax, 0x10
test eax, eax
jle 0x1005a375
add eax, eax
cmp dword [esi + 0xdc], eax
jle 0x1005a375
test ebp, ebp
jns 0x1005a335
neg ebx
adc edi, 0
neg edi
mov eax, ebp
sar eax, 0x1f
and eax, 0xfffffffe
mov dword [esp + 0x38], eax
test edi, edi
jne 0x1005a354
test ebx, ebx
jne 0x1005a354
mov edi, 0x7fffffff
mov dword [esp + 0x34], ebx
jmp 0x1005a3be
mov ecx, ebx
mov eax, edi
shrd ecx, eax, 1
push edi
shr eax, 1
add ecx, 0
push ebx
adc eax, 0x4b
push eax
push ecx
call fcn.101a0b70
mov edi, eax
mov eax, dword [esp + 0x38]
jmp 0x1005a3be
test ebp, ebp
jns 0x1005a380
neg ebx
adc edi, 0
neg edi
mov eax, ebp
sar eax, 0x1f
and eax, 0xfffffffe
mov dword [esp + 0x38], eax
test edi, edi
jne 0x1005a39f
test ebx, ebx
jne 0x1005a39f
mov edi, 0x7fffffff
mov dword [esp + 0x34], ebx
jmp 0x1005a3be
mov ecx, ebx
mov eax, edi
shrd ecx, eax, 1
push edi
shr eax, 1
add ecx, 0
push ebx
adc eax, 0x6e
push eax
push ecx
call fcn.101a0b70
mov edi, eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov ecx, edi
neg ecx
cmp eax, 0xffffffff
lea eax, [esi + 0xbc]
cmovge ecx, edi
lea edi, [esi + 0xe8]
push eax
mov dword [esi + 0xe0], ecx
movzx eax, byte [esi + 0xba]
push eax
push dword [esp + 0x44]
push edi
push ecx
mov ecx, ebp
call fcn.10059e60
cmp dword [esi + 0xe4], 0
jne 0x1005a406
cmp dword [edi], 0
jne 0x1005a406
xor al, al
jmp 0x1005a408
mov al, 1
mov byte [esi + 0xb9], al
lea ecx, [esi + 0xf0]
mov edx, esi
mov byte [esi + 0xec], 0
call fcn.100596c0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret