Function at 0x65c4c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x730c1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x3c], 0x20000000
mov dword [esp + 0x40], 0x40020000
mov dword [esp + 0x44], 0x40010001
mov dword [esp + 0x48], 0xffffffff
mov cl, byte [esp + 0x13]
mov eax, dword [esi]
mov ebp, dword [eax + 0xc]
mov byte [esp + 0x2c], cl
push 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
or ecx, 0xffffffff
xor eax, eax
mov edi, str.FauxEMBM_Displace_2.pso
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.FauxEMBM_Displace_2.pso
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, ebp
mov byte [esp + 0x6c], 1
call fcn.00650520
mov eax, dword [eax + 4]
test eax, eax
mov byte [esp + 0x64], 2
jne 0x65c570
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [esp + 0x14], ecx
jmp 0x65c574
mov dword [esp + 0x14], eax
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
push 1
push ebx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x65c5d0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov esi, dword [esp + 0x18]
mov edx, dword [ebp]
add esi, 0x50
push esi
push 1
push 0
push 0
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
mov byte [esp + 0x78], 3
call dword [edx + 0x14]
push 1
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x68], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
test esi, esi
jge 0x65c632
push str.Unable_to_load_pixelshader_file:_FauxEMBM_Displace_2.pso
call fcn.00477400
add esp, 4
mov cl, byte [esp + 0x13]
mov byte [esp + 0x2c], cl
push 0
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
or ecx, 0xffffffff
xor eax, eax
mov edi, str.FauxEMBM_Displace.vso
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
push 1
push ebx
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x65c68c
mov edi, dword [esp + 0x30]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov esi, str.FauxEMBM_Displace.vso
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebp
mov byte [esp + 0x6c], 4
call fcn.00650520
mov eax, dword [eax + 4]
test eax, eax
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov byte [esp + 0x64], 5
je 0x65c6b6
mov esi, eax
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
or ecx, 0xffffffff
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
push 1
push ebx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x65c708
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [esp + 0x18]
mov edx, dword [ebp]
add eax, 0x54
push eax
xor edi, edi
push edi
push edi
lea ecx, [esp + 0x48]
push ecx
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
mov byte [esp + 0x78], 6
call dword [edx + 0x14]
push 1
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x68], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x50]
cmp eax, edi
je 0x65c762
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x65c759
cmp al, 0xff
je 0x65c759
dec al
mov byte [ecx], al
jmp 0x65c762
push ecx
call fcn.00727530
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov byte [esp + 0x64], 0
je 0x65c797
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x65c78e
cmp al, 0xff
je 0x65c78e
dec al
mov byte [ecx], al
jmp 0x65c797
push ecx
call fcn.00727530
add esp, 4
cmp esi, edi
pop edi
pop esi
pop ebp
pop ebx
jge 0x65c7ac
push str.Unable_to_load_vertexshader_file:_FauxEMBM_Displace.vso
call fcn.00477400
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret