Function at 0x50c630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c811
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa4], 0
nop dword [eax + eax]
mov al, byte [0x60f829]
test al, al
jne 0x50ca76
mov esi, dword [0x611844]
push 0
call fcn.00576330
sub eax, 0x1e
add esp, 4
cmp esi, eax
jge 0x50ca76
call fcn.0050d310
push 0x61192c
mov esi, eax
call fcn.0053ccb0
add esp, 4
test eax, eax
je 0x50c6b9
push eax
call fcn.0053c794
add esp, 4
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x50c6c7
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x61192c
mov dword [ebp - 4], 0
call fcn.0053ccd5
add esp, 4
test eax, eax
je 0x50c6e8
push eax
call fcn.0053c794
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0xa6], ax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xa6]
push eax
push ecx
lea ecx, [ebp - 0xc0]
call fcn.004b7570
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0x11
xor eax, eax
mov dword [ebp - 0x14], 7
push str.System32cmd.exe
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004a96a0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0xc0]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x50c7ae
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
cmp word [esi], ax
jne 0x50c77e
xor ecx, ecx
jmp 0x50c792
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50c783
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x70]
call fcn.004a96a0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x70]
mov ebx, dword [ebp - 0xa4]
or ebx, 1
jmp 0x50c7e4
push 0xa
xor eax, eax
mov dword [ebp - 0x2c], 7
push str.C:Windows
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.004a96a0
mov dword [ebp - 4], 4
lea edx, [ebp - 0x40]
mov ebx, dword [ebp - 0xa4]
or ebx, 2
lea eax, [ebp - 0x28]
mov dword [ebp - 0xa4], ebx
push eax
lea ecx, [ebp - 0x88]
call fcn.004dd240
add esp, 4
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x50c837
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x50c81a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x14], 7
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004a9850
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x50c852
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
test bl, 2
je 0x50c8a0
mov eax, dword [ebp - 0x2c]
and ebx, 0xfffffffd
mov dword [ebp - 0xa4], ebx
cmp eax, 8
jb 0x50c88c
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 2
test bl, 1
je 0x50c8ca
mov eax, dword [ebp - 0x5c]
and ebx, 0xfffffffe
mov dword [ebp - 0xa4], ebx
cmp eax, 8
jb 0x50c8ca
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004a9d40
xor eax, eax
mov word [ebp - 0xa8], ax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xa8]
push eax
push ecx
lea ecx, [ebp - 0xb4]
call fcn.004b7570
push 0x104
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0xb4]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [edi], ax
jne 0x50c92d
xor ecx, ecx
jmp 0x50c941
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x50c932
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x58]
call fcn.004a96a0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
mov edx, str._c__timeout_5__del
lea ecx, [ebp - 0xa0]
call fcn.004b06d0
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.00518120
mov eax, dword [ebp - 0x8c]
add esp, 4
cmp eax, 8
jb 0x50c992
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x90], 0
cmp eax, 8
jb 0x50c9c4
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0xb4]
mov eax, dword [ebp - 0xac]
sub eax, edi
mov dword [ebp - 0x48], 0
sar eax, 1
push eax
push edi
call fcn.004a9d40
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
cmp eax, 8
jb 0x50ca22
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x50ca76
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xc0]
sub eax, esi
sar eax, 1
push eax
push esi
call fcn.004a9d40
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
call fcn.0050d310
push 0x61192c
mov esi, eax
call fcn.0053ccb0
add esp, 4
test eax, eax
je 0x50ca97
push eax
call fcn.0053c794
add esp, 4
mov esi, dword [esi + 0x1c]
push 0x61192c
mov dword [ebp - 4], 9
call fcn.0053ccd5
add esp, 4
test eax, eax
je 0x50cabb
push eax
call fcn.0053c794
add esp, 4
push 0x3e8
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x50c670
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret