Function at 0x525950
Capabilities:
Check os version
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
mov eax, dword [0x68b740]
xor eax, ebp
mov dword [ebp - 0x14], eax
push 0x5260a0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
jmp 0x525980
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x120]
push ecx
call sub.MSVCR80.dll_strlen
add esp, 4
sub eax, 1
mov dword [ebp - 0x234], eax
jmp 0x5259bd
mov edx, dword [ebp - 0x234]
sub edx, 1
mov dword [ebp - 0x234], edx
cmp dword [ebp - 0x234], 0
jle 0x5259eb
mov eax, dword [ebp - 0x234]
movsx ecx, byte [ebp + eax - 0x120]
cmp ecx, 0x5c
jne 0x5259e9
mov edx, dword [ebp - 0x234]
mov byte [ebp + edx - 0x11f], 0
jmp 0x5259eb
jmp 0x5259ae
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x230]
push ecx
call sub.MSVCR80.dll_strcpy
add esp, 8
push 0x63c164
lea edx, [ebp - 0x230]
push edx
call sub.MSVCR80.dll_strcat
add esp, 8
mov eax, dword [0x6de404]
mov dword [ebp - 0x3f4], eax
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x3f4]
push edx
push 0x6469b4
push 0x6469ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
mov eax, dword [0x6de400]
mov dword [ebp - 0x3fc], eax
cmp dword [ebp - 0x3fc], 0
jl 0x525a5e
cmp dword [ebp - 0x3fc], 4
jle 0x525a60
jmp 0x525aab
cmp dword [ebp - 0x10], 0
jl 0x525a6c
cmp dword [ebp - 0x10], 5
jle 0x525a6e
jmp 0x525aab
mov ecx, dword [ebp - 0x3fc]
mov dword [0x6de400], ecx
mov edx, dword [ebp - 0x10]
mov dword [0x6de404], edx
cmp dword [0x6de404], 0
jne 0x525aab
mov dword [ebp - 0x3f8], 2
mov dword [ebp - 0x3f8], 5
mov eax, dword [ebp - 0x3f8]
mov dword [0x6de404], eax
push 2
mov ecx, 0x6de3e4
call fcn.00525e30
test eax, eax
jne 0x525ad7
push 0
push 0x643b20
push 0x646990
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
jmp 0x525e17
mov ecx, 0x6de340
call fcn.00528340
test eax, eax
jne 0x525af7
mov ecx, 0x6de340
call fcn.00528480
or eax, 0xffffffff
jmp 0x525e17
lea ecx, [ebp - 0x230]
push ecx
push 0
push 0x646984
push 0x63bd24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x525b52
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x340]
push eax
call sub.MSVCR80.dll_strcpy
add esp, 8
push 0x63d460
lea ecx, [ebp - 0x340]
push ecx
call sub.MSVCR80.dll_strcat
add esp, 8
lea edx, [ebp - 0x340]
push edx
call fcn.00525750
add esp, 4
lea eax, [ebp - 0x230]
push eax
push 0
push 0x63b788
push 0x63bd24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x525c36
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x525c36
push 0x646974
lea ecx, [ebp - 0x120]
push ecx
call sub.MSVCR80.dll_strcat
add esp, 8
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x230]
push eax
call sub.MSVCR80.dll_strcpy
add esp, 8
push 0x646970
lea ecx, [ebp - 0x230]
push ecx
call sub.MSVCR80.dll_strcat
add esp, 8
push 0x44
push 0
lea edx, [ebp - 0x398]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0x350]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x398], 0x44
lea ecx, [ebp - 0x350]
push ecx
lea edx, [ebp - 0x398]
push edx
push 0
push 0
push 0x4000000
push 1
push 0
push 0
lea eax, [ebp - 0x230]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x525c36
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x350]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 1], 0
mov edx, dword [ebp + 0x10]
movsx eax, byte [edx]
cmp eax, 0x2d
je 0x525c54
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx]
cmp edx, 0x2f
jne 0x525cdd
mov eax, dword [ebp + 0x10]
add eax, 1
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx]
mov dword [ebp - 0x52c], edx
mov eax, dword [ebp + 0x10]
add eax, 1
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x52c]
mov dword [ebp - 0x530], ecx
cmp dword [ebp - 0x530], 0x43
je 0x525c92
cmp dword [ebp - 0x530], 0x63
je 0x525c92
jmp 0x525c96
mov byte [ebp - 1], 1
mov edx, dword [ebp + 0x10]
movsx eax, byte [edx]
cmp eax, 0x20
je 0x525ccd
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx]
cmp edx, 0xd
je 0x525ccd
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax]
cmp ecx, 0xa
je 0x525ccd
mov edx, dword [ebp + 0x10]
movsx eax, byte [edx]
cmp eax, 9
je 0x525ccd
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx]
cmp edx, 0x78
jne 0x525cd8
mov eax, dword [ebp + 0x10]
add eax, 1
mov dword [ebp + 0x10], eax
jmp 0x525c96
jmp 0x525c3a
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x525ceb
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov edx, dword [ebp + 8]
mov dword [0x6de308], edx
push 0x646968
mov eax, dword [ebp + 8]
push eax
mov ecx, 0x6de340
call dword [sym.imp.engine.dll_public_virtual:_int___thiscall_KWin32App::Init_struct_HINSTANCE_____char__]
test eax, eax
je 0x525d17
mov ecx, 0x6de340
call dword [sym.imp.engine.dll_public_virtual:_void___thiscall_KWin32App::Run_void_]
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x525d25
call dword [sym.imp.KERNEL32.dll_FreeConsole]
call fcn.00401030
cmp dword [ebp - 0xc], 0
je 0x525dac
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x525dac
push 0x44
push 0
lea edx, [ebp - 0x3f0]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0x3a8]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x3f0], 0x44
lea ecx, [ebp - 0x3a8]
push ecx
lea edx, [ebp - 0x3f0]
push edx
push 0
push 0
push 0x4000000
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x525dac
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x3a8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x124], 0x646944
xor edx, edx
cmp dword [0x6de400], 4
sete dl
test edx, edx
je 0x525dd0
mov dword [ebp - 0x124], 0x646924
mov ecx, 0x6de340
call fcn.005266b0
test eax, eax
je 0x525def
mov eax, dword [ebp - 0x124]
push eax
mov ecx, 0x6de340
call fcn.00526750
mov ecx, 0x6de340
call fcn.00528480
mov ecx, 0x6de3e4
call fcn.00526030
jmp 0x525e15
xor eax, eax
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00612c78
mov esp, ebp
pop ebp
ret 0x10