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

Disassembly:
mov eax, 0x10b4
call fcn.005817c0
mov eax, dword [esp + 0x10bc]
mov ecx, dword [esp + 0x10b8]
push ebx
push ebp
push esi
mov esi, dword [0xf91610]
push edi
add eax, 0x54
push ecx
call fcn.004e76f0
cmp esi, eax
je 0x4e58c4
mov ecx, eax
mov edx, 1
shl edx, cl
test dword [0xeb0b60], edx
je 0x4e58b7
mov dword [0xf91610], eax
jmp 0x4e58c4
push str.RenderRegionManager::SetActiveRenderRegion___attempt_to_activate_region_that_is_not_in_use_n
call fcn.004fefa0
add esp, 4
mov ebx, dword [esp + 0x10cc]
fld dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
fadd dword [ebx + 0x40]
mov eax, dword [ebx + 4]
mov edx, ecx
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebx + 8]
fst dword [esp + 0x58]
fld dword [ebx + 0x3c]
mov dword [esp + 0x54], eax
fadd dword [ebx + 4]
mov dword [esp + 0x74], eax
mov eax, ecx
mov dword [esp + 0x78], ecx
fst dword [esp + 0x64]
mov ecx, edx
fxch st(1)
mov dword [esp + 0x6c], edx
mov dword [esp + 0x7c], edx
fstp dword [esp + 0x68]
mov edx, dword [ebx + 0x4c]
test edx, 0x800000
fstp dword [esp + 0x84]
mov dword [esp + 0x60], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], 0
je 0x4e5aa5
fld dword [ebx + 0x14]
mov dword [esp + 0x60], 0
fmul dword [ebx + 0x40]
mov dword [esp + 0x70], 0
fmul dword [0x5bf2b8]
fld dword [ebx + 0x18]
fmul dword [ebx + 0x40]
fmul dword [0x5befcc]
fstp dword [esp + 0x48]
fld dword [ebx + 0x18]
fmul dword [ebx + 0x3c]
fmul dword [0x5bf2b8]
fld dword [ebx + 0x3c]
fmul dword [ebx + 0x14]
fmul dword [0x5bf078]
fld dword [ebx + 4]
fsub st(2)
fld dword [ebx + 8]
fsub st(2)
fstp dword [esp + 0x20]
fld dword [ebx + 0xc]
fstp dword [esp + 0x24]
fsub st(3)
fld dword [esp + 0x20]
fsub dword [esp + 0x48]
fld dword [esp + 0x24]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
fxch st(1)
fstp dword [esp + 0x54]
mov dword [esp + 0x5c], eax
fstp dword [esp + 0x58]
fld st(1)
fadd dword [ebx + 4]
fld dword [ebx + 8]
fadd st(2)
fstp dword [esp + 0x20]
fld dword [ebx + 0xc]
fstp dword [esp + 0x24]
fsub st(3)
fld dword [esp + 0x20]
fsub dword [esp + 0x48]
fld dword [esp + 0x24]
fstp dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
fxch st(1)
fstp dword [esp + 0x64]
mov dword [esp + 0x6c], ecx
fstp dword [esp + 0x68]
fld dword [ebx + 4]
fsub st(2)
fld dword [ebx + 8]
fsub st(2)
fstp dword [esp + 0x20]
fld dword [ebx + 0xc]
fstp dword [esp + 0x24]
fadd st(3)
fld dword [esp + 0x20]
fadd dword [esp + 0x48]
fld dword [esp + 0x24]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
fxch st(1)
fstp dword [esp + 0x74]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
fstp dword [esp + 0x78]
mov dword [esp + 0x90], 0
fxch st(1)
fadd dword [ebx + 4]
fstp dword [esp + 0x1c]
fld dword [ebx + 8]
fadd st(1)
fstp dword [esp + 0x20]
fstp st(0)
fld dword [ebx + 0xc]
fstp dword [esp + 0x24]
fadd dword [esp + 0x1c]
fld dword [esp + 0x20]
fadd dword [esp + 0x48]
fld dword [esp + 0x24]
fstp dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
fxch st(1)
fstp dword [esp + 0x84]
mov dword [esp + 0x8c], ecx
fstp dword [esp + 0x88]
lea ebp, [ebx + 0x24]
lea eax, [esp + 0x114]
mov ecx, 4
mov esi, dword [ebp]
mov dword [eax - 8], esi
mov esi, dword [ebp + 4]
mov dword [eax - 4], esi
mov esi, dword [ebp + 8]
mov dword [eax], esi
mov esi, dword [ebp + 0xc]
mov dword [eax + 4], esi
add eax, 0x10
dec ecx
jne 0x4e5ab4
test dh, 0x40
je 0x4e5bad
mov esi, dword [esp + 0x10c8]
mov edx, dword [esi + 8]
mov edx, dword [edx + 0x5828]
xor eax, eax
test edx, edx
jle 0x4e5b15
mov edi, dword [ebx + 0x60]
lea ecx, [esi + 0x16b4]
lea esp, [esp]
cmp dword [ecx], edi
je 0x4e5b11
inc eax
add ecx, 0x404
cmp eax, edx
jl 0x4e5b00
jmp 0x4e5b15
test eax, eax
jge 0x4e5b40
lea eax, [esp + 0x114]
mov ecx, 4
mov edx, dword [ebp]
mov dword [eax - 8], edx
mov edx, dword [ebp + 4]
mov dword [eax - 4], edx
mov edx, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 4], edx
add eax, 0x10
dec ecx
jne 0x4e5b21
jmp 0x4e5bad
imul eax, eax, 0x404
lea edi, [eax + esi + 0x12b4]
xor esi, esi
nop
fld dword [esp + esi + 0x58]
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
fmul dword [0x5beff8]
sub esp, 8
mov dword [esp + esi + 0x114], eax
mov eax, dword [ebp + 0xc]
fstp dword [esp + 4]
fld dword [esp + esi + 0x5c]
mov dword [esp + esi + 0x118], ecx
fmul dword [0x5beff8]
mov dword [esp + esi + 0x11c], edx
mov dword [esp + esi + 0x120], eax
fstp dword [esp]
call fcn.004e9bd0
fmul dword [ebx + 0x30]
add esi, 0x10
cmp esi, 0x40
fstp dword [esp + esi + 0x108]
jl 0x4e5b50
movzx esi, word [ebx + 0x50]
and esi, 0x80000fff
jns 0x4e5bc1
dec esi
or esi, 0xfffff000
inc esi
movzx edi, word [ebx + 0x52]
and edi, 0x80000fff
jns 0x4e5bd5
dec edi
or edi, 0xfffff000
inc edi
fld dword [ebx + 0x3c]
call fcn.00581d24
fld dword [ebx + 0x40]
mov ecx, eax
mov eax, 0x800
cdq
idiv ecx
mov dword [esp + 0x10], eax
call fcn.00581d24
mov ecx, eax
mov eax, 0x800
cdq
idiv ecx
mov ecx, dword [esp + 0x10]
lea edx, [ecx + esi]
mov dword [esp + 0x10], edx
mov edx, edi
sub esi, ecx
fild dword [esp + 0x10]
mov ecx, dword [esp + 0x54]
add esi, 0x1000
sub esp, 0x10
fstp dword [esp + 0x11c]
sub edx, eax
add edx, 0x1000
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
mov edx, dword [esp + 0x68]
add eax, edi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x10e0]
fstp dword [esp + 0x120]
fild dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
fstp dword [esp + 0x12c]
fild dword [esp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
fstp dword [esp + 0x140]
lea eax, [esp + 0x54]
mov ecx, esi
call fcn.00460320
fld dword [eax + 4]
mov ecx, dword [eax]
fstp dword [esp + 0xd0]
fld dword [eax + 8]
sub esp, 0x10
fstp dword [esp + 0xe4]
fld dword [eax + 0xc]
mov eax, dword [esp + 0x74]
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0x78]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x7c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x80]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
fstp dword [esp + 0xe8]
lea eax, [esp + 0x54]
mov ecx, esi
call fcn.00460320
fld dword [eax + 4]
mov edx, dword [eax]
fstp dword [esp + 0xe0]
fld dword [eax + 8]
mov dword [esp + 0xdc], edx
fstp dword [esp + 0xe4]
fld dword [eax + 0xc]
mov ecx, dword [esp + 0x74]
fstp dword [esp + 0xe8]
mov edx, dword [esp + 0x78]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x90]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x54]
mov ecx, esi
call fcn.00460320
fld dword [eax + 4]
mov ecx, dword [eax]
fstp dword [esp + 0xf0]
fld dword [eax + 8]
sub esp, 0x10
fstp dword [esp + 0x104]
fld dword [eax + 0xc]
mov eax, dword [esp + 0x94]
mov dword [esp + 0xfc], ecx
mov ecx, dword [esp + 0x98]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x9c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xa0]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
fstp dword [esp + 0x108]
lea eax, [esp + 0x54]
mov ecx, esi
call fcn.00460320
fld dword [eax + 4]
mov edx, dword [eax]
fstp dword [esp + 0x100]
fld dword [eax + 8]
mov dword [esp + 0xfc], edx
fstp dword [esp + 0x104]
fld dword [eax + 0xc]
lea ecx, [esp + 0xd4]
fstp dword [esp + 0x108]
mov edx, 4
fld dword [ecx]
fcomp dword [0x5befc8]
fnstsw ax
test ah, 5
jp 0x4e5dd9
mov dword [ecx], 0xbf800000
fld dword [ecx]
fcomp dword [0x5bef9c]
fnstsw ax
test ah, 0x41
jne 0x4e5dee
mov dword [ecx], 0x3f800000
add ecx, 0x10
dec edx
jne 0x4e5dc4
fld dword [ebx + 0x3c]
mov eax, dword [ebx + 0xc]
fmul dword [0x5bf2bc]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x110]
mov dword [esp + 0x94], eax
fstp dword [esp + 0xc4]
mov dword [esp + 0x2c], ecx
fld dword [ebx + 0x40]
mov ecx, dword [ebp]
fmul dword [0x5bf078]
sub esp, 0x10
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 4]
fstp dword [esp + 0xcc]
mov eax, esp
fld dword [esp + 0x12c]
mov dword [eax], ecx
fsub dword [esp + 0x11c]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0xc]
fmul dword [0x5bf2bc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
fstp dword [esp + 0xd0]
fld dword [esp + 0x140]
fsub dword [esp + 0x120]
fmul dword [0x5befcc]
fstp dword [esp + 0xbc]
call fcn.00494280
mov esi, eax
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]
add esp, 0x10
test al, al
mov dword [esp + 0x44], edx
je 0x4e5ebf
mov eax, 0x20000042
mov ecx, 0x14
jmp 0x4e5ec9
mov eax, 0x142
mov ecx, 0x18
mov dword [0xf91490], eax
mov byte [0xf91494], cl
mov ecx, dword [0xf91470]
mov dword [edx + 8], eax
mov al, byte [0xf91494]
mov byte [edx + 0x14], al
mov eax, dword [0xf91474]
xor ebx, ebx
mov word [edx + 0xe], bx
mov word [edx + 0x12], bx
mov dword [edx + 0x1c], ebx
mov dword [0xf9147c], eax
mov dword [0xf91478], ecx
mov byte [edx + 0x15], 4
mov eax, dword [esp + 0x10d4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [0xf91498], edx
mov edx, eax
sar edx, 0x1f
test ecx, ecx
mov dword [esp + 0x40], ecx
fild dword [esp + 0x40]
mov dword [0xf9148c], 0x54
mov dword [0xf7ad68], ebx
mov dword [0xf91484], 0xf91478
mov dword [0xf91488], 0xf9147c
mov word [esp + 0x50], bx
mov dword [0xf7ad64], 1
mov byte [0xf91480], 1
mov byte [esp + 0x48], 1
jge 0x4e5f6e
fadd dword [0x5befa4]
cmp eax, ebx
fmul dword [0x5bf014]
fstp dword [esp + 0x30]
je 0x4e5fa2
test eax, eax
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
jge 0x4e5f8e
fadd dword [0x5befa4]
fmul dword [0x5bf010]
fmul dword [0x5bf00c]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [0x5bef9c]
mov eax, esi
fdiv dword [0x5ef880]
shr eax, 0x17
and eax, 0x1fe
mov ebp, esi
mov dword [esp + 0x9c], eax
mov eax, esi
shr ebp, 0x10
and eax, 0xff
and ebp, 0xff
and esi, 0xff00
mov dword [esp + 0x98], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x10], 2
fstp dword [esp + 0xb0]
fld dword [esp + 0x30]
fmul dword [0x5befcc]
fstp dword [esp + 0xb4]
jmp 0x4e6010
xor ebx, ebx
jmp 0x4e6010
fld dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
fadd dword [esp + 0xbc]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x54]
mov dword [esp + 0xa0], eax
fstp dword [esp + 0x2c]
mov dword [esp + 0xb8], ecx
fld dword [esp + 0x34]
mov dword [esp + 0x18], edx
fadd dword [esp + 0xac]
mov dword [esp + 0x38], 0
fstp dword [esp + 0x34]
fld dword [esp + 0x30]
fadd dword [esp + 0xa0]
fmul dword [0x5ef878]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fsin
fstp dword [esp + 0xa4]
fld dword [esp + 0x30]
fadd dword [esp + 0x2c]
fmul dword [0x5ef878]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fsin
fstp dword [esp + 0xa8]
fld dword [esp + 0xb8]
call fcn.00581d24
fld dword [esp + 0x34]
mov word [esp + 0x3e], ax
call fcn.00581d24
mov word [esp + 0xa8], ax
lea edi, [esp + 0x164]
lea esi, [esp + 0x14c]
mov dword [esp + 0x14], 0x21
lea ecx, [ecx]
fld dword [esp + 0xb0]
mov eax, dword [esp + 0x18]
fmul dword [esp + 0x18]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x94]
mov dword [esi], eax
fadd dword [esp + 0xb4]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
fmul dword [0x5ef878]
fstp dword [esp + 0xa4]
fld dword [esp + 0xa4]
fsin
fstp dword [esp + 0xc8]
fld dword [esp + 0xc8]
fmul dword [0x5ef87c]
fadd dword [esp + 0x38]
fcom dword [0x5bef98]
fnstsw ax
test ah, 5
jp 0x4e6141
fstp st(0)
fld dword [0x5bef98]
jmp 0x4e6156
fcom dword [0x5bf198]
fnstsw ax
test ah, 0x41
jne 0x4e6156
fstp st(0)
fld dword [0x5bf198]
call fcn.00581d24
mov cx, word [esp + 0x3e]
mov word [esi + 0x12], cx
mov ecx, dword [esp + 0x9c]
cmp ecx, 0xff
mov word [esi + 0x10], ax
jbe 0x4e617c
mov ecx, 0xff
mov edx, dword [esp + 0x98]
shl ecx, 8
or ecx, edx
mov edx, dword [esp + 0x40]
shl ecx, 0x10
or ecx, edx
or ecx, ebp
mov dword [edi], ecx
mov ecx, dword [esp + 0x18]
add esi, 0x28
mov dword [esi], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x94]
mov dword [esi + 8], ecx
mov word [esi + 0x10], ax
mov ax, word [esp + 0xa8]
mov word [esi + 0x12], ax
mov eax, dword [esp + 0x9c]
inc ebx
add edi, 0x28
cmp eax, 0xff
jbe 0x4e61d6
mov eax, 0xff
mov ecx, dword [esp + 0x98]
fld dword [esp + 0x18]
fadd dword [esp + 0xc4]
shl eax, 8
or eax, ecx
shl eax, 0x10
or eax, edx
fstp dword [esp + 0x18]
fld dword [esp + 0x38]
or eax, ebp
fadd dword [esp + 0xc0]
mov dword [edi], eax
mov eax, dword [esp + 0x14]
inc ebx
add esi, 0x28
fstp dword [esp + 0x38]
add edi, 0x28
dec eax
mov dword [esp + 0x14], eax
jne 0x4e60d0
push 0
lea ecx, [esp + 0x150]
push ecx
push ebx
lea edx, [esp + 0x50]
push edx
call fcn.0050b880
dec dword [esp + 0x10]
jne 0x4e6004
call fcn.00515d10
mov edx, dword [esp + 0x10cc]
mov ecx, dword [esp + 0x44]
mov dx, word [edx + 0x38]
mov eax, 0x1fc30
call fcn.0050cfd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10b4
ret 0x10