Function at 0x450770
Capabilities:
Check if file exists
Create process on windows
Read .ini file
Set current directory

Disassembly:
sub esp, 0x138
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x134], eax
mov dword [esp], ecx
call fcn.00481510
mov edx, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
cmp eax, str.LEDIT32
jne 0x450cbe
push ebx
push ebp
push edi
call fcn.00403410
mov edx, dword [0x514540]
mov ebx, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x514540
call eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add eax, 0x10
mov dword [esp + 0x10], eax
xor edi, edi
push esi
mov edi, edi
push edi
push str.Tool
lea ecx, [esp + 0x1c]
push str._s_d
push ecx
call fcn.00402950
mov edx, dword [esp + 0x24]
add esp, 0x10
push ebx
push 0xbc614e
push str.Count
push edx
call ebp
mov dword [esp + 0x18], eax
cmp eax, 0xbc614e
je 0x450852
test eax, eax
je 0x450852
xor esi, esi
test eax, eax
jle 0x450852
nop
push esi
push edi
push str.Tool
lea eax, [esp + 0x20]
push str._s_d_d
push eax
call fcn.00402950
mov ecx, dword [esp + 0x28]
add esp, 0x14
push ebx
push 0xbc614e
push str.UniqueID
push ecx
call ebp
cmp eax, 0xbc614e
je 0x45084b
cmp eax, dword [esp + 0x14c]
je 0x450861
inc esi
cmp esi, dword [esp + 0x18]
jl 0x450810
inc edi
cmp edi, 0xa
jl 0x4507d0
jmp 0x450c9a
lea ecx, [esp + 0x20]
call fcn.0044d3b0
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push ebp
push ebx
call fcn.0044eca0
mov eax, dword [esp + 0x60]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
cmp eax, 2
jne 0x4508db
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.0046f1f0
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
test eax, eax
je 0x4508b8
push 0xe103
jmp 0x4508bd
push 0xe104
push 0x111
push esi
call ebx
cmp eax, 2
jne 0x450910
lea ecx, [esp + 0x20]
call fcn.0044d5a0
lea eax, [ebp - 0x10]
jmp 0x450ca1
cmp eax, 3
jne 0x45090c
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
push 0
push 0x4d2
push 0x111
push edx
call ebx
cmp eax, 2
jne 0x45090c
lea ecx, [esp + 0x20]
call fcn.0044d5a0
lea eax, [ebp - 0x10]
jmp 0x450ca1
mov edi, dword [esp + 0x10]
cmp byte [esp + 0x49], 0
je 0x450995
mov edx, dword [0x5144c8]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x20
lea ecx, [esp + 0x88]
push ecx
push 0x3aa1
push edx
call esi
mov ecx, dword [0x5144c8]
push 0x40
lea eax, [esp + 0xc8]
push eax
push 0x3aa2
push ecx
call esi
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x60]
call fcn.0041a860
mov ecx, dword [edi + 8]
push 0
push ecx
lea ecx, [esp + 0x60]
call fcn.00419dd0
cmp eax, 1
jne 0x450a37
mov edx, dword [esp + 0x78]
push edx
lea ecx, [esp + 0x2c]
call fcn.00402a90
lea ecx, [esp + 0x58]
call fcn.00419940
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.00450440
lea edx, [esp + 0x28]
push edx
mov ecx, edi
call fcn.00450440
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call fcn.00450440
mov ecx, dword [esp + 0x2c]
cmp dword [ecx - 0xc], 0
jne 0x450a08
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
call fcn.0040cf30
lea ecx, [esp + 0x10]
call fcn.00417210
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
call fcn.00402640
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450a08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
push eax
call fcn.00401b40
mov ebp, eax
add ebp, 0x10
add esp, 4
cmp dword [ebp - 0xc], 0
mov dword [esp + 0x10], ebp
jne 0x450a51
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402640
jmp 0x450aa2
lea ecx, [esp + 0x58]
call fcn.00419940
lea ecx, [esp + 0x20]
call fcn.0044d5a0
lea eax, [ebp - 0x10]
jmp 0x450ca1
mov edx, dword [esp + 0x28]
cmp dword [edx - 0xc], 0
je 0x450aa6
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push 0x4bee48
push ecx
call fcn.0042cc50
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
add esp, 0xc
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.004020b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450aa2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
cmp eax, 2
jne 0x450b69
mov ecx, dword [edi + 0x254]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x450ad5
mov edx, dword [edi + 0x254]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x450ae7
mov eax, dword [edi + 8]
push 0
push 0x52d
push 0x111
push eax
call ebx
mov ecx, edi
call fcn.004819e0
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x2c]
mov dword [edi + 0x2a4], ecx
cmp dword [esi - 0xc], 0
je 0x450b0d
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [esp + 0x2c]
lea ecx, [edi + 0x2a0]
test esi, esi
jne 0x450b1b
xor eax, eax
jmp 0x450b2f
mov eax, esi
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x450b20
sub eax, ebx
sar eax, 1
push eax
push esi
call fcn.00402140
push ebp
lea ecx, [edi + 0x280]
call fcn.00435980
cmp byte [esp + 0x48], 0
je 0x450c75
mov eax, dword [esp + 0x38]
push 3
lea edx, [esp + 0x40]
push edx
push eax
lea ecx, [edi + 0x250]
call fcn.004880b0
jmp 0x450c75
cmp eax, 8
jne 0x450b9e
call fcn.0044dbb0
mov esi, eax
mov ecx, esi
call fcn.00486470
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], 0x450200
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.0044e6b0
mov edx, dword [esp + 0x50]
mov dword [esi + 0x24], edx
jmp 0x450c6d
cmp eax, 3
je 0x450bf4
cmp eax, 4
je 0x450bf4
cmp eax, 5
je 0x450bf4
cmp eax, 6
je 0x450bf4
mov edx, dword [esp + 0x2c]
xor ecx, ecx
cmp eax, 7
mov eax, dword [esp + 0x28]
setne cl
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [edi + 8]
push eax
push ecx
push str.open
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x450be8
call fcn.004379b0
jmp 0x450c75
mov ecx, edi
call fcn.0047d7c0
jmp 0x450c75
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
cmp eax, str.LEDIT32
jne 0x450c75
call fcn.0044dbb0
mov esi, eax
mov ecx, esi
call fcn.00486470
mov ecx, edi
call fcn.00457ff0
mov ecx, dword [esp + 0x4c]
cmp ecx, 3
jne 0x450c2f
mov dword [esi + 0x2c], 0x44d660
jmp 0x450c57
cmp ecx, 4
jne 0x450c3d
mov dword [esi + 0x2c], 0x44d690
jmp 0x450c57
cmp ecx, 5
jne 0x450c4b
mov dword [esi + 0x2c], 0x44d700
jmp 0x450c57
cmp ecx, 6
jne 0x450c5a
mov dword [esi + 0x2c], 0x44d7c0
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x2c]
push eax
mov ecx, esi
call fcn.0044e6b0
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x24], ecx
push ebp
mov ecx, esi
call fcn.00435980
lea eax, [ebp - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x450c91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
call fcn.0044d5a0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450cba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0049e9d2
add esp, 0x138
ret 4