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

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, edx
xor bl, bl
push edi
mov edx, dword [esi + 0xb0]
mov eax, dword [esi + 0x88]
mov dword [esi + 4], 0
mov dword [esp + 0x14], eax
mov ecx, dword [edx + 0x218]
mov eax, dword [esi + 0x8c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
cmp dword [esi + 0xb4], ecx
je 0x1004a5c8
mov dword [esi + 0xb4], ecx
mov bl, 1
cmp byte [esi + 8], 0
jne 0x1004a604
mov eax, dword [edx + 0x214]
cmp dword [eax + 0xc28], 0
je 0x1004a604
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 edx, dword [esi + 0x58]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0x58]
movzx eax, word [eax + 0xe]
shl eax, 0x10
cmp edx, eax
je 0x1004a625
mov dword [esi + 0x58], eax
mov bl, 1
mov dword [esp + 0x10], eax
mov al, byte [esi + 0xc]
lea edx, [esi + 0x10]
and al, 1
mov ecx, ebp
mov byte [esi + 0xb8], al
mov edi, 0xc
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1004a653
add ecx, 4
add edx, 4
sub edi, 4
jae 0x1004a640
jmp 0x1004a6a7
vmovdqu xmm0, xmmword [ebp]
vmovdqu xmmword [esi + 0x10], xmm0
vmovq xmm0, qword [ebp + 0x10]
vmovq qword [esi + 0x20], xmm0
mov dword [esi + 0x24], 0
mov bl, 1
mov dword [esi + 0x20], 0
vmovdqu xmm0, xmmword [ebp]
vmovdqu xmmword [esi + 0x28], xmm0
vmovq xmm0, qword [ebp + 0x10]
vmovq 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 dl, byte [esi + 0xba]
and eax, 2
cmp dl, al
je 0x1004a6ca
shr ecx, 1
and cl, 1
mov byte [esi + 0xba], cl
mov byte [esp + 0x18], cl
jmp 0x1004a6d6
mov byte [esp + 0x18], dl
test bl, bl
je 0x1004a81e
mov ebx, dword [esi + 0x84]
mov eax, 0x3e8
mov ebp, dword [esp + 0x10]
test ebx, ebx
mov ecx, dword [esp + 0x1c]
cmove ebx, eax
mov eax, 0x40000
cmp ebp, eax
cmovl ebp, eax
mov ecx, dword [ecx + 0x218]
mov eax, 0x3e80000
mov dword [esp + 0x10], ebp
cdq
idiv ebx
mov edi, eax
mov eax, dword [ecx + 0x190]
shl eax, 0x10
mov dword [esi + 0xdc], eax
test eax, eax
jg 0x1004a731
mov edx, edi
mov ecx, 0x4b0000
call fcn.100395a0
mov dword [esi + 0xdc], eax
cmp dword [esp + 0x14], 0
mov edx, ebp
jle 0x1004a770
shl ebx, 0x10
mov ecx, ebx
call fcn.100395a0
mov ecx, dword [esp + 0x14]
lea ebx, [esi + 0xe4]
cmp ecx, eax
mov dword [ebx], 0
cmovle ecx, eax
test ecx, ecx
je 0x1004a78c
cmp edi, 0x28f
jl 0x1004a78c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebx], eax
jmp 0x1004a78c
lea ecx, [esi + 0xbc]
push ecx
push dword [esp + 0x1c]
lea ebx, [esi + 0xe4]
mov ecx, edi
push 0
push ebx
push eax
call fcn.1004a3d0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x218]
mov eax, dword [eax + 0x18c]
shl eax, 0x10
test eax, eax
jle 0x1004a7b2
add eax, eax
mov ecx, 0x4b0000
cmp dword [esi + 0xdc], eax
jg 0x1004a7b7
mov ecx, 0x6e0000
mov edx, edi
call fcn.100395a0
mov edx, dword [esp + 0x10]
lea ebp, [esi + 0xe8]
mov ecx, eax
lea eax, [esi + 0xbc]
push eax
movzx eax, byte [esi + 0xba]
push eax
push dword [esp + 0x28]
mov dword [esi + 0xe0], ecx
push ebp
push ecx
mov ecx, edi
call fcn.1004a3d0
cmp dword [ebx], 0
jne 0x1004a7fb
cmp dword [ebp], 0
jne 0x1004a7fb
xor al, al
jmp 0x1004a7fd
mov al, 1
mov byte [esi + 0xb9], al
lea ecx, [esi + 0xf0]
mov byte [esi + 0xec], 0
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
jmp fcn.10049c30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret