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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff820
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x53000c]
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 esi, ecx
mov dword [ebp - 0x4d0], esi
mov dword [ebp - 0x4d0], esi
mov dword [ebp - 0x4cc], 0
cmp dword [0x534198], 0
jne 0x48195e
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push 0x52020c
push eax
call edi
push 0x520214
lea eax, [ebp - 0x220]
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x220]
push eax
call ebx
test eax, eax
jne 0x4814e9
push 0x20a
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004bcaf0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 1
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x52020c
lea eax, [ebp - 0x220]
push eax
call edi
push 0x520214
lea eax, [ebp - 0x220]
push eax
call edi
lea eax, [ebp - 0x220]
push eax
call ebx
test eax, eax
je 0x48190f
push 0
push 0x51ca34
lea ecx, [ebp - 0x370]
mov dword [ebp - 0x360], 0
mov dword [ebp - 0x35c], 0xf
mov byte [ebp - 0x370], 0
call fcn.00420560
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
xor eax, eax
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x32c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x340], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x481554
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x340]
call fcn.0041a5b0
lea eax, [ebp - 0x340]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x358]
mov dword [ebp - 0x4cc], 2
call fcn.00498a60
lea ecx, [ebp - 0x370]
mov dword [ebp - 4], 2
push ecx
push eax
mov dword [ebp - 0x4cc], 6
call fcn.004a3660
add esp, 8
test al, al
je 0x4815c8
cmp dword [ebp - 0x360], 0
je 0x4815c8
mov bl, 1
jmp 0x4815ca
xor bl, bl
lea ecx, [ebp - 0x358]
call fcn.0041a210
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x32c]
cmp edx, 8
jb 0x48161c
mov ecx, dword [ebp - 0x340]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x481612
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481986
push edx
push ecx
call fcn.0048e9ad
add esp, 8
test bl, bl
je 0x4818b3
push 0
push 0x51ca34
lea ecx, [ebp - 0x358]
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 0xf
mov byte [ebp - 0x358], 0
call fcn.00420560
mov byte [ebp - 4], 3
lea eax, [ebp - 0x370]
cmp dword [ebp - 0x35c], 0x10
cmovae eax, dword [ebp - 0x370]
mov dword [ebp - 0x4d4], eax
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x4d0], eax
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x4d4]
push eax
call fcn.004a0690
add esp, 8
test al, al
je 0x48185a
cmp dword [ebp - 0x348], 0
je 0x48185a
push 0
lea ecx, [ebp - 0x4c8]
call fcn.0049df30
lea eax, [ebp - 0x358]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x4c8]
call fcn.0049f4f0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x330], 0
je 0x4817f6
lea eax, [ebp - 0x340]
mov ecx, 0x534188
push eax
call fcn.0041f090
push 0x534188
mov ecx, esi
call fcn.0041f1d0
mov edx, dword [ebp - 0x32c]
cmp edx, 0x10
jb 0x481738
mov ecx, dword [ebp - 0x340]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48172e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48198b
push edx
push ecx
call fcn.0048e9ad
add esp, 8
lea ecx, [ebp - 0x4c8]
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x32c], 0xf
mov byte [ebp - 0x340], 0
call fcn.0041d4f0
mov edx, dword [ebp - 0x344]
cmp edx, 0x10
jb 0x481798
mov ecx, dword [ebp - 0x358]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48178e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481990
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov edx, dword [ebp - 0x35c]
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 0xf
mov byte [ebp - 0x358], 0
cmp edx, 0x10
jb 0x481968
mov ecx, dword [ebp - 0x370]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4817e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481995
push edx
push ecx
call fcn.0048e9ad
add esp, 8
jmp 0x481968
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x32c]
cmp edx, 0x10
jb 0x481834
mov ecx, dword [ebp - 0x340]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48182a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48199a
push edx
push ecx
call fcn.0048e9ad
add esp, 8
lea ecx, [ebp - 0x4c8]
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x32c], 0xf
mov byte [ebp - 0x340], 0
call fcn.0041d4f0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x344]
cmp edx, 0x10
jb 0x481898
mov ecx, dword [ebp - 0x358]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48188e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48199f
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 0xf
mov byte [ebp - 0x358], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x35c]
cmp edx, 0x10
jb 0x4818f4
mov ecx, dword [ebp - 0x370]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4818ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4819a4
push edx
push ecx
call fcn.0048e9ad
add esp, 8
mov dword [ebp - 0x360], 0
mov dword [ebp - 0x35c], 0xf
mov byte [ebp - 0x370], 0
push 0x104
lea eax, [ebp - 0x328]
push 0
push eax
call fcn.004bcaf0
push 0
lea eax, [ebp - 0x328]
push 0x104
push eax
call fcn.0049ab10
lea ecx, [ebp - 0x328]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x481941
sub ecx, edx
lea eax, [ebp - 0x328]
push ecx
push eax
mov ecx, 0x534188
call fcn.00420560
mov ecx, esi
push 0x534188
call fcn.0041f1d0
mov eax, esi
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.0048e99c
mov esp, ebp
pop ebp
ret
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
call fcn.004c5929
int3