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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f6b3a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edx, dword [ebx + 0xb4]
lea eax, [ebx + 0x68]
mov ecx, 6
mov esi, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x18], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0xb0]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
lea ecx, [esp + 0xa8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [ebp + 0x28]
push edx
mov edx, dword [ebp + 0x24]
push ecx
mov ecx, dword [ebp + 0x20]
push edx
mov edx, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
fld qword [esp + 0x28]
push edx
mov edx, dword [ebp + 0x14]
fadd qword [esp + 0x50]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
fstp qword [esp + 0x78]
push 0x401921fb
push 0x54442d18
push ecx
push edx
sub esp, 0x18
mov ecx, 6
lea esi, [esp + 0xa0]
mov edi, esp
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
rep movsd dword es:[edi], dword [esi]
sub esp, 0x18
mov ecx, 6
lea esi, [esp + 0xb8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
sub esp, 0x18
mov ecx, 6
mov esi, eax
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x90], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
call fcn.004b1690
mov eax, dword [esp + 0x90]
add esp, 0x80
cmp eax, 2
jl 0x4b1350
mov ecx, eax
and ecx, 0x80000001
jns 0x4b1159
dec ecx
or ecx, 0xfffffffe
inc ecx
test ecx, ecx
jg 0x4b1350
lea edx, [esp + 0xa8]
mov ecx, 6
push edx
push eax
sub esp, 0x18
lea eax, [esp + 0x88]
mov edi, esp
lea esi, [esp + 0x58]
push eax
push 0
rep movsd dword es:[edi], dword [esi]
push 0
call fcn.004b1560
fld qword [esp + 0x9c]
fsub qword [esp + 0x94]
add esp, 0x2c
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xb4]
fmul qword [0x502630]
push edx
mov edx, dword [esp + 0xb4]
sub esp, 8
fstp qword [esp]
push eax
mov eax, dword [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
push eax
push ecx
call fcn.0041c2e0
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
call fcn.0041e750
add esp, 0x40
test eax, eax
jne 0x4b1212
xor ebx, ebx
jmp 0x4b12a6
push 0xc0
call fcn.004a021c
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
mov dword [esp + 0x170], 0
je 0x4b127e
mov eax, dword [0x500730]
mov edx, dword [0x500798]
mov cl, byte [eax]
mov al, byte [edx]
push ecx
mov ecx, dword [0x500794]
push eax
lea eax, [esp + 0xb0]
mov dl, byte [ecx]
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x28]
lea ecx, [eax + eax*2]
lea eax, [esp + 0x50]
lea edx, [esp + ecx*8 + 0xa8]
mov ecx, esi
push edx
push eax
call dword [0x4fff28]
mov dword [esi], 0x504e38
jmp 0x4b1280
xor esi, esi
push esi
push ebx
mov dword [esp + 0x178], 0xffffffff
call dword [0x50046c]
mov ecx, dword [ebp + 0x2c]
push esi
push ecx
call dword [0x500048]
add esp, 0x10
mov ebx, 1
mov edx, dword [esp + 0x10]
dec edx
cmp ebx, edx
jge 0x4b1350
lea eax, [ebx + ebx*2]
lea edi, [esp + eax*8 + 0xa8]
push 0xc0
call fcn.004a021c
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
mov dword [esp + 0x170], 1
je 0x4b1317
mov ecx, dword [0x500730]
mov eax, dword [0x500798]
mov dl, byte [ecx]
mov cl, byte [eax]
push edx
mov edx, dword [0x500794]
push ecx
lea ecx, [edi + 0x18]
mov al, byte [edx]
lea edx, [esp + 0x40]
push eax
push 0
push 0
push ecx
push edi
push edx
mov ecx, esi
call dword [0x4fff28]
mov dword [esi], 0x504e38
jmp 0x4b1319
xor esi, esi
mov eax, dword [ebp + 8]
push esi
push eax
mov dword [esp + 0x178], 0xffffffff
call dword [0x50046c]
mov ecx, dword [ebp + 0x2c]
push esi
push ecx
call dword [0x500048]
mov edx, dword [esp + 0x20]
add esp, 0x10
add ebx, 2
add edi, 0x30
dec edx
cmp ebx, edx
jl 0x4b12bd
mov ecx, dword [esp + 0x168]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret