Function at 0x4091f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea6c4
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x53450c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x114]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov esi, 0xf
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409252
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x130]
call fcn.004013e0
push 0x5184a0
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x14c]
push eax
mov dword [ebp - 4], ebx
call fcn.0040ae00
push 0x5184a4
push eax
lea ecx, [ebp - 0x184]
push ecx
mov byte [ebp - 4], 1
call fcn.0040ae00
push 0x5184a0
push eax
lea edx, [ebp - 0x1bc]
push edx
mov byte [ebp - 4], 2
call fcn.0040ae00
add esp, 0x24
mov edi, 0x10
cmp dword [ebp - 0x170], edi
jb 0x4092d4
mov eax, dword [ebp - 0x184]
push eax
call fcn.0045e266
add esp, 4
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
cmp dword [ebp - 0x138], edi
jb 0x4092fd
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.0045e266
add esp, 4
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
cmp dword [ebp - 0x11c], edi
jb 0x409326
mov edx, dword [ebp - 0x130]
push edx
call fcn.0045e266
add esp, 4
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1bc]
cmp dword [ebp - 0x1a8], edi
jae 0x409350
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x130]
call fcn.0040a170
lea eax, [ebp - 0x130]
push eax
mov byte [ebp - 4], 8
call fcn.0040acc0
add esp, 4
cmp dword [ebp - 0x11c], edi
jb 0x409386
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.0045e266
add esp, 4
push 0x104
lea edx, [ebp - 0x114]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 9
call fcn.0040a170
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0xa
call fcn.0040a580
lea esi, [ebp - 0x14c]
lea ecx, [ebp - 0x168]
call fcn.0040a4f0
push eax
lea ecx, [ebp - 0x1bc]
push ecx
lea edx, [ebp - 0x1a0]
push edx
mov byte [ebp - 4], 0xb
call fcn.0040ae50
add esp, 0xc
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x138], edi
jb 0x409417
mov eax, dword [ebp - 0x14c]
push eax
call fcn.0045e266
add esp, 4
push 0x5184b8
lea ecx, [ebp - 0x1a0]
push ecx
lea edx, [ebp - 0x184]
mov esi, 0xf
push edx
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
call fcn.0040aea0
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00409530
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x170], edi
jb 0x40946f
mov eax, dword [ebp - 0x184]
push eax
call fcn.0045e266
add esp, 4
push 0x5184c4
lea ecx, [ebp - 0x1a0]
push ecx
lea edx, [ebp - 0x1d8]
push edx
call fcn.0040aea0
push eax
mov byte [ebp - 4], 0xf
call fcn.00409800
add esp, 0x10
cmp dword [ebp - 0x1c4], edi
jb 0x4094ab
mov eax, dword [ebp - 0x1d8]
push eax
call fcn.0045e266
add esp, 4
cmp dword [ebp - 0x18c], edi
jb 0x4094c2
mov ecx, dword [ebp - 0x1a0]
push ecx
call fcn.0045e266
add esp, 4
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x190], ebx
mov byte [ebp - 0x1a0], bl
cmp dword [ebp - 0x154], edi
jb 0x4094eb
mov edx, dword [ebp - 0x168]
push edx
call fcn.0045e266
add esp, 4
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
cmp dword [ebp - 0x1a8], edi
jb 0x409514
mov eax, dword [ebp - 0x1bc]
push eax
call fcn.0045e266
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045f14f
mov esp, ebp
pop ebp
ret