Function at 0x4075f0
Capabilities:
Check if file exists
Create process on windows
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x42c6a0]
xor eax, ebp
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x484], ecx
lea ecx, [ebp - 4]
call fcn.00410cc0
lea ecx, [ebp - 0xc]
call fcn.00410cc0
mov ecx, dword [ebp - 0x484]
add ecx, 0x68
call fcn.00409d40
push eax
lea ecx, [ebp - 4]
call fcn.00409310
mov ecx, dword [ebp - 0x484]
add ecx, 0x6c
call fcn.00409d40
push eax
lea ecx, [ebp - 0xc]
call fcn.00409310
mov eax, dword [ebp - 0x484]
movzx ecx, byte [eax + 0x70]
test ecx, ecx
jne 0x407671
lea ecx, [ebp - 4]
call fcn.00409370
test eax, eax
je 0x407671
lea ecx, [ebp - 0xc]
call fcn.00409370
test eax, eax
jne 0x4076f6
lea ecx, [ebp - 0x40]
call fcn.00411030
mov edx, dword [ebp - 0x484]
add edx, 0x54
push edx
lea ecx, [ebp - 0x1c]
call fcn.00409740
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409640
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00409640
push 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x40]
call fcn.00409c20
cmp eax, 1
je 0x4076d6
lea ecx, [ebp - 0x40]
call fcn.00411070
lea ecx, [ebp - 0xc]
call fcn.00401130
lea ecx, [ebp - 4]
call fcn.00401130
jmp 0x407ae5
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 4]
call fcn.00409640
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
call fcn.00409640
lea ecx, [ebp - 0x40]
call fcn.00411070
push 0x11
push 0x10
push 0
mov ecx, dword [ebp - 0x484]
call fcn.00406170
cmp dword [ebp - 0x484], 0
je 0x407721
mov ecx, dword [ebp - 0x484]
add ecx, 0x28
mov dword [ebp - 0x488], ecx
jmp 0x40772b
mov dword [ebp - 0x488], 0
mov ecx, dword [ebp - 0x484]
add ecx, 0x5c
call fcn.00409d40
mov dword [ebp - 0x48c], eax
mov edx, dword [ebp - 0x488]
push edx
lea ecx, [ebp - 0xc]
call fcn.00409d40
push eax
lea ecx, [ebp - 4]
call fcn.00409d40
push eax
mov eax, dword [ebp - 0x48c]
push eax
mov ecx, dword [ebp - 0x48c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x4078d3
cmp dword [ebp - 8], 0
jne 0x4078b6
lea ecx, [ebp - 4]
call fcn.00409d40
push eax
push 0xd
push 0
mov ecx, dword [ebp - 0x484]
call fcn.00406350
xor ecx, ecx
mov word [ebp - 0x250], cx
push 0x206
push 0
lea edx, [ebp - 0x24e]
push edx
call fcn.00417120
add esp, 0xc
push 0x104
lea eax, [ebp - 0x250]
push eax
push 0x4259e4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
mov word [ebp - 0x458], cx
push 0x206
push 0
lea edx, [ebp - 0x456]
push edx
call fcn.00417120
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
push 0x104
lea ecx, [ebp - 0x458]
push ecx
call fcn.004170a0
add esp, 0xc
push 0x425a0c
lea edx, [ebp - 0x458]
push edx
call fcn.004027a0
add esp, 8
lea eax, [ebp - 0x458]
push eax
push 0
push 0x425a30
push 0x425a44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x4078b4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x460], 0
jmp 0x40786d
mov ecx, dword [ebp - 0x460]
add ecx, 1
mov dword [ebp - 0x460], ecx
cmp dword [ebp - 0x460], 0xa
jge 0x4078b4
lea ecx, [ebp - 0xc]
call fcn.00409d40
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4078a7
push 5
push 0
push 0
lea ecx, [ebp - 0xc]
call fcn.00409d40
push eax
push 0x425a60
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4078b4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40785e
jmp 0x4078ce
lea ecx, [ebp - 4]
call fcn.00409d40
push eax
push 0xf
push 0
mov ecx, dword [ebp - 0x484]
call fcn.00406350
jmp 0x407ad5
cmp dword [ebp - 8], 0xeeee0001
jne 0x4079c5
lea ecx, [ebp - 0x464]
call fcn.00410cc0
mov ecx, dword [ebp - 0x484]
add ecx, 0x54
call fcn.00409d40
mov dword [ebp - 0x490], eax
lea ecx, [ebp - 0x464]
call fcn.00409e40
push eax
push 0xb
mov edx, dword [ebp - 0x490]
push edx
mov eax, dword [ebp - 0x490]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
call edx
push 0x425a6c
lea ecx, [ebp - 0x46c]
call fcn.0040a6f0
lea ecx, [ebp - 0x464]
call fcn.00409d40
push eax
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 4]
call fcn.00409d40
push eax
lea ecx, [ebp - 0x470]
push ecx
call fcn.0040abe0
push eax
lea edx, [ebp - 0x474]
push edx
call fcn.0040aa90
mov ecx, eax
call fcn.00409d40
push eax
lea ecx, [ebp - 0x464]
call fcn.00409310
lea ecx, [ebp - 0x474]
call fcn.00403310
lea ecx, [ebp - 0x470]
call fcn.00403310
lea ecx, [ebp - 0x46c]
call fcn.00403310
lea ecx, [ebp - 0x464]
call fcn.00409d40
push eax
push 0xe
push 0
mov ecx, dword [ebp - 0x484]
call fcn.00406350
lea ecx, [ebp - 0x464]
call fcn.00401130
jmp 0x407ad5
cmp dword [ebp - 8], 0xeeee0002
jne 0x407ab4
lea ecx, [ebp - 0x468]
call fcn.00410cc0
mov ecx, dword [ebp - 0x484]
add ecx, 0x54
call fcn.00409d40
mov dword [ebp - 0x494], eax
lea ecx, [ebp - 0x468]
call fcn.00409e40
push eax
push 0x1c
mov eax, dword [ebp - 0x494]
push eax
mov ecx, dword [ebp - 0x494]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
push 0x425a74
lea ecx, [ebp - 0x478]
call fcn.0040a6f0
lea ecx, [ebp - 0x468]
call fcn.00409d40
push eax
lea ecx, [ebp - 0x478]
push ecx
lea ecx, [ebp - 4]
call fcn.00409d40
push eax
lea edx, [ebp - 0x47c]
push edx
call fcn.0040abe0
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.0040aa90
mov ecx, eax
call fcn.00409d40
push eax
lea ecx, [ebp - 0x468]
call fcn.00409310
lea ecx, [ebp - 0x480]
call fcn.00403310
lea ecx, [ebp - 0x47c]
call fcn.00403310
lea ecx, [ebp - 0x478]
call fcn.00403310
lea ecx, [ebp - 0x468]
call fcn.00409d40
push eax
push 0xe
push 0
mov ecx, dword [ebp - 0x484]
call fcn.00406350
lea ecx, [ebp - 0x468]
call fcn.00401130
jmp 0x407ad5
cmp dword [ebp - 8], 0x80004004
je 0x407ad5
lea ecx, [ebp - 4]
call fcn.00409d40
push eax
push 0xe
push 0
mov ecx, dword [ebp - 0x484]
call fcn.00406350
lea ecx, [ebp - 0xc]
call fcn.00401130
lea ecx, [ebp - 4]
call fcn.00401130
mov ecx, dword [ebp - 0x44]
xor ecx, ebp
call fcn.0041710f
mov esp, ebp
pop ebp
ret