Function at 0x408350
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42b446
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4424ac]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4424ac]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov esi, dword [esp + 0x154]
call fcn.0040f25f
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4083ae
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 + 0x14], edi
push 0x104
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x154], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x408417
push str.Error_:_Get_windows_path_error_n
call fcn.00404950
lea eax, [edi - 0x10]
add esp, 4
mov dword [esp + 0x14c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40840d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x4e25
jmp 0x40860a
cmp dword [esp + 0x158], ebx
mov dword [esp + 0x1c], ebx
jbe 0x4085e1
lea ebp, [esi + 0x80]
mov edi, edi
cmp dword [ebp + 0x14c], ebx
je 0x4085bf
cmp dword [ebp + 0x144], 2
jne 0x408465
mov edi, 0x42e8f8
lea esi, [ebp - 0x40]
mov ecx, 7
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408465
cmp byte [0x481f90], 1
je 0x4085bf
mov esi, 0xf
lea eax, [esp + 0x3c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408480
sub eax, edx
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
call fcn.004039d0
cmp ebp, ebx
mov byte [esp + 0x14c], 1
mov dword [esp + 0x18], ebx
je 0x4084c4
lea edi, [esp + 0x18]
mov ecx, 0x104
mov edx, ebp
call fcn.00401c40
cmp eax, ebx
jl 0x4084c9
mov ecx, dword [esp + 0x18]
jmp 0x4084cb
mov eax, 0x80070057
xor ecx, ecx
cmp eax, ebx
jne 0x408632
cmp ecx, 0x102
ja 0x408632
cmp ecx, ebx
jbe 0x4084f7
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4084e8
sub eax, edx
push eax
push ebp
jmp 0x4084fe
push 0x11
push str._system32drivers
lea ecx, [esp + 0x28]
call fcn.00403e70
push 1
push 0x42e478
lea ecx, [esp + 0x28]
call fcn.00403e70
lea ecx, [ebp - 0x80]
mov eax, ecx
lea esi, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x408520
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00403e70
mov eax, dword [esp + 0x24]
mov esi, 0x10
cmp dword [esp + 0x38], esi
jae 0x408549
lea eax, [esp + 0x24]
push eax
push str._nInfo__:_Remove_file___s__n
call fcn.00404950
mov eax, dword [esp + 0x2c]
add esp, 8
cmp dword [esp + 0x38], esi
jae 0x408565
lea eax, [esp + 0x24]
push eax
call fcn.00401df0
add esp, 4
test al, al
jne 0x408588
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Info_:_Remove_file_fail__info:__d_n
call fcn.00404950
add esp, 8
jmp 0x408595
push str.Info__:_Remove_file_OK._n
call fcn.00404950
add esp, 4
cmp dword [esp + 0x38], esi
mov byte [esp + 0x14c], bl
jb 0x4085af
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0040eec8
add esp, 4
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x1c]
add eax, 1
add ebp, 0x1d0
cmp eax, dword [esp + 0x158]
mov dword [esp + 0x1c], eax
jb 0x408430
mov edi, dword [esp + 0x14]
lea eax, [edi - 0x10]
mov dword [esp + 0x14c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408608
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.00417b3b
add esp, 0x13c
ret
cmp dword [esp + 0x38], 0x10
jb 0x408646
mov edx, dword [esp + 0x24]
push edx
call fcn.0040eec8
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0x14c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40867d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x4e2e
jmp 0x40860a