Function at 0x489568
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x48
push 0
push 0
dec ecx
jne 0x489570
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x489a57
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x104
call fcn.004099e8
mov ebx, eax
push 0x104
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
jbe 0x489a11
lea edx, [ebp - 0x1f8]
mov eax, ebx
call fcn.004099d4
lea eax, [ebp - 0x1f8]
mov edx, 0x489a70
call fcn.00404d4c
mov eax, dword [ebp - 0x1f8]
call fcn.004094a8
test al, al
je 0x4895fc
lea edx, [ebp - 0x1fc]
mov eax, ebx
call fcn.004099d4
mov edx, dword [ebp - 0x1fc]
lea eax, [ebp - 0x14]
mov ecx, 0x489a70
call fcn.00404d90
jmp 0x48961c
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004099d4
mov edx, dword [ebp - 0x200]
lea eax, [ebp - 0x14]
mov ecx, 0x489a98
call fcn.00404d90
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1f4]
call fcn.00402f68
lea eax, [ebp - 0x1f4]
call fcn.00402cf8
call fcn.00402914
mov dl, 1
mov eax, dword [0x4166d8]
call fcn.00403c80
mov esi, eax
mov dl, 1
mov eax, dword [0x4166d8]
call fcn.00403c80
mov dword [ebp - 0xc], eax
mov edx, 0x489abc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x48969f
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x1f4]
call fcn.004033d8
lea eax, [ebp - 0x1f4]
call fcn.00403444
call fcn.00402914
lea edx, [ebp - 0x204]
mov eax, dword [ebp - 0x18]
call fcn.00408e6c
mov edx, dword [ebp - 0x204]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x1f4]
call fcn.0040324c
call fcn.00402914
test al, al
je 0x489666
lea eax, [ebp - 0x1f4]
call fcn.00402cf8
call fcn.00402914
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4898e4
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x20c]
lea eax, [ebp - 0x208]
call fcn.0040530c
mov eax, dword [ebp - 0x208]
mov edx, 0x489aec
call fcn.0047e7e4
mov dword [ebp - 0x10], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x48987a
inc eax
mov dword [ebp - 0x28], eax
xor ebx, ebx
lea ecx, [ebp - 0x210]
xor edx, edx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x214]
mov eax, 1
pop ecx
call fcn.0047e700
test eax, eax
jle 0x489870
lea ecx, [ebp - 0x218]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x218]
cmp byte [eax], 0x23
je 0x489870
lea ecx, [ebp - 0x21c]
mov edx, 1
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x21c]
mov edx, 0x489af8
call fcn.00404d4c
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x220]
mov eax, 1
pop ecx
call fcn.0047e700
test eax, eax
jne 0x489869
lea ecx, [ebp - 0x224]
mov edx, 1
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x224]
mov edx, 0x489b04
call fcn.00404d4c
mov eax, dword [ebp - 0x224]
push eax
lea ecx, [ebp - 0x228]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x228]
mov eax, 1
pop ecx
call fcn.0047e700
test eax, eax
jne 0x489869
lea ecx, [ebp - 0x230]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x230]
lea eax, [ebp - 0x22c]
mov edx, 0x489b10
call fcn.00404d90
mov ecx, dword [ebp - 0x22c]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x20]
mov dword [ebp - 0x20], 1
jmp 0x489870
mov dword [ebp - 0x20], 2
inc ebx
dec dword [ebp - 0x28]
jne 0x48972f
cmp dword [ebp - 0x20], 1
je 0x489886
cmp dword [ebp - 0x20], 0
jne 0x4898d8
lea ecx, [ebp - 0x238]
mov edx, 1
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x238]
push 0x489af8
lea ecx, [ebp - 0x23c]
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x23c]
lea eax, [ebp - 0x234]
mov edx, 3
call fcn.00404e04
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
jne 0x4896df
mov edx, 0x489b1c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jle 0x4899ea
lea eax, [ebp - 0x1f4]
call fcn.00402d04
call fcn.00402914
mov eax, dword [ebp - 4]
add eax, 0x44
mov edx, 0x489b38
call fcn.00404ad8
mov eax, dword [ebp - 4]
push eax
push 0x488b28
mov eax, dword [ebp - 4]
call fcn.0041e4d8
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x48997d
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x240]
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x240]
lea eax, [ebp - 0x1f4]
call fcn.00405160
call fcn.00403770
call fcn.00402914
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
jne 0x48994a
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4899c9
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x244]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x244]
lea eax, [ebp - 0x1f4]
call fcn.00405160
call fcn.00403770
call fcn.00402914
inc dword [ebp - 0x1c]
dec dword [ebp - 0x24]
jne 0x489995
mov eax, dword [ebp - 4]
add eax, 0x44
mov edx, 0x489b5c
call fcn.00404ad8
mov eax, dword [ebp - 4]
push eax
push 0x488b28
mov eax, dword [ebp - 4]
call fcn.0041e4d8
mov eax, dword [ebp - 0xc]
call fcn.00403cb0
mov eax, esi
call fcn.00403cb0
mov eax, dword [ebp - 0x10]
call fcn.00403cb0
lea eax, [ebp - 0x1f4]
call fcn.004030e4
call fcn.00402914
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489a5e
lea eax, [ebp - 0x244]
mov edx, 0xf
call fcn.00404aa8
lea eax, [ebp - 0x208]
call fcn.004051b8
lea eax, [ebp - 0x204]
mov edx, 4
call fcn.00404aa8
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404aa8
ret