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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f3ffd
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x54d000]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push esi
push edi
mov eax, dword [0x54d000]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [eax + 0x78]
mov ebx, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x4809f0
cmp eax, 1
je 0x4809f0
test eax, eax
jne 0x480708
mov ecx, dword [0x57d890]
mov eax, dword [ecx]
call dword [eax + 0x2c]
cmp eax, 1
jne 0x480708
push 0xc
lea ecx, [esp + 0x28]
call fcn.004c2ce0
mov dword [esp + 0x1c8], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [0x57d890]
or eax, 2
or eax, 8
mov byte [esp + 0x38], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
mov word [esp + 0x58], 0xff
call fcn.004c2200
push dword [0x57d890]
mov ecx, ebx
call fcn.004c0800
lea ecx, [esp + 0x24]
call fcn.00435840
mov edi, 0x57d870
lea ecx, [ecx]
xorps xmm0, xmm0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
movdqu xmmword [esp + 0xbc], xmm0
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x1c8], 1
lea edx, [esp + 0x1c]
mov ecx, dword [edi]
push edx
mov dword [esp + 0x28], 2
mov byte [esp + 0x3c], 0
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [edi]
lea edx, [esp + 0x14]
push edx
mov esi, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0xec]
mov esi, dword [edi]
mov dword [esp + 0x24], 6
mov eax, dword [eax + 4]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x44], 0x10
mov dword [esp + 0x4c], 0xffffff0f
call fcn.004c2d60
lea eax, [esp + 0xec]
mov byte [esp + 0x1c8], 2
push eax
lea ecx, [esi + 0x54]
call fcn.004c29e0
mov byte [esp + 0x1c8], 1
mov eax, dword [esp + 0x130]
test eax, eax
je 0x4807d9
push eax
call fcn.004d9d65
add esp, 4
push dword [edi]
mov ecx, ebx
call fcn.004c0800
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4807f3
push eax
call fcn.004d9d65
add esp, 4
add edi, 4
cmp edi, 0x57d884
jl 0x480710
xor esi, esi
test esi, esi
jne 0x480821
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x7c]
cmp eax, 2
je 0x480918
cmp eax, 3
je 0x480918
xorps xmm0, xmm0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
movdqu xmmword [esp + 0xbc], xmm0
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x1c8], 3
lea edx, [esp + 0x14]
mov ecx, dword [esi*4 + 0x57d884]
push edx
mov dword [esp + 0x28], 2
mov byte [esp + 0x3c], 0
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [esi*4 + 0x57d884]
lea edx, [esp + 0x1c]
push edx
mov edi, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov dword [esp + 0x4c], edi
lea ecx, [esp + 0xec]
mov edi, dword [esi*4 + 0x57d884]
mov dword [esp + 0x24], 6
mov eax, dword [eax + 4]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x44], 0x10
mov dword [esp + 0x4c], 0xffffff0f
call fcn.004c2d60
lea eax, [esp + 0xec]
mov byte [esp + 0x1c8], 4
push eax
lea ecx, [edi + 0x54]
call fcn.004c29e0
mov byte [esp + 0x1c8], 3
mov eax, dword [esp + 0x130]
test eax, eax
je 0x4808f9
push eax
call fcn.004d9d65
add esp, 4
push dword [esi*4 + 0x57d884]
mov ecx, ebx
call fcn.004c0800
mov eax, dword [esp + 0x68]
test eax, eax
je 0x480918
push eax
call fcn.004d9d65
add esp, 4
inc esi
cmp esi, 3
jl 0x480804
xorps xmm0, xmm0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
movdqu xmmword [esp + 0xbc], xmm0
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x1c8], 5
lea eax, [esp + 0x24]
mov esi, dword [0x57d894]
lea ecx, [esp + 0xec]
push eax
mov dword [esp + 0x28], 2
mov byte [esp + 0x3c], 0
call fcn.004c2d60
lea eax, [esp + 0xec]
mov byte [esp + 0x1c8], 6
push eax
lea ecx, [esi + 0x54]
call fcn.004c29e0
mov byte [esp + 0x1c8], 5
mov eax, dword [esp + 0x130]
test eax, eax
je 0x4809d2
push eax
call fcn.004d9d65
add esp, 4
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
push dword [0x57d894]
mov ecx, ebx
call fcn.004c0800
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4809f0
push eax
call fcn.004d9d65
add esp, 4
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.004d9d6a
mov esp, ebp
pop ebp
ret 4