Function at 0x4312d0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1889
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4cc0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x9c]
xorps xmm0, xmm0
push 0x1e
push 0x4bfc40
movups xmmword [ebp - 0x50], xmm0
movups xmmword [ebp - 0x40], xmm0
movq qword [ebp - 0x30], xmm0
call fcn.00431a80
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x431333
mov edx, dword [edx]
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
cmp byte [edx], 0
jne 0x43134e
xor ecx, ecx
jmp 0x43135c
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431353
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x6c]
call fcn.00409600
push 0xffffffffffffffff
mov byte [ebp - 4], 1
lea eax, [ebp - 0x6c]
push 0
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x50], reloc.WS2_32.dll_accept
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
call fcn.00409700
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x58]
cmp eax, 0x10
jb 0x4313ba
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.00409a60
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x88]
cmp eax, 0x10
jb 0x4313ee
inc eax
lea ecx, [ebp - 0x9c]
push eax
push dword [ebp - 0x9c]
call fcn.00409a60
push 4
push str.Path
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
mov dword [ebp - 0x70], 0xf
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x84], 0
call fcn.00409600
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x50]
call fcn.00436ff0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x70]
cmp eax, 0x10
jb 0x431466
inc eax
lea ecx, [ebp - 0x84]
push eax
push dword [ebp - 0x84]
call fcn.00409a60
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x70], 0xf
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x84], 0
je 0x431574
push 1
push 0x4c0fa8
lea ecx, [ebp - 0x28]
call fcn.004133f0
push 0xf
push 0x4bfc60
lea ecx, [ebp - 0x9c]
call fcn.00431a80
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 0x10
jb 0x4314b4
mov edx, dword [edx]
cmp byte [edx], 0
jne 0x4314bd
xor ecx, ecx
jmp 0x4314cb
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4314c2
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004133f0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x88]
cmp eax, 0x10
jb 0x4314f7
inc eax
lea ecx, [ebp - 0x9c]
push eax
push dword [ebp - 0x9c]
call fcn.00409a60
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x431574
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00432040
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x431530
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x431538
mov eax, dword [eax]
push 3
push 0
push esi
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0xa0]
mov esi, eax
cmp ecx, 8
jb 0x43156b
inc ecx
push ecx
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xb4]
call fcn.00406ec0
mov byte [ebp - 0x51], 1
cmp esi, 0x20
ja 0x431578
mov byte [ebp - 0x51], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x43158d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409a60
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
test eax, eax
je 0x4315b4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x38]
cmp ecx, 0x10
jb 0x4315c9
inc ecx
push ecx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x4c]
call fcn.00409a60
mov al, byte [ebp - 0x51]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00442377
mov esp, ebp
pop ebp
ret