Function at 0x412166
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push edi
mov dword [ebp - 0x138], ecx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x138]
add ecx, 0x398
call fcn.00416da0
jmp 0x412195
lea ecx, [ebp - 4]
call fcn.00417b10
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x138]
add ecx, 0x398
call fcn.004819b0
push eax
lea ecx, [ebp - 4]
call fcn.00441530
and eax, 0xff
test eax, eax
je 0x412208
lea ecx, [ebp - 4]
call fcn.004845b0
mov dword [ebp - 8], eax
push 0x4be760
mov edx, dword [ebp - 8]
add edx, 0x108
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4121eb
mov eax, dword [ebp - 8]
cmp dword [eax], 0x73
je 0x412204
push 0x4be770
mov ecx, dword [ebp - 8]
add ecx, 0x108
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x412206
jmp 0x412208
jmp 0x41218d
lea edx, [ebp - 0x120]
push edx
mov ecx, dword [ebp - 0x138]
add ecx, 0x398
call fcn.004819b0
push eax
lea ecx, [ebp - 4]
call fcn.00441530
and eax, 0xff
test eax, eax
je 0x4124b7
mov byte [ebp - 0x10c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x41226b
jmp 0x4124b7
push 0x4be778
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
call fcn.004154a0
push 0x4be790
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x110], eax
push 0x4be794
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
push 0x4be800
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
lea edx, [ebp - 0x124]
push edx
mov ecx, dword [ebp - 0x138]
add ecx, 0x398
call fcn.00416da0
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x4122ed
lea ecx, [ebp - 4]
call fcn.00417b10
lea ecx, [ebp - 0x128]
push ecx
mov ecx, dword [ebp - 0x138]
add ecx, 0x398
call fcn.004819b0
push eax
lea ecx, [ebp - 4]
call fcn.00441530
and eax, 0xff
test eax, eax
je 0x41239c
lea ecx, [ebp - 4]
call fcn.004845b0
mov dword [ebp - 0x114], eax
push 0x4be824
mov edx, dword [ebp - 0x114]
add edx, 0x108
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x412350
mov eax, dword [ebp - 0x114]
cmp dword [eax], 0x73
je 0x41236c
push 0x4be834
mov ecx, dword [ebp - 0x114]
add ecx, 0x108
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x412397
mov edx, dword [ebp - 0x114]
add edx, 4
push edx
mov eax, dword [ebp - 0x114]
add eax, 0x108
push eax
push str._s__t__s_n
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
jmp 0x4122e5
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0
push 0x4be848
push 0x4be854
mov ecx, dword [ebp - 0x138]
add ecx, 4
call fcn.00402b70
push 0x104
push 0x4be89c
push 0x4be8a8
mov ecx, dword [ebp - 0x138]
add ecx, 4
call fcn.00402b70
cmp eax, 7
jne 0x4124b7
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x138]
add ecx, 0x398
call fcn.00416da0
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x130]
push edx
mov ecx, dword [ebp - 0x138]
add ecx, 0x398
call fcn.004819b0
push eax
lea ecx, [ebp - 4]
call fcn.00441530
and eax, 0xff
test eax, eax
je 0x4124b7
lea ecx, [ebp - 4]
call fcn.004845b0
mov dword [ebp - 0x118], eax
push 0x4be8dc
mov eax, dword [ebp - 0x118]
add eax, 0x108
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x41246b
mov ecx, dword [ebp - 0x118]
cmp dword [ecx], 0x73
je 0x412487
push str.Virus.
mov edx, dword [ebp - 0x118]
add edx, 0x108
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4124aa
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x134]
push ecx
mov ecx, dword [ebp - 0x138]
add ecx, 0x398
call fcn.0045cb30
mov edx, dword [eax]
mov dword [ebp - 4], edx
jmp 0x4124b2
lea ecx, [ebp - 4]
call fcn.00417b10
jmp 0x412409
pop edi
mov esp, ebp
pop ebp
ret