Function at 0x404640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x80000301
push 0
push 0x105
push 1
mov ebx, 0x184
call fcn.0047d030
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404693
push ebx
call fcn.0047a2ea
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 1
jl 0x4046b2
cmp dword [ebp + 8], 8
jg 0x4046b2
mov eax, 1
jmp 0x4046b7
mov eax, 0
test eax, eax
je 0x4047d9
mov eax, dword [ebp + 8]
cmp eax, 1
jl 0x4046cc
cmp eax, 9
jl 0x4046e3
push 0xf5
push 0x4090ae2
push 9
call fcn.0047a2f0
add esp, 0xc
dec eax
call 0x4046e9
pop ebx
add ebx, dword [eax*4 + 0x49d3dc]
jmp ebx
cmp dword [ebp + 8], 9
jne 0x40481c
mov dword [ebp - 0x10], esp
push 0x105
push dword [ebp - 4]
xor eax, eax
call dword [0x4a1e40]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x404814
push 0x26a
push 0x4090ae2
push 6
call fcn.0047a2f0
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x4049ec
cmp dword [ebp + 8], 0xa
jne 0x40485f
mov dword [ebp - 0x10], esp
push 0x105
push dword [ebp - 4]
xor eax, eax
call dword [0x4a1e44]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x404857
push 0x304
push 0x4090ae2
push 6
call fcn.0047a2f0
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x4049ec
cmp dword [ebp + 8], 0xb
jne 0x4048a2
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push 0x105
xor eax, eax
call dword [0x4a1e48]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40489a
push 0x39e
push 0x4090ae2
push 6
call fcn.0047a2f0
add esp, 0xc
mov dword [ebp - 0xc], eax
jmp 0x4049ec
cmp dword [ebp + 8], 0xc
jne 0x404946
mov dword [ebp - 0x10], esp
push 0
xor eax, eax
call dword [sym.imp.ole32.dll_CoInitialize]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4048da
push 0x41f
push 0x4090ae2
push 6
call fcn.0047a2f0
add esp, 0xc
mov dword [ebp - 0x10], esp
push 0
push 0x20
push dword [ebp - 4]
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x404915
push 0x454
push 0x4090ae2
push 6
call fcn.0047a2f0
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
xor eax, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x404941
push 0x480
push 0x4090ae2
push 6
call fcn.0047a2f0
add esp, 0xc
jmp 0x4049ec
cmp dword [ebp + 8], 0xd
jne 0x4049ec
mov dword [ebp - 0x10], esp
push 0
xor eax, eax
call dword [sym.imp.ole32.dll_CoInitialize]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40497e
push 0x503
push 0x4090ae2
push 6
call fcn.0047a2f0
add esp, 0xc
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push 0
push 0
push 0x19
push 0
xor eax, eax
call dword [0x4a1e4c]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4049be
push 0x51f
push 0x4090ae2
push 6
call fcn.0047a2f0
add esp, 0xc
mov dword [ebp - 0x10], esp
xor eax, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4049e7
push 0x559
push 0x4090ae2
push 6
call fcn.0047a2f0
add esp, 0xc
jmp 0x4049ec
cmp dword [ebp - 0xc], 0
jne 0x404a00
mov eax, 0x49d2b0
jmp 0x404a5e
push 0x49d2b0
push dword [ebp - 4]
call fcn.00401420
add esp, 8
cmp eax, 0
je 0x404a3d
lea eax, [ebp - 4]
push eax
call fcn.00403ff0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404a39
push ebx
call fcn.0047a2ea
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x404a59
push eax
mov ebx, eax
call fcn.00401358
inc eax
push eax
call fcn.0047a2e4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x404a5e
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404a6f
push ebx
call fcn.0047a2ea
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4