Function at 0x465ba0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b948
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x487244]
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
mov edi, dword [ebp + 8]
mov dword [ebp - 0x22c], edi
call fcn.00408730
mov ecx, eax
test ecx, ecx
je 0x4661d9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push 0x46d6bc
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.00408260
test al, al
jne 0x465c21
push 0
push 0x46d6bc
lea ecx, [ebp - 0x224]
call fcn.00408e50
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.00466c00
mov edx, dword [0x497c58]
add esp, 4
mov esi, eax
mov eax, edx
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x465c63
cmp dword [ecx + 0x10], esi
jge 0x465c50
mov ecx, dword [ecx + 8]
jmp 0x465c54
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x465c46
cmp eax, edx
je 0x465c63
cmp esi, dword [eax + 0x10]
jge 0x465c65
mov eax, edx
cmp edx, eax
je 0x465c78
add eax, 0x14
lea ecx, [ebp - 0x224]
push eax
call fcn.00407f20
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
jne 0x465ced
call fcn.00408730
mov ecx, eax
test ecx, ecx
je 0x4661e3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x46d6bc
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00408260
test al, al
jne 0x465cbf
push 0
push 0x46d6bc
mov ecx, edi
call fcn.00408e50
mov esi, dword [ebp - 0x224]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4661bb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4661bb
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x219]
call fcn.00459c00
add esi, 0xfffffffd
mov byte [ebp - 4], 3
cmp esi, 0x47
ja case.0x465d16.4
movzx eax, byte [esi + 0x466220]
jmp dword [eax*4 + 0x4661f8]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.004586f0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 4
call fcn.00407f20
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00407dc0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.00461340
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 5
call fcn.00407f20
lea ecx, [ebp - 0x220]
jmp 0x466063
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.004560c0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.00407f20
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00407dc0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.00456e80
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 7
call fcn.00407f20
lea ecx, [ebp - 0x220]
jmp 0x466063
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.00456180
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 8
call fcn.00407f20
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00407dc0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.0045b3c0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 9
call fcn.00407f20
lea ecx, [ebp - 0x220]
jmp 0x466063
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.004560c0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xa
call fcn.00407f20
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00407dc0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.00456e80
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xb
call fcn.00407f20
lea ecx, [ebp - 0x220]
jmp 0x466063
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.004560c0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xc
call fcn.00407f20
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00407dc0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.00456e80
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xd
call fcn.00407f20
lea ecx, [ebp - 0x220]
jmp 0x466063
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.004560c0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xe
call fcn.00407f20
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00407dc0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.00456e80
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0xf
call fcn.00407f20
lea ecx, [ebp - 0x220]
jmp 0x466063
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.00456180
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x10
call fcn.00407f20
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00407dc0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.0045b3c0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x11
call fcn.00407f20
lea ecx, [ebp - 0x220]
jmp 0x466063
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.00459180
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x12
call fcn.00407f20
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00407dc0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.00459c00
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x13
call fcn.00407f20
lea ecx, [ebp - 0x220]
jmp 0x466063
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x219]
call fcn.0045a410
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x14
call fcn.00407f20
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00407dc0
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x219]
call fcn.0045a1f0
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x15
call fcn.00407f20
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.00407dc0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00434130
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp - 0x224]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4660ca
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push dword [ebp - 0x228]
lea eax, [ebp - 0x218]
push eax
call esi
call fcn.00408730
mov ecx, eax
test ecx, ecx
je 0x4661ed
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebp - 0x220]
call fcn.00408260
test al, al
jne 0x466142
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466120
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.00408e50
mov ebx, dword [ebp - 0x220]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0x17
push ebx
call fcn.004083a0
add eax, 0x10
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov dword [edi], eax
add esp, 4
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x466178
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x228]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x466199
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4661bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.00429ded
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408220
push 0x80004005
call fcn.00408220
push 0x80004005
call fcn.00408220
nop
sbb eax, 0x7b00465d
pop ebp
inc esi
add cl, bl
pop ebp
inc esi
add bl, dh
pop esi
inc esi
add byte [edi], dh
pop esi
inc esi
add byte [ebp - 0x50ffb9a2], dl
pop edi
inc esi
add byte [ecx + 0x5f], dl
inc esi
add byte [edx], cl
pushal
inc esi
add byte [eax + 0x46], ch
add byte [eax], al
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
or dword [ecx], ecx
add byte [ecx], al
add al, byte [ebx]
add al, 5
push es
pop es
push es
push es
pop es
pop es
pop es
pop es
or ah, cl
int3