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

Disassembly:
sub esp, 0xab4
push ebx
mov ebx, dword [esp + 0xac4]
push ebp
mov ebp, dword [esp + 0xac0]
push esi
mov esi, dword [0xf91610]
push edi
mov edi, eax
inc ebx
lea eax, [ebp + 0x54]
push edi
mov dword [esp + 0x34], ebx
call fcn.004e76f0
cmp esi, eax
je 0x4e6d47
mov ecx, eax
mov edx, 1
shl edx, cl
test dword [0xeb0b60], edx
je 0x4e6d3a
mov dword [0xf91610], eax
jmp 0x4e6d47
push str.RenderRegionManager::SetActiveRenderRegion___attempt_to_activate_region_that_is_not_in_use_n
call fcn.004fefa0
add esp, 4
fld dword [ebp + 4]
mov eax, dword [ebp + 0xc]
fstp dword [esp + 0x84]
fld dword [ebp + 8]
mov edx, dword [esp + 0x84]
fadd dword [ebp + 0x40]
mov dword [esp + 0x8c], eax
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x9c]
fstp dword [esp + 0x98]
mov eax, dword [esp + 0x98]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov dword [esp + 0xa0], 0
mov eax, dword [esp + 0xa0]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0xadc]
lea eax, [esp + 0x7c]
call fcn.00460320
fld dword [eax + 4]
fild dword [esp + 0xad0]
mov ecx, dword [ebp + 0xc]
fld dword [ebp + 0x3c]
lea eax, [ebp + 0x24]
mov dword [esp + 0x3c], ecx
fdiv st(1)
mov edx, eax
mov ecx, dword [edx]
mov dword [esp + 0x54], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x58], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [esp + 0x28], 0x45800000
mov dword [ecx + 0xc], eax
fstp dword [esp + 0x78]
fild dword [esp + 0xae4]
fld dword [0x5befc8]
fdiv st(1)
fmul dword [ebp + 0x40]
fstp dword [esp + 0x74]
fld dword [0x5bf198]
fdiv st(2)
fstp dword [esp + 0x90]
fld dword [0x5bf2b4]
fdiv st(1)
fstp dword [esp + 0x8c]
fstp st(0)
fstp st(0)
fstp dword [esp + 0x2c]
fld dword [ebp + 0x30]
fmul dword [0x5bf070]
fstp dword [esp + 0x44]
call fcn.00494280
mov esi, eax
mov eax, dword [ebp + 0x4c]
add esp, 0x10
test ah, 0x40
mov dword [esp + 0x14], esi
je 0x4e71bb
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 0x5828]
xor eax, eax
test edx, edx
jle 0x4e6ea4
mov esi, dword [ebp + 0x60]
lea ecx, [edi + 0x16b4]
cmp dword [ecx], esi
je 0x4e6ea0
inc eax
add ecx, 0x404
cmp eax, edx
jl 0x4e6e87
mov dword [esp + 0x38], 0
jmp 0x4e6ebf
test eax, eax
jge 0x4e6eae
mov dword [esp + 0x38], 0
jmp 0x4e6ebf
imul eax, eax, 0x404
lea edx, [eax + edi + 0x12b4]
mov dword [esp + 0x38], edx
mov eax, dword [0xf91614]
mov edx, dword [eax + 8]
lea ecx, [edx + 0x20]
mov dword [eax + 8], ecx
xor eax, eax
push eax
push eax
push eax
push edx
mov edi, edx
mov dword [esp + 0x7c], edx
lea edx, [esp + 0x88]
push edx
mov ecx, 8
push 1
mov edx, 0x54
rep stosd dword es:[edi], eax
call fcn.00515c30
mov eax, dword [esp + 0x84]
mov byte [eax + 0x15], 4
mov eax, dword [esp + 0xaec]
add esp, 0x18
test eax, eax
mov byte [esp + 0x70], 1
jle 0x4e73b8
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x38]
mov edi, ecx
imul edi, eax
add edi, esi
lea esi, [eax - 1]
imul esi, ecx
neg ebx
add esi, edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], eax
jmp 0x4e6f50
mov ecx, dword [esp + 0x30]
lea esp, [esp]
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
fadd dword [esp + 0x64]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x10], eax
fstp dword [esp + 0x1c]
mov dword [esp + 0x48], edx
fld dword [esp + 0x18]
mov dword [esp + 0x44], eax
fld dword [esp + 0x18]
mov dword [esp + 0x50], eax
fadd dword [esp + 0x7c]
mov dword [esp + 0x40], eax
fstp dword [esp + 0x18]
jle 0x4e7180
call fcn.00581d24
fld dword [esp + 0x18]
mov word [esp + 0x22], ax
call fcn.00581d24
mov word [esp + 0x20], ax
lea ebp, [esp + 0xdc]
lea esi, [esp + 0xc4]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4e6fc5
mov eax, dword [esp + 0x40]
mov al, byte [edi + eax]
jmp 0x4e6fc7
or al, 0xff
movzx ecx, al
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x58]
sub esp, 0x10
fild dword [esp + 0x24]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x6c]
fmul dword [esp + 0x44]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
fstp dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov dword [edx + 0xc], ecx
call fcn.00494280
mov edx, dword [esp + 0x54]
fld dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
mov edi, eax
mov eax, dword [esp + 0x58]
add esp, 0x10
mov dword [esp + 0x14], edi
mov dword [esi], edx
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
call fcn.00581d24
mov dx, word [esp + 0x22]
mov bx, ax
mov eax, edi
shr eax, 0x17
and eax, 0x1fe
cmp eax, 0xff
mov word [esi + 0x10], bx
mov word [esi + 0x12], dx
jbe 0x4e704b
mov eax, 0xff
movzx edx, byte [esp + 0x16]
shl eax, 8
mov ecx, edi
and ecx, 0xff
or eax, ecx
shl eax, 0x10
or eax, edx
and edi, 0xff00
or eax, edi
mov edi, dword [esp + 0x10]
mov dword [ebp], eax
mov eax, dword [esp + 0x38]
inc edi
add esi, 0x28
add ebp, 0x28
test eax, eax
mov dword [esp + 0x10], edi
je 0x4e7091
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov al, byte [eax + ecx]
jmp 0x4e7093
or al, 0xff
mov ecx, dword [esp + 0x54]
movzx edx, al
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x58]
sub esp, 0x10
fild dword [esp + 0x24]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
fmul dword [esp + 0x44]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
fstp dword [esp + 0x70]
mov edx, dword [esp + 0x70]
mov dword [eax + 0xc], edx
call fcn.00494280
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x2c]
mov dword [esi], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esi + 8], ecx
mov ecx, eax
shr ecx, 0x17
mov dword [esi + 4], edx
mov dx, word [esp + 0x30]
and ecx, 0x1fe
add esp, 0x10
cmp ecx, 0xff
mov dword [esp + 0x14], eax
mov word [esi + 0x10], bx
mov word [esi + 0x12], dx
jbe 0x4e710b
mov ecx, 0xff
fld dword [esp + 0x44]
mov edi, dword [esp + 0x28]
fadd dword [esp + 0x68]
shl ecx, 8
mov edx, eax
and edx, 0xff
or ecx, edx
fstp dword [esp + 0x44]
mov edx, dword [esp + 0x14]
fld dword [esp + 0x50]
fadd dword [esp + 0x80]
shr edx, 0x10
shl ecx, 0x10
and eax, 0xff00
movzx edx, dl
fstp dword [esp + 0x50]
or ecx, edx
or ecx, eax
inc dword [esp + 0x10]
mov eax, dword [esp + 0x40]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x30]
add esi, 0x28
add ebp, 0x28
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jl 0x4e6fb4
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0xac8]
mov esi, dword [esp + 0x24]
jmp 0x4e7182
fstp st(0)
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0xc8]
push eax
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.0050b880
mov eax, dword [esp + 0x2c]
add edi, ebx
add esi, ebx
dec eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], eax
jne 0x4e6f45
jmp 0x4e73b8
mov eax, dword [0xf91614]
mov edx, dword [eax + 8]
lea ecx, [edx + 0x20]
mov dword [eax + 8], ecx
xor eax, eax
push eax
push eax
push eax
push edx
mov edi, edx
mov dword [esp + 0x7c], edx
lea edx, [esp + 0x88]
push edx
mov ecx, 8
push 1
mov edx, 0x54
rep stosd dword es:[edi], eax
call fcn.00515c30
mov eax, dword [esp + 0x84]
mov byte [eax + 0x15], 4
mov eax, dword [esp + 0xaec]
add esp, 0x18
test eax, eax
mov byte [esp + 0x70], 1
jle 0x4e73b8
mov dword [esp + 0x24], eax
test ebx, ebx
fld dword [esp + 0x1c]
fadd dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], 0
fstp dword [esp + 0x1c]
mov dword [esp + 0x48], ecx
fld dword [esp + 0x18]
mov dword [esp + 0x4c], edx
fadd dword [esp + 0x7c]
fstp dword [esp + 0x18]
fld dword [0x5bef98]
fld dword [0x5bef98]
jle 0x4e7391
fld dword [esp + 0x4c]
call fcn.00581d24
fld dword [esp + 0x18]
mov word [esp + 0x22], ax
call fcn.00581d24
mov word [esp + 0x20], ax
mov ebp, esi
mov ebx, esi
mov eax, esi
shr ebp, 0x17
and eax, 0xff
shr ebx, 0x10
and ebp, 0x1fe
and ebx, 0xff
and esi, 0xff00
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], esi
lea edi, [esp + 0xdc]
lea esi, [esp + 0xc4]
mov dword [esp + 0x34], eax
jmp 0x4e72c0
mov ecx, dword [esp + 0x48]
fld st(1)
mov edx, dword [esp + 0x3c]
fstp dword [esi]
mov dword [esi + 4], ecx
fld st(0)
mov dword [esi + 8], edx
call fcn.00581d24
mov cx, word [esp + 0x22]
mov word [esi + 0x12], cx
mov ecx, ebp
cmp ecx, 0xff
mov word [esi + 0x10], ax
jbe 0x4e72f5
mov ecx, 0xff
mov edx, dword [esp + 0x2c]
fld st(1)
shl ecx, 8
or ecx, edx
mov edx, dword [esp + 0x28]
shl ecx, 0x10
or ecx, edx
or ecx, ebx
mov dword [edi], ecx
fstp dword [esi + 0x28]
mov ecx, dword [esp + 0x10]
inc ecx
add esi, 0x28
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 8], ecx
mov word [esi + 0x10], ax
mov ax, word [esp + 0x20]
mov word [esi + 0x12], ax
mov eax, ebp
add edi, 0x28
cmp eax, 0xff
jbe 0x4e7348
mov eax, 0xff
mov ecx, dword [esp + 0x2c]
fxch st(1)
fadd dword [esp + 0x68]
shl eax, 8
or eax, ecx
fxch st(1)
fadd dword [esp + 0x80]
shl eax, 0x10
or eax, edx
or eax, ebx
mov dword [edi], eax
inc dword [esp + 0x10]
mov eax, dword [esp + 0x34]
add esi, 0x28
add edi, 0x28
dec eax
mov dword [esp + 0x34], eax
jne 0x4e72c0
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0xac8]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
fstp st(0)
push 0
fstp st(0)
lea ecx, [esp + 0xc8]
push ecx
push edx
lea eax, [esp + 0x78]
push eax
call fcn.0050b880
dec dword [esp + 0x24]
jne 0x4e7216
call fcn.00515d10
mov ecx, dword [esp + 0x6c]
mov dx, word [ebp + 0x38]
mov eax, 0x1fc30
call fcn.0050cfd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xab4
ret 0x10