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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x364
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [0xf91610]
add eax, 0x2c
push esi
call fcn.004e76f0
mov ebx, eax
cmp edi, ebx
je 0x4e53e0
mov ecx, ebx
mov eax, 1
shl eax, cl
test dword [0xeb0b60], eax
je 0x4e53d3
mov dword [0xf91610], ebx
jmp 0x4e53e0
push str.RenderRegionManager::SetActiveRenderRegion___attempt_to_activate_region_that_is_not_in_use_n
call fcn.004fefa0
add esp, 4
mov edx, dword [esi + 0x3880]
xor eax, eax
test edx, edx
jle 0x4e5401
lea ecx, [esi + 0x3390]
cmp dword [ecx], ebx
je 0x4e542a
inc eax
add ecx, 0xa0
cmp eax, edx
jl 0x4e53f2
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x108]
mov eax, dword [ebp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push 0xfd7080
call fcn.00496640
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [eax + eax*4]
shl ecx, 5
lea edi, [ecx + esi + 0x3380]
test edi, edi
je 0x4e5401
test byte [edi], 6
je 0x4e5401
push esi
lea eax, [edi + 0x20]
lea esi, [esp + 0x24]
call fcn.004e7fe0
fld dword [eax + 4]
mov edx, dword [eax]
fstp dword [esp + 0x14]
fld dword [eax + 8]
xor ecx, ecx
mov cx, word [edi + 8]
fstp dword [esp + 0x18]
fld dword [eax + 0xc]
xor eax, eax
mov ax, word [edi + 0xa]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 8]
fstp dword [esp + 0x1c]
push eax
push ecx
push edx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x7c]
call fcn.004e7e80
mov ecx, eax
lea eax, [esp + 0x30]
call fcn.00407fe0
mov edi, dword [0xf9b300]
mov eax, ebx
shl eax, 6
add eax, edi
lea ecx, [esp + 0x30]
call fcn.00407fe0
mov eax, dword [0x668bf4]
mov ecx, eax
mov edx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x30]
lea eax, [esp + 0x160]
mov dword [ebx*4 + 0xeb0b48], 1
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0x3f800000
call fcn.00407fe0
fld dword [esp + 0x10]
fchs
fstp dword [esp + 0x20]
mov edx, dword [esp + 0x20]
fld dword [esp + 0x14]
fchs
fstp dword [esp + 0x24]
fld dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
fchs
fstp dword [esp + 0x28]
mov eax, dword [esp + 0x28]
push eax
push ecx
push edx
lea eax, [esp + 0x12c]
push eax
call fcn.00571c03
lea ecx, [esp + 0xe0]
push ecx
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x168]
push eax
call fcn.00401680
add esp, 0xc
lea eax, [esp + 0x1a0]
call fcn.0049e340
mov edi, dword [ebp + 0x14]
add edi, 0x140
lea esi, [esp + 0x1a0]
call fcn.004ac5c0
fld dword [0x5bf360]
fdiv dword [esp + 0x344]
lea ecx, [esp + 0xe0]
lea eax, [esp + 0x30]
mov dword [esp + 0x1a0], 0x447a0000
mov dword [esp + 0x354], 0
mov dword [esp + 0x2e8], 0
mov dword [esp + 0x2ec], 0
mov dword [esp + 0x2f0], 0
mov dword [esp + 0x2f4], 0
fstp dword [esp + 0x350]
call fcn.00407fe0
mov esi, dword [ebp + 0x10]
mov ecx, 0x1c
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x70]
fmul dword [0x668bf4]
fstp dword [esp + 0x70]
fld dword [esp + 0x74]
fmul dword [0x668bf4]
fstp dword [esp + 0x74]
fld dword [esp + 0x78]
fmul dword [0x668bf4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x28]
push 0x1fc20
fstp dword [esp + 0x7c]
lea eax, [esp + 0x74]
fld dword [esp + 0x84]
push eax
fmul dword [0x668bf4]
lea ecx, [esp + 0x1a8]
push ecx
lea eax, [esp + 0xec]
fstp dword [esp + 0x8c]
push eax
fld dword [esp + 0x94]
mov eax, dword [edx + 0x108]
fmul dword [0x668bf4]
lea ecx, [esp + 0x40]
push ecx
mov ecx, 0xfd7080
fstp dword [esp + 0x98]
fld dword [esp + 0x9c]
fmul dword [0x668bf4]
fstp dword [esp + 0x9c]
fld dword [esp + 0xa4]
fmul dword [0x668bf4]
fstp dword [esp + 0xa4]
fld dword [esp + 0xa8]
fmul dword [0x668bf4]
fstp dword [esp + 0xa8]
fld dword [esp + 0xac]
fmul dword [0x668bf4]
fstp dword [esp + 0xac]
call fcn.00496d20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10