Function at 0x4077c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x428a11
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x43e6bc]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43e6bc]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov esi, dword [esp + 0x158]
call fcn.0040d647
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40781c
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x150], 0
call fcn.0040d647
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407851
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
push 0x104
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x158], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4078df
push str.Error_:_Get_windows_path_error_n
call fcn.00403d60
lea eax, [ebx - 0x10]
add esp, 4
mov byte [esp + 0x150], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4078ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x150], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4078d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x4e25
jmp 0x407af1
mov eax, dword [esp + 0x15c]
test eax, eax
jbe 0x407aa4
lea ebp, [esi + 0x80]
mov dword [esp + 0x18], eax
jmp 0x407900
cmp dword [ebp + 0x148], 0
je 0x407a8f
cmp dword [ebp + 0x140], 2
jne 0x407936
mov edi, 0x42ba5c
lea esi, [ebp - 0x40]
mov ecx, 7
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x407936
cmp byte [0x461330], 1
je 0x407a8f
mov edi, 0xf
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407953
sub eax, edx
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x2c]
call fcn.00403070
mov eax, ebp
mov byte [esp + 0x150], 2
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407980
sub eax, edx
je 0x4079a1
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407992
sub eax, edx
push eax
push ebp
jmp 0x4079a8
push 0x11
push str._system32drivers
lea ecx, [esp + 0x2c]
call fcn.00402f80
push 1
push 0x42b460
lea ecx, [esp + 0x2c]
call fcn.00402f80
lea ecx, [ebp - 0x80]
mov eax, ecx
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4079d0
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00402f80
mov eax, dword [esp + 0x28]
mov esi, 0x10
cmp dword [esp + 0x3c], esi
jae 0x4079f9
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push str._nInfo__:_Remove_file___s__n
push ecx
call fcn.004034f0
mov ebx, dword [esp + 0x20]
push ebx
call fcn.00403d60
mov eax, dword [esp + 0x38]
add esp, 0x10
cmp dword [esp + 0x3c], esi
jae 0x407a24
lea eax, [esp + 0x28]
push eax
call fcn.00401b50
add esp, 4
test al, al
jne 0x407a56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x18]
push str.Error_:_Remove_file_fail__err:__d_n
push edx
call fcn.004034f0
mov ebx, dword [esp + 0x20]
push ebx
call fcn.00403d60
add esp, 0x10
jmp 0x407a63
push str.Info__:_Remove_file_OK._n
call fcn.00403d60
add esp, 4
cmp dword [esp + 0x3c], esi
mov byte [esp + 0x150], 1
jb 0x407a7e
mov eax, dword [esp + 0x28]
push eax
call fcn.0040d16a
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
add ebp, 0x1cc
sub dword [esp + 0x18], 1
jne 0x407900
mov edi, dword [esp + 0x1c]
lea eax, [ebx - 0x10]
mov byte [esp + 0x150], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ac8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x150], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407aef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0041613d
add esp, 0x140
ret