Function at 0x481690
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x30
push 0
push 0
dec ecx
jne 0x481698
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00404ee0
xor eax, eax
push ebp
push 0x481a6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x413bfc]
call fcn.00403be0
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x413bfc]
call fcn.00403be0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x12c]
mov ecx, 0x481a88
mov edx, dword [0x490de4]
call fcn.00404d78
mov eax, dword [ebp - 0x12c]
call fcn.00404ef0
mov edx, eax
lea eax, [ebp - 0x128]
call fcn.00404c58
mov eax, dword [ebp - 0x128]
call fcn.0040921c
test al, al
jne 0x4817ea
push 0x28
lea eax, [ebp - 0x124]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
push ebp
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 0xc]
call fcn.00481248
pop ecx
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x124]
mov ecx, pe_nt_image_headers32
call fcn.00404cd0
lea eax, [ebp - 0x134]
mov edx, 0x481aa0
call fcn.00404d2c
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x74]
push ebp
push 0x481ab8
push dword [0x490de8]
push 0x481ac8
push dword [0x490e38]
push 0x481ad4
lea eax, [ebp - 0x13c]
mov edx, 5
call fcn.00404df4
mov eax, dword [ebp - 0x13c]
call fcn.00404ef0
mov edx, eax
lea eax, [ebp - 0x138]
call fcn.00404c58
mov eax, dword [ebp - 0x138]
push eax
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x124]
mov ecx, pe_nt_image_headers32
call fcn.00404cd0
lea eax, [ebp - 0x140]
mov edx, 0x481aa0
call fcn.00404d2c
mov eax, dword [ebp - 0x140]
pop edx
call fcn.00481078
pop ecx
lea eax, [ebp - 0x148]
mov ecx, 0x481a88
mov edx, dword [0x490de4]
call fcn.00404d78
mov eax, dword [ebp - 0x148]
call fcn.00404ef0
mov edx, eax
lea eax, [ebp - 0x144]
call fcn.00404c58
mov eax, dword [ebp - 0x144]
call fcn.0040921c
test al, al
je 0x4818c3
mov eax, dword [0x490da4]
mov eax, dword [eax + 0x394]
xor edx, edx
call fcn.0043ead4
push ebp
push 0x481ab8
push dword [0x490de8]
push 0x481ac8
push dword [0x490e38]
push 0x481ad4
lea eax, [ebp - 0x150]
mov edx, 5
call fcn.00404df4
mov eax, dword [ebp - 0x150]
call fcn.00404ef0
mov edx, eax
lea eax, [ebp - 0x14c]
call fcn.00404c58
mov eax, dword [ebp - 0x14c]
push eax
lea eax, [ebp - 0x158]
mov ecx, 0x481a88
mov edx, dword [0x490de4]
call fcn.00404d78
mov eax, dword [ebp - 0x158]
call fcn.00404ef0
mov edx, eax
lea eax, [ebp - 0x154]
call fcn.00404c58
mov eax, dword [ebp - 0x154]
pop edx
call fcn.00481078
pop ecx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x481a33
inc eax
mov dword [ebp - 0x24], eax
xor ebx, ebx
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x160]
mov edx, ebx
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x160]
mov eax, 0x481ae4
call fcn.0040503c
dec eax
push eax
lea ecx, [ebp - 0x164]
mov edx, ebx
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x164]
mov edx, 1
pop ecx
call fcn.00404f58
mov edx, dword [ebp - 0x15c]
mov eax, dword [0x490dac]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
lea ecx, [ebp - 0x168]
mov edx, ebx
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x16c], eax
mov esi, dword [ebp - 0x16c]
test esi, esi
je 0x48196c
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x174]
mov edx, ebx
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x174]
mov eax, 0x481af0
call fcn.0040503c
mov edx, eax
inc edx
mov ecx, esi
mov eax, dword [ebp - 0x10]
call fcn.00404f58
mov eax, dword [ebp - 0x170]
call fcn.00408edc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [0x490e68]
mov edx, dword [0x490e6c]
add eax, dword [ebp - 0x20]
adc edx, dword [ebp - 0x1c]
mov dword [0x490e68], eax
mov dword [0x490e6c], edx
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x17c]
mov edx, ebx
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x17c]
mov eax, 0x481afc
call fcn.0040503c
dec eax
push eax
lea ecx, [ebp - 0x180]
mov edx, ebx
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x180]
mov edx, 1
pop ecx
call fcn.00404f58
mov edx, dword [ebp - 0x178]
mov eax, dword [0x490da8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
dec dword [ebp - 0x24]
jne 0x4818da
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481a75
lea eax, [ebp - 0x180]
mov edx, 5
call fcn.00404a84
lea eax, [ebp - 0x168]
mov edx, 0x11
call fcn.00404a84
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404a84
ret