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

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1d0
push ebx
push ebp
push esi
mov esi, dword [0xf91610]
push edi
add eax, 0x54
push ecx
call fcn.004e76f0
cmp esi, eax
je 0x4e62ba
mov ecx, eax
mov edx, 1
shl edx, cl
test dword [0xeb0b60], edx
je 0x4e62ad
mov dword [0xf91610], eax
jmp 0x4e62ba
push str.RenderRegionManager::SetActiveRenderRegion___attempt_to_activate_region_that_is_not_in_use_n
call fcn.004fefa0
add esp, 4
mov esi, dword [esp + 0x1e8]
fld dword [esi + 8]
mov ecx, dword [esi + 0xc]
fadd dword [esi + 0x40]
mov eax, dword [esi + 4]
mov edx, ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 8]
fst dword [esp + 0x44]
fld dword [esi + 0x3c]
mov dword [esp + 0x40], eax
fadd dword [esi + 4]
mov dword [esp + 0x60], eax
mov eax, ecx
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x4c]
fst dword [esp + 0x50]
test eax, 0x800000
fxch st(1)
fstp dword [esp + 0x54]
mov dword [esp + 0x64], ecx
mov ecx, edx
fstp dword [esp + 0x70]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], 0
je 0x4e6481
fld dword [esi + 0x14]
mov dword [esp + 0x4c], 0
fmul dword [esi + 0x40]
mov dword [esp + 0x5c], 0
fmul dword [0x5bf2b8]
fld dword [esi + 0x18]
fmul dword [esi + 0x40]
fmul dword [0x5befcc]
fstp dword [esp + 0x34]
fld dword [esi + 0x18]
fmul dword [esi + 0x3c]
fmul dword [0x5bf2b8]
fld dword [esi + 0x3c]
fmul dword [esi + 0x14]
fmul dword [0x5bf078]
fld dword [esi + 4]
fsub st(2)
fld dword [esi + 8]
fsub st(2)
fstp dword [esp + 0x20]
fld dword [esi + 0xc]
fstp dword [esp + 0x24]
fsub st(3)
fld dword [esp + 0x20]
fsub dword [esp + 0x34]
fld dword [esp + 0x24]
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fxch st(1)
fstp dword [esp + 0x40]
mov dword [esp + 0x48], edx
fstp dword [esp + 0x44]
fld st(1)
fadd dword [esi + 4]
fld dword [esi + 8]
fadd st(2)
fstp dword [esp + 0x20]
fld dword [esi + 0xc]
fstp dword [esp + 0x24]
fsub st(3)
fld dword [esp + 0x20]
fsub dword [esp + 0x34]
fld dword [esp + 0x24]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
fxch st(1)
fstp dword [esp + 0x50]
mov dword [esp + 0x58], eax
fstp dword [esp + 0x54]
fld dword [esi + 4]
fsub st(2)
fld dword [esi + 8]
fsub st(2)
fstp dword [esp + 0x20]
fld dword [esi + 0xc]
fstp dword [esp + 0x24]
fadd st(3)
fld dword [esp + 0x20]
fadd dword [esp + 0x34]
fld dword [esp + 0x24]
fstp dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
fxch st(1)
fstp dword [esp + 0x60]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], 0
fstp dword [esp + 0x64]
mov dword [esp + 0x7c], 0
fxch st(1)
fadd dword [esi + 4]
fstp dword [esp + 0x1c]
fld dword [esi + 8]
fadd st(1)
fstp dword [esp + 0x20]
fstp st(0)
fld dword [esi + 0xc]
fstp dword [esp + 0x24]
fadd dword [esp + 0x1c]
fld dword [esp + 0x20]
fadd dword [esp + 0x34]
fld dword [esp + 0x24]
fstp dword [esp + 0x38]
mov edx, dword [esp + 0x38]
fxch st(1)
fstp dword [esp + 0x70]
mov dword [esp + 0x78], edx
fstp dword [esp + 0x74]
jmp 0x4e651e
fld dword [esi + 0x1c]
fcomp dword [0x5bef98]
fnstsw ax
test ah, 0x44
jnp 0x4e651e
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x14], eax
fld dword [esp + 0x14]
fcos
fstp dword [esp + 0x2c]
mov ecx, dword [esp + 0x1e8]
fld dword [ecx + 0x1c]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fsin
fstp dword [esp + 0x14]
mov esi, dword [esp + 0x1e8]
fld dword [esi + 4]
lea eax, [esp + 0x44]
fadd dword [esi + 0x44]
fld dword [esi + 8]
mov ecx, 4
fadd dword [esi + 0x48]
lea ebx, [ebx]
fld dword [eax - 4]
add eax, 0x10
dec ecx
fsub st(2)
fld dword [eax - 0x10]
fsub st(2)
fld dword [esp + 0x2c]
fmul st(2)
fld dword [esp + 0x14]
fmul st(2)
fsubp st(1)
fadd st(4)
fstp dword [eax - 0x14]
fld dword [esp + 0x14]
fmul st(2)
fld dword [esp + 0x2c]
fmul st(2)
faddp st(1)
fadd st(3)
fstp dword [eax - 0x10]
fstp st(0)
fstp st(0)
jne 0x4e64e0
fstp st(0)
fstp st(0)
lea eax, [esp + 0xc8]
mov ecx, 4
lea ebx, [ebx]
mov edx, dword [esi + 0x24]
mov dword [eax - 8], edx
mov edx, dword [esi + 0x28]
mov dword [eax - 4], edx
mov edx, dword [esi + 0x2c]
mov dword [eax], edx
mov edx, dword [esi + 0x30]
mov dword [eax + 4], edx
add eax, 0x10
dec ecx
jne 0x4e6530
mov eax, dword [esi + 0x4c]
test ah, 0x40
je 0x4e662d
mov edi, dword [esp + 0x1e4]
mov eax, dword [edi + 8]
mov edx, dword [eax + 0x5828]
xor eax, eax
test edx, edx
jle 0x4e658d
mov ebx, dword [esi + 0x60]
lea ecx, [edi + 0x16b4]
cmp dword [ecx], ebx
je 0x4e6589
inc eax
add ecx, 0x404
cmp eax, edx
jl 0x4e6578
jmp 0x4e658d
test eax, eax
jge 0x4e65bf
lea eax, [esp + 0xc8]
mov ecx, 4
lea esp, [esp]
mov edx, dword [esi + 0x24]
mov dword [eax - 8], edx
mov edx, dword [esi + 0x28]
mov dword [eax - 4], edx
mov edx, dword [esi + 0x2c]
mov dword [eax], edx
mov edx, dword [esi + 0x30]
mov dword [eax + 4], edx
add eax, 0x10
dec ecx
jne 0x4e65a0
jmp 0x4e662d
imul eax, eax, 0x404
lea edi, [eax + edi + 0x12b4]
xor ebp, ebp
mov edi, edi
fld dword [esp + ebp + 0x44]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
fmul dword [0x5beff8]
sub esp, 8
mov dword [esp + ebp + 0xc8], eax
mov eax, dword [esi + 0x30]
fstp dword [esp + 4]
fld dword [esp + ebp + 0x48]
mov dword [esp + ebp + 0xcc], ecx
fmul dword [0x5beff8]
mov dword [esp + ebp + 0xd0], edx
mov dword [esp + ebp + 0xd4], eax
fstp dword [esp]
call fcn.004e9bd0
fmul dword [esi + 0x30]
add ebp, 0x10
cmp ebp, 0x40
fstp dword [esp + ebp + 0xbc]
jl 0x4e65d0
movzx edi, word [esi + 0x50]
and edi, 0x80000fff
jns 0x4e6641
dec edi
or edi, 0xfffff000
inc edi
movzx ebp, word [esi + 0x52]
and ebp, 0x80000fff
lea ecx, [edi + 0x1000]
mov dword [esp + 0x14], ecx
jns 0x4e665f
dec ebp
or ebp, 0xfffff000
inc ebp
fld dword [esi + 0x3c]
call fcn.00581d24
fld dword [esi + 0x40]
mov ecx, eax
mov eax, 0x800
cdq
idiv ecx
mov ebx, eax
call fcn.00581d24
mov ecx, eax
mov eax, 0x800
cdq
idiv ecx
mov esi, dword [esp + 0x1ec]
add edi, ebx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x14]
fild dword [esp + 0x18]
mov edx, ebp
sub edi, ebx
mov dword [esp + 0x14], edi
fst dword [esp + 0x100]
sub esp, 0x10
mov ecx, esp
sub edx, eax
add edx, 0x1000
mov dword [esp + 0x3c], edx
fild dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
add ebp, eax
fst dword [esp + 0x114]
mov dword [ecx], edx
fild dword [esp + 0x24]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x20], ebp
fst dword [esp + 0x28]
mov eax, dword [esp + 0x28]
fstp dword [esp + 0x120]
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x54]
fstp dword [esp + 0x124]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x5c]
fstp dword [esp + 0x130]
mov dword [ecx + 8], edx
fild dword [esp + 0x20]
mov dword [ecx + 0xc], eax
lea eax, [esp + 0x40]
mov ecx, esi
fst dword [esp + 0x134]
fstp dword [esp + 0x144]
call fcn.00460320
fld dword [eax + 4]
mov ecx, dword [eax]
fstp dword [esp + 0x84]
fld dword [eax + 8]
sub esp, 0x10
fstp dword [esp + 0x98]
fld dword [eax + 0xc]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x64]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x68]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
fstp dword [esp + 0x9c]
lea eax, [esp + 0x40]
mov ecx, esi
call fcn.00460320
fld dword [eax + 4]
mov edx, dword [eax]
fstp dword [esp + 0x94]
mov dword [esp + 0x90], edx
fld dword [eax + 8]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
fstp dword [esp + 0x98]
fld dword [eax + 0xc]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
fstp dword [esp + 0xac]
lea eax, [esp + 0x40]
mov ecx, esi
call fcn.00460320
fld dword [eax + 4]
mov ecx, dword [eax]
fstp dword [esp + 0xa4]
fld dword [eax + 8]
sub esp, 0x10
fstp dword [esp + 0xb8]
fld dword [eax + 0xc]
mov eax, dword [esp + 0x80]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x84]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x88]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x8c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
fstp dword [esp + 0xbc]
lea eax, [esp + 0x40]
mov ecx, esi
call fcn.00460320
fld dword [eax + 4]
mov edx, dword [eax]
fstp dword [esp + 0xb4]
fld dword [eax + 8]
mov dword [esp + 0xb0], edx
fstp dword [esp + 0xb8]
fld dword [eax + 0xc]
lea ecx, [esp + 0x88]
fstp dword [esp + 0xbc]
mov edx, 4
fld dword [ecx]
fcomp dword [0x5befc8]
fnstsw ax
test ah, 5
jp 0x4e6875
mov dword [ecx], 0xbf800000
fld dword [ecx]
fcomp dword [0x5bef9c]
fnstsw ax
test ah, 0x41
jne 0x4e688a
mov dword [ecx], 0x3f800000
add ecx, 0x10
dec edx
jne 0x4e6860
mov eax, dword [0xf91614]
mov edx, dword [eax + 8]
lea ecx, [edx + 0x20]
mov dword [eax + 8], ecx
xor eax, eax
mov ecx, 8
mov edi, edx
rep stosd dword es:[edi], eax
mov al, byte [0xf91509]
test al, al
mov dword [esp + 0x30], edx
je 0x4e68c2
mov eax, 0x20000042
mov ecx, 0x14
jmp 0x4e68cc
mov eax, 0x142
mov ecx, 0x18
mov byte [0xf91494], cl
mov ecx, dword [0xf91470]
mov dword [0xf91490], eax
mov dword [edx + 8], eax
mov al, byte [0xf91494]
mov byte [edx + 0x14], al
mov eax, dword [0xf91474]
xor esi, esi
mov word [edx + 0xe], si
mov word [edx + 0x12], si
mov dword [edx + 0x1c], esi
mov dword [0xf91478], ecx
mov ecx, dword [esp + 0x80]
mov dword [0xf9147c], eax
mov eax, dword [esp + 0x88]
mov dword [0xf91498], edx
mov byte [edx + 0x15], 4
mov edx, dword [esp + 0x84]
mov dword [esp + 0x140], ecx
mov dword [esp + 0x144], edx
mov edx, dword [esp + 0xc0]
sub esp, 0x10
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0xd4]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0xd8]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xdc]
mov dword [ecx + 8], edx
mov dword [0xf9148c], 0x54
mov dword [0xf7ad68], esi
mov dword [0xf91484], 0xf91478
mov dword [0xf91488], 0xf9147c
mov word [esp + 0x4c], si
mov dword [0xf7ad64], 1
mov byte [0xf91480], 1
mov byte [esp + 0x44], 1
mov dword [ecx + 0xc], eax
call fcn.00494280
mov ecx, eax
shr ecx, 0x17
and ecx, 0x1fe
add esp, 0x10
cmp ecx, 0xff
mov dword [esp + 0x10], eax
jbe 0x4e69c8
mov ecx, 0xff
fld dword [esp + 0x100]
shl ecx, 8
mov edx, eax
and edx, 0xff
or ecx, edx
mov edx, dword [esp + 0x10]
shr edx, 0x10
movzx edx, dl
shl ecx, 0x10
or ecx, edx
and eax, 0xff00
or ecx, eax
mov dword [esp + 0x158], ecx
call fcn.00581d24
mov word [esp + 0x150], ax
fld dword [esp + 0x104]
call fcn.00581d24
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x98]
mov word [esp + 0x152], ax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], ecx
mov ecx, dword [esp + 0xd0]
sub esp, 0x10
mov dword [esp + 0x180], edx
mov edx, dword [esp + 0xe4]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xe8]
mov dword [eax + 4], edx
mov edx, dword [esp + 0xec]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00494280
mov ecx, eax
shr ecx, 0x17
and ecx, 0x1fe
add esp, 0x10
cmp ecx, 0xff
mov dword [esp + 0x10], eax
jbe 0x4e6a94
mov ecx, 0xff
fld dword [esp + 0x110]
mov edx, eax
and edx, 0xff
shl ecx, 8
or edx, ecx
mov ecx, dword [esp + 0x10]
shr ecx, 0x10
movzx ecx, cl
shl edx, 0x10
or edx, ecx
and eax, 0xff00
or edx, eax
mov dword [esp + 0x180], edx
call fcn.00581d24
mov word [esp + 0x178], ax
fld dword [esp + 0x114]
call fcn.00581d24
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa8]
mov word [esp + 0x17a], ax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x190], edx
mov dword [esp + 0x194], eax
mov eax, dword [esp + 0xe0]
sub esp, 0x10
mov dword [esp + 0x1a8], ecx
mov ecx, dword [esp + 0xf4]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0xf8]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xfc]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.00494280
mov ecx, eax
shr ecx, 0x17
and ecx, 0x1fe
add esp, 0x10
cmp ecx, 0xff
mov dword [esp + 0x10], eax
jbe 0x4e6b60
mov ecx, 0xff
fld dword [esp + 0x120]
mov edx, eax
and edx, 0xff
shl ecx, 8
or edx, ecx
mov ecx, dword [esp + 0x10]
shr ecx, 0x10
movzx ecx, cl
shl edx, 0x10
or edx, ecx
and eax, 0xff00
or edx, eax
mov dword [esp + 0x1a8], edx
call fcn.00581d24
mov word [esp + 0x1a0], ax
fld dword [esp + 0x124]
call fcn.00581d24
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb8]
mov word [esp + 0x1a2], ax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x1b8], edx
mov dword [esp + 0x1bc], eax
mov eax, dword [esp + 0xf0]
sub esp, 0x10
mov dword [esp + 0x1d0], ecx
mov ecx, dword [esp + 0x104]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x108]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x10c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.00494280
mov ecx, eax
shr ecx, 0x17
and ecx, 0x1fe
add esp, 0x10
cmp ecx, 0xff
mov dword [esp + 0x10], eax
jbe 0x4e6c2c
mov ecx, 0xff
fld dword [esp + 0x130]
mov edx, eax
and edx, 0xff
shl ecx, 8
or edx, ecx
mov ecx, dword [esp + 0x10]
shr ecx, 0x10
movzx ecx, cl
shl edx, 0x10
or edx, ecx
and eax, 0xff00
or edx, eax
mov dword [esp + 0x1d0], edx
call fcn.00581d24
mov word [esp + 0x1c8], ax
fld dword [esp + 0x134]
call fcn.00581d24
push esi
lea edx, [esp + 0x144]
push edx
mov word [esp + 0x1d2], ax
push 4
lea eax, [esp + 0x3c]
push eax
call fcn.0050b880
call fcn.00515d10
mov edx, dword [esp + 0x1e8]
mov ecx, dword [esp + 0x30]
mov dx, word [edx + 0x38]
mov eax, 0x1fc30
call fcn.0050cfd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret 0xc