Function at 0x40b880
Capabilities:
Check if file exists
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bccc
mov eax, dword fs:[0]
push eax
mov eax, 0x1ad8
call fcn.0055ece0
mov eax, dword [0x5ef220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1ac0], esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x6a8], ax
lea eax, [ebp - 0x6a6]
push eax
call fcn.0055c960
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x298], ax
lea eax, [ebp - 0x296]
push eax
call fcn.0055c960
add esp, 0x18
lea eax, [ebp - 0x298]
mov ecx, esi
push eax
call fcn.00402a30
push str.Config.ini
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x6a8]
push 0x104
push eax
call fcn.00558864
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x8e]
push eax
call fcn.0055c960
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, 1
add esp, 0x18
mov dword [ebp - 0x1abc], ebx
jmp 0x40b960
push ebx
lea eax, [ebp - 0x90]
push str.app_info_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xab8], ax
lea eax, [ebp - 0xab6]
push eax
call fcn.0055c960
add esp, 0x18
lea eax, [ebp - 0x6a8]
push eax
push 0x104
lea eax, [ebp - 0xab8]
push eax
push 0x5c52ec
push str.appfile
lea eax, [ebp - 0x90]
push eax
call edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x298], ax
lea eax, [ebp - 0x296]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x6a8]
push eax
push 0x104
lea eax, [ebp - 0x298]
push eax
push 0x5c52ec
push str.main
lea eax, [ebp - 0x90]
push eax
call edi
lea ecx, [ebp - 0x298]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ba04
sub ecx, edx
sar ecx, 1
je 0x40baf6
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x1ae4]
call fcn.0040f690
mov dword [ebp - 4], 0
mov dword [ebp - 0x1ad0], 0
mov dword [ebp - 0x1acc], 0
mov dword [ebp - 0x1ac8], 0
push 0x7c
lea edx, [ebp - 0x1ad0]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x298]
call fcn.0042a940
mov ebx, dword [ebp - 0x1acc]
add esp, 4
xor esi, esi
test ebx, ebx
jle 0x40bab8
mov edi, dword [ebp - 0x1ad0]
lea esp, [esp]
test esi, esi
js 0x40bcf0
cmp esi, ebx
jge 0x40bcf0
mov ecx, dword [edi]
call fcn.0042add0
test eax, eax
je 0x40baaa
push dword [edi]
push str.RunAppWithSpecificArea:_tFind_process____s__
call fcn.0042abd0
add esp, 8
inc esi
add edi, 4
cmp esi, ebx
jl 0x40ba80
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x1ad0]
call fcn.0040e110
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x1ae4]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40baea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1ac0]
mov ebx, dword [ebp - 0x1abc]
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1ab8], ax
lea eax, [ebp - 0x1ab6]
push eax
call fcn.0055c960
add esp, 0xc
lea eax, [ebp - 0x6a8]
push eax
push 0x800
lea eax, [ebp - 0x1ab8]
push eax
push 0x5c52ec
push str.arealist
lea eax, [ebp - 0x90]
push eax
call edi
lea ecx, [ebp - 0x1ab8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bb43
sub ecx, edx
sar ecx, 1
je 0x40bcc4
lea eax, [ebp - 0x1ab8]
push eax
lea ecx, [ebp - 0x1ac4]
call fcn.0040f690
mov dword [ebp - 4], 2
mov dword [ebp - 0x1adc], 0
mov dword [ebp - 0x1ad8], 0
mov dword [ebp - 0x1ad4], 0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x1adc]
mov ecx, dword [ebp - 0x1ac4]
push 0x7c
call fcn.0042a940
add esp, 4
lea ecx, [ebp - 0x1adc]
call fcn.0042bb00
test al, al
je 0x40bc92
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x4a0], ax
lea eax, [ebp - 0x49e]
push eax
call fcn.0055c960
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x4a0]
push 0x104
push eax
call fcn.00558864
add esp, 0x18
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0xab8]
push eax
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bc7e
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x8b0], ax
lea eax, [ebp - 0x8ae]
push eax
call fcn.0055c960
add esp, 0xc
lea edx, [ebp - 0x8b0]
lea ecx, [ebp - 0x4a0]
call fcn.0042aab0
push 1
lea eax, [ebp - 0x8b0]
push eax
push 0
lea eax, [ebp - 0x4a0]
push eax
push str.OPEN
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push str.RunAppWithSpecificArea:_tExit
call fcn.0042abd0
add esp, 4
jmp 0x40bc92
lea eax, [ebp - 0x4a0]
push eax
push str.RunAppWithSpecificArea:_tFile_not_exist____s__
call fcn.0042abd0
add esp, 8
lea ecx, [ebp - 0x1adc]
call fcn.0040e110
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x1ac4]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bcc4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
mov dword [ebp - 0x1abc], ebx
cmp ebx, 0xa
jl 0x40b960
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557f7f
mov esp, ebp
pop ebp
ret
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]