Function at 0x406b50
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x424008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push str.Setup.ini
push 0x42520c
lea eax, [ebp - 0x208]
mov dword [ebp - 0x210], ecx
push 0x42086c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x208]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406bd8
push 0x30
push str.file_open_error
push str._0x10010001_
push dword [0x425188]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a88f
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [ebx + 1]
push ecx
call fcn.0040cfa9
mov esi, eax
add esp, 4
test esi, esi
jne 0x406c29
push 0x30
push str.memory_allocate_error
push str._0x10010002_
push dword [0x425188]
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a88f
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x214]
mov byte [esi + ebx], 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406c7e
push 0x30
push str.read_error
push str._0x10010003_
push dword [0x425188]
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.0040cfa4
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a88f
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x421608
push esi
call fcn.0040b700
mov edi, eax
add esp, 8
test edi, edi
je 0x406ec5
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x421608
call ebx
add edi, eax
push 0x421648
push edi
call fcn.0040b700
add esp, 8
mov dword [ebp - 0x20c], eax
test eax, eax
je 0x406d13
push 0x3b
push ecx
push 0
push 0x421648
call ebx
add eax, dword [ebp - 0x20c]
lea ecx, [ebp - 0x104]
mov edx, eax
call fcn.0040a750
push 0x42164c
mov edx, 0x100
lea ecx, [ebp - 0x104]
call fcn.0040a6a0
lea eax, [ebp - 0x104]
push eax
call fcn.0040d501
mov ecx, dword [ebp - 0x210]
add esp, 0x14
mov dword [ecx + 0x430], eax
push str.CPU:
push edi
call fcn.0040b700
add esp, 8
mov dword [ebp - 0x20c], eax
test eax, eax
je 0x406d7a
push 0x3b
push ecx
push 0
push str.CPU:
call ebx
add eax, dword [ebp - 0x20c]
lea ecx, [ebp - 0x104]
mov edx, eax
call fcn.0040a750
push 0x42164c
mov edx, 0x100
lea ecx, [ebp - 0x104]
call fcn.0040a6a0
lea eax, [ebp - 0x104]
push eax
call fcn.0040d501
mov ecx, dword [ebp - 0x210]
add esp, 0x14
mov dword [ecx + 0x434], eax
push str.MEMORY:
push edi
call fcn.0040b700
add esp, 8
mov dword [ebp - 0x20c], eax
test eax, eax
je 0x406de1
push 0x3b
push ecx
push 0
push str.MEMORY:
call ebx
add eax, dword [ebp - 0x20c]
lea ecx, [ebp - 0x104]
mov edx, eax
call fcn.0040a750
push 0x42164c
mov edx, 0x100
lea ecx, [ebp - 0x104]
call fcn.0040a6a0
lea eax, [ebp - 0x104]
push eax
call fcn.0040d501
mov ecx, dword [ebp - 0x210]
add esp, 0x14
mov dword [ecx + 0x438], eax
push str.DIRECTX:
push edi
call fcn.0040b700
add esp, 8
mov dword [ebp - 0x20c], eax
test eax, eax
je 0x406e48
push 0x3b
push ecx
push 0
push str.DIRECTX:
call ebx
add eax, dword [ebp - 0x20c]
lea ecx, [ebp - 0x104]
mov edx, eax
call fcn.0040a750
push 0x42164c
mov edx, 0x100
lea ecx, [ebp - 0x104]
call fcn.0040a6a0
lea eax, [ebp - 0x104]
push eax
call fcn.0040d501
mov ecx, dword [ebp - 0x210]
add esp, 0x14
mov dword [ecx + 0x43c], eax
push str.VRAM:
push edi
call fcn.0040b700
mov edi, eax
add esp, 8
test edi, edi
je 0x406ea6
push 0x3b
push ecx
push 0
push str.VRAM:
call ebx
lea ecx, [ebp - 0x104]
lea edx, [edi + eax]
call fcn.0040a750
push 0x42164c
mov edx, 0x100
lea ecx, [ebp - 0x104]
call fcn.0040a6a0
lea eax, [ebp - 0x104]
push eax
call fcn.0040d501
mov ecx, dword [ebp - 0x210]
add esp, 0x14
mov dword [ecx + 0x440], eax
push esi
call fcn.0040cfa4
add esp, 4
mov eax, 1
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a88f
mov esp, ebp
pop ebp
ret
push 0x30
push str.ini_file_error
push str._spec_
push dword [0x425188]
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call fcn.0040cfa4
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop esi
pop ebx
pop edi
call fcn.0040a88f
mov esp, ebp
pop ebp
ret