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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x45455b
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
mov ebp, dword [esp + 0x98]
xor ebx, ebx
cmp dword [ebp + 0x98], ebx
push esi
push edi
je 0x40f697
mov ecx, dword [ebp + 0x98]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x1c], esi
je 0x40f63e
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + esi + 4]
mov eax, dword [edx + 4]
lea ecx, [ecx + esi + 4]
call eax
cmp esi, ebx
mov dword [esp + 0x98], ebx
je 0x40f66a
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
push ebx
call eax
mov ecx, dword [ebp + 0x98]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ebx
call eax
cmp esi, ebx
mov dword [esp + 0x98], 0xffffffff
je 0x40f735
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + esi + 4]
lea esi, [edx + esi + 4]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
jmp 0x40f735
cmp dword [ebp + 0x9c], ebx
je 0x40f735
mov eax, dword [ebp + 0x9c]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x1c], esi
je 0x40f6d7
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + esi + 4]
mov eax, dword [edx + 4]
lea ecx, [ecx + esi + 4]
call eax
cmp esi, ebx
mov dword [esp + 0x98], 1
je 0x40f711
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
push ebx
call eax
mov eax, dword [ebp + 0x9c]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push ebx
call edx
cmp esi, ebx
mov dword [esp + 0x98], 0xffffffff
je 0x40f735
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + esi + 4]
mov eax, dword [edx + 8]
lea esi, [ecx + esi + 4]
mov ecx, esi
call eax
mov ecx, dword [ebp + 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 0x130]
push str.viewmesh_region
call eax
mov ecx, dword [ebp + 0x34]
mov edx, dword [ecx]
mov edx, dword [edx + 0x4c]
push ebx
push ebx
push ebx
push 1
mov edi, eax
push ebx
push edi
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0xc0]
push eax
mov dword [esp + 0x3c], edi
call edx
test al, al
je 0x40f9fc
mov dword [esp + 0x14], ebx
mov dword [esp + 0x98], 2
mov esi, dword [esp + 0x20]
cmp esi, ebx
jne 0x40f81a
mov ecx, dword [ebp + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0x12c]
call edx
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
mov dword [esp + 0x18], ebx
call edx
test eax, eax
jle 0x40f9fc
jmp 0x40f7b7
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esi]
mov edx, dword [eax + 4]
push ecx
mov ecx, esi
call edx
mov edi, dword [edi]
mov ebx, eax
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
add edi, 0x3c
call edx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [edi]
call eax
test al, al
jne 0x40f7fd
mov edi, dword [esp + 0x18]
mov edx, dword [esi]
mov eax, dword [edx]
add edi, 1
mov ecx, esi
mov dword [esp + 0x18], edi
call eax
cmp edi, eax
jl 0x40f7b3
jmp 0x40f9fc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + ebx + 4]
mov edi, ebx
lea ebx, [edx + ebx + 4]
mov edx, dword [eax + 4]
mov ecx, ebx
mov dword [esp + 0x14], edi
call edx
jmp 0x40f831
lea edi, [esp + 0x1c]
call fcn.00415850
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [eax], 0xffffffff
mov edi, ecx
test edi, edi
je 0x40f9fc
fldz
mov ecx, dword [ebp + 0x30]
lea eax, [esp + 0x28]
fst dword [esp + 0x28]
push eax
fst dword [esp + 0x30]
mov eax, dword [esp + 0xa8]
fstp dword [esp + 0x34]
mov edx, dword [ecx]
mov edx, dword [edx + 0xec]
push 0
push eax
push edi
lea eax, [esp + 0x28]
push eax
call edx
mov esi, dword [eax]
mov dword [esp + 0x24], esi
mov dword [eax], 0xffffffff
fld1
fst dword [esp + 0x38]
mov dword [esp + 0x34], 0x456648
fldz
fst dword [esp + 0x3c]
fst dword [esp + 0x40]
fst dword [esp + 0x44]
fst dword [esp + 0x4c]
fst dword [esp + 0x50]
fst dword [esp + 0x54]
fst dword [esp + 0x5c]
fst dword [esp + 0x60]
fst dword [esp + 0x64]
fxch st(1)
fst dword [esp + 0x48]
fst dword [esp + 0x58]
fst dword [esp + 0x68]
fst dword [esp + 0x78]
fstp dword [esp + 0x88]
fst dword [esp + 0x6c]
fst dword [esp + 0x70]
fst dword [esp + 0x74]
fst dword [esp + 0x7c]
fst dword [esp + 0x80]
fstp dword [esp + 0x84]
mov byte [esp + 0x98], 4
cmp dword [ebp + 0x98], 0
je 0x40f93b
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ebx, dword [ebp + 0x84]
mov ecx, esi
call edx
mov edi, dword [eax]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
mov ecx, ebx
add edi, 0x10
call edx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [edi]
call eax
mov ecx, dword [ebp + 0x98]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push esi
call eax
mov ebp, dword [ebp + 0x84]
mov edx, dword [ebp]
mov eax, dword [edx + 0x28]
mov ecx, ebp
call eax
jmp 0x40f9a8
cmp dword [ebp + 0x9c], 0
je 0x40f9b5
mov ecx, dword [ebp + 0x9c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x34]
push eax
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ebx, dword [ebp + 0x84]
mov ecx, esi
call edx
mov edi, dword [eax]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
mov ecx, ebx
add edi, 0x10
call edx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [edi]
call eax
mov eax, dword [ebp + 0x9c]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push esi
call edx
mov ebp, dword [ebp + 0x84]
mov eax, dword [ebp]
mov edx, dword [eax + 0x28]
mov ecx, ebp
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x44]
call eax
mov edi, dword [esp + 0x14]
test esi, esi
mov dword [esp + 0x34], 0x45662c
mov byte [esp + 0x98], 2
je 0x40f9de
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + esi + 4]
lea esi, [edx + esi + 4]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edi + 4]
mov eax, dword [edx + 8]
lea ecx, [ecx + edi + 4]
call eax
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8c
ret 8