Function at 0x413720
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40c
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, ecx
push 0x10
call edi
mov ebx, eax
push 0x11
mov dword [esp + 0x18], ebx
call edi
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xac]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea eax, [esp + 0x20]
push 0x400
push eax
push 0x452ac0
push str.Resolution
push str.WELCOME
call edi
test eax, eax
jle 0x413781
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041c6ed
add esp, 4
test eax, eax
jne 0x4137c4
mov eax, dword [esi + 0xac]
mov ebp, 0x400
push eax
lea edx, [esp + 0x20]
push ebp
push edx
push 0x452ac0
push str.LARGEWIDTH_SCREENWIDTH
push str.OTHER
call edi
test eax, eax
jle 0x4137b7
lea eax, [esp + 0x1c]
push eax
call fcn.0041c6ed
add esp, 4
mov ebp, eax
cmp ebx, ebp
jge 0x4137d7
mov byte [esi + 0x9c], 0
jmp 0x4137de
cmp eax, 1
jne 0x4137d2
mov byte [esi + 0x9c], 0
jmp 0x4137de
cmp eax, 2
jne 0x4137de
mov byte [esi + 0x9c], 1
mov al, byte [esi + 0x9c]
test al, al
mov eax, dword [esi + 0xac]
push eax
push 0x400
je 0x4138e9
lea ecx, [esp + 0x24]
push ecx
push 0x452ac0
push str.LARGEWIDTH
push str.WELCOME
call edi
test eax, eax
jle 0x413825
lea edx, [esp + 0x1c]
push edx
call fcn.0041c6ed
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x41382d
mov dword [esp + 0x10], 0x320
mov eax, dword [esi + 0xac]
push eax
lea eax, [esp + 0x20]
push 0x400
push eax
push 0x452ac0
push str.LARGEHEIGHT
push str.WELCOME
call edi
test eax, eax
jle 0x413864
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041c6ed
add esp, 4
mov ebx, eax
jmp 0x413869
mov ebx, 0x226
mov eax, dword [esi + 0xac]
lea edx, [esp + 0x1c]
push eax
push 0x400
push edx
push 0x452ac0
push str.LARGEHORIZPOS
push str.WELCOME
call edi
test eax, eax
jle 0x4138a0
lea eax, [esp + 0x1c]
push eax
call fcn.0041c6ed
add esp, 4
mov ebp, eax
jmp 0x4138a5
mov ebp, 0x4b
mov eax, dword [esi + 0xac]
lea ecx, [esp + 0x1c]
push eax
push 0x400
push ecx
push 0x452ac0
push str.LARGEVERTPOS
push str.WELCOME
call edi
test eax, eax
jle 0x4138df
lea edx, [esp + 0x1c]
push edx
call fcn.0041c6ed
add esp, 4
mov ecx, eax
jmp 0x4139d2
mov ecx, 0x96
jmp 0x4139d2
lea eax, [esp + 0x24]
push eax
push 0x452ac0
push str.DEFAULTWIDTH
push str.WELCOME
call edi
test eax, eax
jle 0x413916
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041c6ed
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x41391e
mov dword [esp + 0x10], 0x258
mov eax, dword [esi + 0xac]
lea edx, [esp + 0x1c]
push eax
push 0x400
push edx
push 0x452ac0
push str.DEFAULTHEIGHT
push str.WELCOME
call edi
test eax, eax
jle 0x413955
lea eax, [esp + 0x1c]
push eax
call fcn.0041c6ed
add esp, 4
mov ebx, eax
jmp 0x41395a
mov ebx, 0x190
mov eax, dword [esi + 0xac]
lea ecx, [esp + 0x1c]
push eax
push 0x400
push ecx
push 0x452ac0
push str.DEFAULTHORIZPOS
push str.WELCOME
call edi
test eax, eax
jle 0x413991
lea edx, [esp + 0x1c]
push edx
call fcn.0041c6ed
add esp, 4
mov ebp, eax
jmp 0x413996
mov ebp, 0x32
mov eax, dword [esi + 0xac]
push eax
lea eax, [esp + 0x20]
push 0x400
push eax
push 0x452ac0
push str.DEFAULTVERTPOS
push str.WELCOME
call edi
test eax, eax
jle 0x4139cd
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041c6ed
add esp, 4
mov ecx, eax
jmp 0x4139d2
mov ecx, 0x64
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
sub eax, ebp
cmp edx, eax
jle 0x4139ed
mov dword [esp + 0x10], eax
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
mov ebp, eax
mov eax, dword [esp + 0x18]
sub eax, ecx
cmp ebx, eax
jl 0x413a02
mov ebx, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
mov edx, dword [esp + 0x10]
push 0x64
push ebx
push edx
push ecx
push ebp
push 0x454548
mov ecx, esi
call fcn.00431562
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x40c
ret