Function at 0x404269
Capabilities:
Check if file exists
Get system information on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0xcc], 0
push 0
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x30], 0
mov ecx, 5
mov esi, str.vssln._md
lea edi, [ebp - 0xe8]
rep movsd dword es:[edi], dword [esi]
push 0x9c
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.00407560
add esp, 0xc
mov word [ebp - 0xe2], 0x67
mov word [ebp - 0xda], 0x37
mov word [ebp - 0xd8], 0x32
push 0xa8
push 0
lea ecx, [ebp - 0x190]
push ecx
call fcn.00407560
add esp, 0xc
mov dword [ebp - 0x19c], 0
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jne 0x40435d
lea edx, [ebp - 0xd0]
push edx
push 0x65
call fcn.004046e1
add esp, 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x19c], 1
mov dword [ebp - 0x1a4], 0
cmp dword [ebp - 0x244], 0
jne 0x4043a2
mov eax, dword [ebp - 0xcc]
movsx ecx, byte [eax]
cmp ecx, 0x41
je 0x4043a2
mov edx, dword [ebp - 0xcc]
movsx eax, byte [edx + 1]
cmp eax, 0x42
je 0x4043a2
push 4
lea ecx, [ebp - 0xd0]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00407220
add esp, 0xc
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x19c], 0
jbe 0x4043f9
push 4
push 0x44c134
mov eax, dword [ebp - 0xd0]
add eax, 0x1d4
push eax
call fcn.00407220
add esp, 0xc
mov ecx, dword [ebp - 0x19c]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x19c], 0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xf0]
mov dword [ebp - 0x244], eax
push 0x24
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.00407560
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x38], 1
jne 0x404557
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x1d8], 2
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xfffff
mov dword [ebp - 0x254], 0
jmp 0x404465
mov ecx, dword [ebp - 0x254]
add ecx, 1
mov dword [ebp - 0x254], ecx
mov edx, dword [ebp - 0x254]
cmp edx, dword [ebp - 0x24c]
jae 0x404484
mov eax, dword [ebp - 0x250]
add eax, 1
mov dword [ebp - 0x250], eax
jmp 0x404456
mov ecx, dword [ebp - 0x24c]
shl ecx, 1
cmp ecx, dword [ebp - 0x250]
jb 0x404546
push 0
push 0
push 3
push 0
push 0
push 2
push str.gdx72base_ini.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0xffffffff
je 0x4044e4
mov dword [ebp - 0x258], 0
push 0
lea edx, [ebp - 0x25c]
push edx
mov eax, dword [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x404523
mov edx, dword [ebp - 0xd0]
push edx
call fcn.004040e6
add esp, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xf0]
mov dword [0x44c630], ecx
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0xf0], 0
jle 0x404523
mov dword [ebp - 0x19c], 1
cmp dword [ebp - 0x19c], 1
jae 0x40453f
mov dword [ebp - 0x28], 0xff1a
mov dword [ebp - 0xd0], 0xfaf0
jmp 0x404544
mov eax, dword [ebp - 0x28]
jmp 0x404580
jmp 0x404557
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x1d8], 0
je 0x40457e
cmp dword [ebp - 0x19c], 0
jbe 0x40457e
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x9c], 0
mov eax, dword [ebp - 0x28]
jmp 0x404580
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret