Function at 0x410ccf
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x425958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov eax, dword [0x430b50]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x430b50
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x3c]
push ecx
lea edx, [esp + 0x18]
push str.LocalmutexPeerConfigurator:_s
push edx
mov dword [esp + 0x94], 0
call fcn.0040a140
mov ebx, dword [esp + 0x20]
add esp, 0xc
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
mov ebp, eax
jne 0x410e0a
call fcn.004073c0
test al, al
je 0x410d36
cmp ebp, 5
je 0x4112f9
mov eax, dword [0x430b50]
mov ecx, 0x430b50
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
push ebp
mov byte [esp + 0x8c], 1
call fcn.00418fa0
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx + 0x11]
push edx
call fcn.00418ee0
add esp, 4
push eax
lea eax, [esp + 0x28]
push str._s:__d
push eax
call fcn.0040a140
add esp, 0x10
push 0x40000
call fcn.00418fa0
inc eax
lea ecx, [eax + eax*4]
shl ecx, 1
push ecx
call fcn.00418ee0
mov edi, dword [esp + 0x28]
add esp, 4
push eax
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [edi - 0x10]
mov byte [esp + 0x88], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410dc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x430b50]
mov ecx, 0x430b50
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
push ebp
lea ecx, [esp + 0x20]
push str.CreateMutex:_0x_08x
push ecx
mov byte [esp + 0x94], 2
call fcn.0040a140
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push 6
mov ecx, esi
call fcn.0040afd0
mov eax, dword [esp + 0x1c]
jmp 0x411049
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, 0xb7
je 0x4112f9
mov eax, dword [0x430b50]
mov ecx, 0x430b50
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
push 0x428364
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 3
call fcn.0040da00
mov eax, dword [esi + 0x1c]
push 0x5c
push eax
mov byte [esp + 0x90], 4
call fcn.0041af8c
add esp, 8
test eax, eax
je 0x410f03
mov edx, dword [esi + 0x1c]
sub eax, edx
sar eax, 1
mov edi, eax
test edi, edi
jle 0x410f03
mov eax, edx
sub eax, 0x10
push eax
call fcn.00407f70
lea ebp, [eax + 0x10]
add esp, 4
mov dword [esp + 0x28], ebp
push edi
push 0
lea ecx, [esp + 0x2c]
push ecx
mov bl, 5
lea ecx, [esp + 0x34]
mov byte [esp + 0x94], bl
call fcn.00408b40
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 6
call fcn.0040a2d0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x88], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410edc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x88], 4
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410eff
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov ebx, dword [esp + 0x14]
push str.peerconf.exe
lea ecx, [esp + 0x20]
call fcn.004077f0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x94], 7
call fcn.00409430
add esp, 0xc
mov eax, dword [eax]
xor ebp, ebp
cmp eax, ebp
mov byte [esp + 0x88], 8
je 0x410f44
mov eax, dword [eax]
jmp 0x410f46
xor eax, eax
push eax
lea ecx, [esp + 0x14]
call fcn.0040da00
mov ecx, dword [esp + 0x24]
cmp ecx, ebp
je 0x410f61
call fcn.00408a50
mov dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
mov byte [esp + 0x88], 0xa
je 0x410f76
call fcn.00408a50
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x411073
mov edx, dword [0x430b50]
mov ecx, 0x430b50
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x88], 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push str.GetFileAttributes:__s__0x_08x
push ecx
call fcn.0040a140
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
push 6
mov ecx, esi
call fcn.0040afd0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x88], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410ff9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x88], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41101f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x88], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411045
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x88], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41106b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
jmp 0x411246
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x28]
push str._s__d__s
push edx
call fcn.0040a140
add esp, 0x10
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
push ebp
push eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x411280
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x430b50]
mov ecx, 0x430b50
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
push edi
push ebp
lea ecx, [esp + 0x24]
push str.CreateProcess:__s__0x_08x
mov bl, 0xd
push ecx
mov byte [esp + 0x98], bl
call fcn.0040a140
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
push 6
mov ecx, esi
call fcn.0040afd0
mov eax, dword [0x430b50]
mov ecx, 0x430b50
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
push edi
mov byte [esp + 0x8c], 0xe
call fcn.00418fa0
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx + 0x12]
push edx
call fcn.00418ee0
add esp, 4
push eax
lea eax, [esp + 0x30]
push str._s:__d
push eax
call fcn.0040a140
add esp, 0x10
push 0x40000
call fcn.00418fa0
inc eax
lea ecx, [eax + eax*4]
shl ecx, 1
push ecx
call fcn.00418ee0
mov esi, dword [esp + 0x30]
add esp, 4
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
mov byte [esp + 0x88], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4111ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x88], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4111d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x88], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4111f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x88], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41121d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x88], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41123f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x88], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411268
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x88], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4112b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x88], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4112d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x88], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4112f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x88], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41131e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x7c
ret