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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ded0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x58f574]
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 0x4316c8
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.0040c500
mov ecx, eax
test ecx, ecx
je 0x431a61
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 3
call fcn.0040c500
mov ecx, eax
test ecx, ecx
je 0x431a6b
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.0040c500
mov ecx, eax
test ecx, ecx
je 0x431a75
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push 0x54d060
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.0042f9b0
test al, al
jne 0x431766
push 4
push 0x54d060
lea ecx, [ebp - 0x20]
call fcn.00412300
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 7
test eax, eax
je 0x431a7f
mov esi, dword [ebp - 0x20]
push eax
push esi
call fcn.00518708
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 0x4317a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x43186a
mov byte [ebp - 4], 8
call fcn.0040c500
mov ecx, eax
test ecx, ecx
je 0x431a89
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 0x4317f6
push 0x104
lea ecx, [ebp - 0x18]
call fcn.0040d570
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.00430350
add esp, 0x14
test edi, edi
jne 0x431815
xor eax, eax
jmp 0x431829
push dword [edi - 8]
push edi
call fcn.00519195
add esp, 8
test eax, eax
js 0x431a93
cmp eax, dword [edi - 8]
jg 0x431a93
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 0x43184c
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0042f870
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 0x43186a
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 0x4318ff
test esi, esi
jne 0x431882
xor ecx, ecx
jmp 0x431896
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431887
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.00412300
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 0x4318c7
push 0x104
lea ecx, [ebp - 0x18]
call fcn.0040d570
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ebx, [edi - 0x10]
test edi, edi
jne 0x4318d9
xor eax, eax
jmp 0x4318ed
push dword [ebx + 8]
push edi
call fcn.00519195
add esp, 8
test eax, eax
js 0x431a93
cmp eax, dword [ebx + 8]
jg 0x431a93
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 0x431998
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 0x43196e
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0040d570
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 0x431a93
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 0x4319ef
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 0x431a09
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 0x431a20
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 0x431a34
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 0x431a4c
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