Function at 0x10011af0
Capabilities:
Get file size
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10033b90
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x10049040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov dword [ebp - 0x224], ebx
test ebx, ebx
jne 0x10011b3c
push str.Failed_to_get_module_handle.
jmp 0x10011d9e
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.KERNEL32.dll_K32GetModuleFileNameExA
test eax, eax
je 0x10011d99
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x10011d99
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push eax
push sym.d3d8.dll_Direct3DCreate8
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
push 0x104
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push 0x5c
push eax
call fcn.10018640
movq xmm0, qword [str.d3d8.ini]
add esp, 8
movq qword [eax], xmm0
mov cx, word [0x100362a0]
mov word [eax + 8], cx
lea eax, [ebp - 0x114]
push eax
push 0
push 0x100362a4
push 0x100362a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x10011bfb
push str.Failed_to_read_FOV_index_from_INI_file.
jmp 0x10011d9e
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.10010350
add esp, 8
mov eax, dword [ebp - 0x234]
mov dword [ebp - 4], 0
cmp eax, dword [ebp - 0x230]
jne 0x10011c2f
push str.Failed_to_create_hex_edit_for_resolution_index:
push 0x1004c510
jmp 0x10011cc9
mov eax, dword [0x1004c2d4]
xor edi, edi
mov ecx, dword [0x1004c2d8]
sub eax, ecx
add eax, esi
mov dword [ebp - 0x238], eax
je 0x10011cbf
mov eax, dword [0x1004c2d4]
sub ecx, eax
mov dword [ebp - 0x21c], ecx
mov esi, ecx
lea edx, [edi + ebx]
sub esi, 4
jb 0x10011c71
nop
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10011c7a
add edx, 4
add eax, 4
sub esi, 4
jae 0x10011c60
cmp esi, 0xfffffffc
je 0x10011d11
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x10011cab
cmp esi, 0xfffffffd
je 0x10011d11
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x10011cab
cmp esi, 0xfffffffe
je 0x10011d11
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x10011cab
cmp esi, 0xffffffff
je 0x10011d11
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x10011d11
mov ecx, dword [ebp - 0x21c]
inc edi
mov eax, dword [0x1004c2d4]
cmp edi, dword [ebp - 0x238]
jb 0x10011c55
push str.Pattern_not_found_in_memory.
push 0x1004c450
call fcn.1000e4a0
push eax
call fcn.1000f240
mov ecx, dword [ebp - 0x234]
add esp, 0xc
test ecx, ecx
je 0x10011db1
mov edx, dword [ebp - 0x22c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10011d8d
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10011dcd
jmp 0x10011d8d
push str.Pattern_found_in_memory.
push 0x1004c450
call fcn.1000e4a0
push eax
call fcn.1000f240
mov ebx, dword [ebp - 0x228]
add esp, 0xc
mov esi, dword [ebp - 0x234]
add ebx, edi
mov edi, dword [ebp - 0x230]
add ebx, dword [ebp - 0x224]
sub edi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x21c]
push ecx
push edi
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10011d7e
mov eax, dword [ebp - 0x230]
sub eax, dword [ebp - 0x234]
cmp dword [ebp - 0x21c], eax
jne 0x10011d7e
push str.Hex_edited_successfully.
jmp 0x10011cc4
push str.Failed_to_write_memory.
push 0x1004c510
jmp 0x10011cc9
push edx
push ecx
call fcn.10016b26
add esp, 8
jmp 0x10011db1
push str.Failed_to_get_module_information.
push 0x1004c510
call fcn.1000e4a0
push eax
call fcn.1000f240
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10016b64
mov esp, ebp
pop ebp
ret
call fcn.1001be25
int3