Function at 0x439380
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x49d599
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x188], 0
mov eax, dword [0x4cc854]
mov dword [esp + 0x10], eax
push 0
lea ecx, [esp + 0x80]
push 6
push ecx
push 0
mov byte [esp + 0x198], 3
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x439a6b
mov al, byte [ebp + 0x6e8]
test al, al
je 0x439a17
push 0
lea edx, [esp + 0x80]
push 0
push edx
mov ecx, ebp
call fcn.0043b070
test eax, eax
je 0x439a6b
mov eax, dword [0x4cc854]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x198]
mov byte [esp + 0x188], 4
push ecx
lea ecx, [esp + 0x1c]
call fcn.0048c53c
lea edx, [esp + 0x1c]
push 1
push edx
lea ecx, [esp + 0x20]
call fcn.0048a360
mov eax, dword [eax]
push 0x4c2288
push eax
call fcn.0047514f
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne bl
call fcn.0048c403
test bl, bl
je 0x439464
push 0x4c2288
lea ecx, [esp + 0x1c]
call fcn.0048c7df
lea eax, [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x19c]
call fcn.0048a3dc
mov eax, dword [eax]
push 0x4c2288
push eax
call fcn.0047514f
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete bl
call fcn.0048c403
test bl, bl
je 0x4394dc
mov ecx, dword [esp + 0x194]
lea edx, [esp + 0x1c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x194]
dec eax
push eax
push edx
call fcn.0048a360
push eax
lea ecx, [esp + 0x198]
mov byte [esp + 0x18c], 5
call fcn.0048c53c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x188], 4
call fcn.0048c403
lea eax, [esp + 0x194]
lea ecx, [esp + 0x18]
push eax
call fcn.0048c81b
lea ecx, [esp + 0x1c]
push 1
push ecx
lea ecx, [esp + 0x20]
call fcn.0048a360
mov eax, dword [eax]
push 0x4c2288
push eax
call fcn.0047514f
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne bl
call fcn.0048c403
test bl, bl
je 0x43952d
push 0x4c2288
lea ecx, [esp + 0x1c]
call fcn.0048c7df
push str.InitFavoritel.dat
lea ecx, [esp + 0x1c]
call fcn.0048c7df
lea ecx, [esp + 0x60]
call fcn.0046cc50
mov edx, dword [esp + 0x18]
push 0
push edx
lea ecx, [esp + 0x68]
mov byte [esp + 0x190], 6
call fcn.0046cd13
test eax, eax
jne 0x439576
lea eax, [esp + 0x190]
lea ecx, [esp + 0x10]
push eax
call fcn.0048c53c
jmp 0x43960d
lea ecx, [esp + 0x48]
call fcn.00490080
mov ecx, dword [esp + 0x18]
push 0
push 2
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x194], 7
call fcn.00490192
lea ecx, [esp + 0x48]
call fcn.0049048c
inc eax
push eax
call fcn.0048c144
add esp, 4
lea ecx, [esp + 0x48]
mov esi, eax
call fcn.0049048c
mov ecx, eax
xor eax, eax
inc ecx
mov edi, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x48]
call fcn.0049048c
push eax
push esi
lea ecx, [esp + 0x50]
call fcn.004902af
push esi
lea ecx, [esp + 0x14]
call fcn.0048c58c
lea ecx, [esp + 0x48]
call fcn.004903ad
push esi
call fcn.0048c16d
add esp, 4
lea ecx, [esp + 0x48]
mov byte [esp + 0x188], 6
call fcn.004900d5
lea ecx, [esp + 0x60]
call fcn.0046ccc9
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4399f5
lea ecx, [esp + 0x10]
call fcn.0048c958
lea ecx, [esp + 0x10]
call fcn.0048a85b
lea ecx, [esp + 0x10]
call fcn.0048a80f
mov eax, dword [0x4cc854]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x10]
push 0x4d0e20
push ecx
call fcn.0047514f
add esp, 8
test eax, eax
je 0x4399d3
mov bl, 0xa
mov edx, dword [0x4cc854]
mov dword [esp + 0x14], edx
push 0x4c3018
lea ecx, [esp + 0x14]
mov byte [esp + 0x18c], bl
call fcn.0048a476
test eax, eax
jl 0x43971b
push 0x4c3018
lea ecx, [esp + 0x14]
call fcn.0048a476
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.0048a3dc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x18c], 0xb
call fcn.0048c53c
lea ecx, [esp + 0x5c]
mov byte [esp + 0x188], bl
call fcn.0048c403
mov ecx, dword [esp + 0x10]
push 0x4c3018
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x14]
call fcn.0048a476
sub esi, eax
lea edx, [esp + 0x30]
dec esi
lea ecx, [esp + 0x10]
push esi
push edx
call fcn.0048a360
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x18c], 0xc
call fcn.0048c53c
lea ecx, [esp + 0x30]
mov byte [esp + 0x188], bl
call fcn.0048c403
jmp 0x439737
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.0048c53c
push 0x4d0e20
lea ecx, [esp + 0x14]
call fcn.0048c58c
lea ecx, [esp + 0x14]
call fcn.0048a85b
lea ecx, [esp + 0x14]
call fcn.0048a80f
lea ecx, [esp + 0x10]
call fcn.0048a85b
lea ecx, [esp + 0x10]
call fcn.0048a80f
push str.CREATEFILE
lea ecx, [esp + 0x18]
call fcn.0048a476
test eax, eax
jl 0x4398db
mov ecx, dword [esp + 0x14]
mov edi, str.CREATEFILE
xor eax, eax
mov edx, dword [ecx - 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, ecx
lea ecx, [esp + 0x14]
push edx
lea edx, [esp + 0x40]
push edx
call fcn.0048a360
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x18c], 0xd
call fcn.0048c53c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x188], bl
call fcn.0048c403
lea ecx, [esp + 0x20]
call fcn.0048a85b
lea ecx, [esp + 0x20]
call fcn.0048a80f
mov eax, dword [0x4cc854]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x20]
push 0x4c6d8c
mov byte [esp + 0x18c], 0xe
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x24]
call fcn.0048a476
sub esi, eax
lea edx, [esp + 0x58]
sub esi, 2
lea ecx, [esp + 0x20]
push esi
push edx
call fcn.0048a360
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x18c], 0xf
call fcn.0048c53c
lea ecx, [esp + 0x58]
mov byte [esp + 0x188], 0xe
call fcn.0048c403
mov eax, dword [0x4cc854]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov byte [esp + 0x188], 0x10
mov eax, dword [ecx - 8]
mov esi, dword [edx - 8]
sub eax, esi
lea ecx, [esp + 0x20]
sub eax, 2
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0048a3dc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x18c], 0x11
call fcn.0048c53c
lea ecx, [esp + 0x44]
mov byte [esp + 0x188], 0x10
call fcn.0048c403
push 0
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.0048c178
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
mov byte [esp + 0x198], 0x12
call fcn.0048c178
mov ecx, ebp
mov byte [esp + 0x194], 0x10
call fcn.00438e10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x188], 0xe
call fcn.0048c403
mov byte [esp + 0x188], bl
lea ecx, [esp + 0x28]
jmp 0x4399a3
push str.CREATEDIR
lea ecx, [esp + 0x18]
call fcn.0048a476
test eax, eax
jl 0x4399a8
mov ecx, dword [esp + 0x14]
mov edi, str.CREATEDIR
xor eax, eax
mov edx, dword [ecx - 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, ecx
lea ecx, [esp + 0x14]
push edx
lea edx, [esp + 0x38]
push edx
call fcn.0048a360
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x18c], 0x13
call fcn.0048c53c
lea ecx, [esp + 0x34]
mov byte [esp + 0x188], bl
call fcn.0048c403
lea ecx, [esp + 0x24]
call fcn.0048a85b
lea ecx, [esp + 0x24]
call fcn.0048a80f
mov eax, dword [0x4cc854]
mov dword [esp + 0x1c], eax
push 0
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov byte [esp + 0x194], 0x14
call fcn.0048c178
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
mov byte [esp + 0x198], 0x15
call fcn.0048c178
mov ecx, ebp
mov byte [esp + 0x194], 0x14
call fcn.00438e10
mov byte [esp + 0x188], bl
lea ecx, [esp + 0x1c]
call fcn.0048c403
lea ecx, [esp + 0x14]
mov byte [esp + 0x188], 9
call fcn.0048c403
mov ecx, dword [esp + 0x10]
push 0x4d0e20
push ecx
call fcn.0047514f
add esp, 8
test eax, eax
jne 0x439669
lea ecx, [esp + 0x24]
mov byte [esp + 0x188], 8
call fcn.0048c403
lea ecx, [esp + 0x20]
mov byte [esp + 0x188], 6
call fcn.0048c403
lea ecx, [esp + 0x60]
mov byte [esp + 0x188], 4
call fcn.0046cc8d
lea ecx, [esp + 0x18]
mov byte [esp + 0x188], 3
call fcn.0048c403
lea ecx, [esp + 0x10]
mov byte [esp + 0x188], 2
call fcn.0048c403
lea ecx, [esp + 0x190]
mov byte [esp + 0x188], 1
call fcn.0048c403
lea ecx, [esp + 0x194]
mov byte [esp + 0x188], 0
call fcn.0048c403
lea ecx, [esp + 0x198]
mov dword [esp + 0x188], 0xffffffff
call fcn.0048c403
mov al, 1
jmp 0x439abd
lea ecx, [esp + 0x10]
mov byte [esp + 0x188], 2
call fcn.0048c403
lea ecx, [esp + 0x190]
mov byte [esp + 0x188], 1
call fcn.0048c403
lea ecx, [esp + 0x194]
mov byte [esp + 0x188], 0
call fcn.0048c403
lea ecx, [esp + 0x198]
mov dword [esp + 0x188], 0xffffffff
call fcn.0048c403
xor al, al
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x17c
ret 0xc