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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543100
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x594584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x431678
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00406850
mov dword [ebp - 4], 1
call fcn.0040c4c0
mov ecx, eax
test ecx, ecx
je 0x431a11
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 3
call fcn.0040c4c0
mov ecx, eax
test ecx, ecx
je 0x431a1b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
push ebx
mov byte [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406850
mov byte [ebp - 4], 5
call fcn.0040c4c0
mov ecx, eax
test ecx, ecx
je 0x431a25
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push 0x552050
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.0042f960
test al, al
jne 0x431716
push 4
push 0x552050
lea ecx, [ebp - 0x20]
call fcn.004122c0
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 7
test eax, eax
je 0x431a2f
mov esi, dword [ebp - 0x20]
push eax
push esi
call fcn.0051d948
add esp, 8
mov byte [ebp - 4], 5
test eax, eax
lea edx, [esi - 0x10]
sete byte [ebp - 0xd]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x431756
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x43181a
mov byte [ebp - 4], 8
call fcn.0040c4c0
mov ecx, eax
test ecx, ecx
je 0x431a39
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 9
jge 0x4317a6
push 0x104
lea ecx, [ebp - 0x18]
call fcn.0040d530
mov edi, dword [ebp - 0x18]
push 1
push edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00430300
add esp, 0x14
test edi, edi
jne 0x4317c5
xor eax, eax
jmp 0x4317d9
push dword [edi - 8]
push edi
call fcn.0051e3d5
add esp, 8
test eax, eax
js 0x431a43
cmp eax, dword [edi - 8]
jg 0x431a43
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], ecx
jne 0x4317fc
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0042f820
mov edx, dword [ebp - 0x20]
mov eax, esi
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43181a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi - 0xc], 0
lea ebx, [edi - 0x10]
mov esi, dword [ebp + 8]
jne 0x4318af
test esi, esi
jne 0x431832
xor ecx, ecx
jmp 0x431846
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431837
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.004122c0
mov edi, dword [ebp - 0x18]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x431877
push 0x104
lea ecx, [ebp - 0x18]
call fcn.0040d530
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ebx, [edi - 0x10]
test edi, edi
jne 0x431889
xor eax, eax
jmp 0x43189d
push dword [ebx + 8]
push edi
call fcn.0051e3d5
add esp, 8
test eax, eax
js 0x431a43
cmp eax, dword [ebx + 8]
jg 0x431a43
xor ecx, ecx
mov dword [ebx + 4], eax
mov word [edi + eax*2], cx
push esi
lea ecx, [ebp - 0x14]
call fcn.00406850
push dword [ebp - 0x14]
xorps xmm0, xmm0
mov byte [ebp - 4], 0xa
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x64], 0x3c
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x431948
mov eax, dword [ebp - 0x14]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or edx, ecx
jge 0x43191e
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0040d530
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], 0x104
jl 0x431a43
mov dword [eax - 0xc], 0x104
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + 0x208], cx
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x54], eax
mov eax, str.runas
cmove eax, ecx
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x60], 0x440
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edx, dword [ebp - 0x14]
or edi, 0xffffffff
mov dword [ebp - 0x24], eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x43199f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4319b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4319d0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4319e4
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4319fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00409540
push 0x80004005
call fcn.00409540
push 0x80004005
call fcn.00409540
push 0x80004005
call fcn.00409540
push 0x80004005
call fcn.00409540
push 0x80070057
call fcn.00409540
int3