Function at 0x4e17c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a93c5
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x608554]
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 dword [ebp - 0x49c], ecx
push ecx
xor eax, eax
lea ecx, [ebp - 0x464]
push str.CBaseInfoCustomDrv::CheckCustomFolder
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x470], eax
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e185a
test byte [ecx + 0x1c], 1
je 0x4e185a
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5d9bd8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x4f
call fcn.00401840
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x218]
push 0x208
push edi
push eax
mov dword [ebp - 0x47c], edi
call fcn.00571c00
add esp, 8
mov dword [ebp - 0x424], edi
lea eax, [ebp - 0x218]
xorps xmm0, xmm0
movq qword [ebp - 0x42c], xmm0
push eax
call fcn.004a0310
call fcn.0052ee40
mov ecx, eax
call fcn.00534cc0
sub eax, edi
je 0x4e1917
sub eax, 1
je 0x4e18f0
sub eax, 1
jne 0x4e195e
mov eax, dword [0x6184f0]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x3a0], 8
lea eax, [ecx + 0x38c]
jb 0x4e18cb
mov eax, dword [eax]
cmp dword [ecx + 0x370], 8
mov dword [ebp - 0x42c], eax
lea eax, [ecx + 0x35c]
jb 0x4e18e2
mov eax, dword [eax]
mov dword [ebp - 0x428], eax
lea eax, [ecx + 0x374]
jmp 0x4e1950
mov eax, dword [0x6184f0]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x388], 8
lea eax, [ecx + 0x374]
jb 0x4e1909
mov eax, dword [eax]
mov dword [ebp - 0x42c], eax
lea eax, [ecx + 0x35c]
jmp 0x4e193c
mov eax, dword [0x6184f0]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x370], 8
lea eax, [ecx + 0x35c]
jb 0x4e1930
mov eax, dword [eax]
mov dword [ebp - 0x42c], eax
lea eax, [ecx + 0x374]
cmp dword [eax + 0x14], 8
jb 0x4e1944
mov eax, dword [eax]
mov dword [ebp - 0x428], eax
lea eax, [ecx + 0x38c]
cmp dword [eax + 0x14], 8
jb 0x4e1958
mov eax, dword [eax]
mov dword [ebp - 0x424], eax
xor ebx, ebx
mov dword [ebp - 0x480], ebx
nop word [eax + eax]
mov esi, dword [ebp + ebx*4 - 0x42c]
test esi, esi
je 0x4e1fe3
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x4e2064
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x468], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x4e19be
movzx eax, ax
lea ecx, [ebp - 0x468]
push eax
call fcn.00403020
jmp 0x4e19e9
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e19c7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x468]
call fcn.00403bb0
mov byte [ebp - 4], 2
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x4e2064
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x474], eax
mov byte [ebp - 4], 3
test esi, 0xffff0000
jne 0x4e1a27
movzx eax, si
lea ecx, [ebp - 0x474]
push eax
call fcn.00403020
jmp 0x4e1a4c
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e1a30
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x474]
call fcn.00403bb0
push 0x208
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.00571c00
mov esi, dword [ebp - 0x468]
push 0x5c
push esi
call fcn.00571054
add esp, 0x14
test eax, eax
jne 0x4e1a7d
or eax, 0xffffffff
jmp 0x4e1a81
sub eax, esi
sar eax, 1
xor ebx, ebx
lea edi, [esi - 0x10]
test eax, eax
cmovns ebx, eax
cmp ebx, dword [esi - 0xc]
jl 0x4e1aa2
mov ecx, edi
call fcn.00403af0
add eax, 0x10
mov dword [ebp - 0x484], eax
jmp 0x4e1ad1
mov ecx, dword [edi]
test ecx, ecx
je 0x4e1ab1
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x4e1abd
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push ebx
push esi
lea ecx, [ebp - 0x484]
call fcn.00403d50
mov eax, dword [ebp - 0x484]
or dword [ebp - 0x46c], 1
lea ebx, [eax - 0x10]
mov byte [ebp - 4], 5
cmp ebx, edi
je 0x4e1b39
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4e1b24
mov ecx, dword [ebx]
cmp ecx, dword [edi]
jne 0x4e1b24
mov ecx, ebx
call fcn.00403af0
mov dword [ebp - 0x470], eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x4e1b13
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x470]
add esi, 0x10
mov dword [ebp - 0x468], esi
jmp 0x4e1b39
push dword [eax - 0xc]
lea ecx, [ebp - 0x468]
push eax
call fcn.00403bb0
mov esi, dword [ebp - 0x468]
mov byte [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4e1b52
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x46c]
mov edi, dword [ebp - 0x474]
mov dword [ebp - 0x470], ecx
cmp dword [edi - 0xc], 0
mov ebx, ecx
jl 0x4e1d57
push 0x5cadf8
push edi
call fcn.00570be3
add esp, 8
test eax, eax
je 0x4e1d57
sub eax, edi
sar eax, 1
jne 0x4e1d57
push 0x5c
push esi
call fcn.00571054
add esp, 8
test eax, eax
jne 0x4e1ba4
or eax, 0xffffffff
jmp 0x4e1ba8
sub eax, esi
sar eax, 1
xor ecx, ecx
lea ebx, [esi - 0x10]
test eax, eax
cmovns ecx, eax
mov dword [ebp - 0x46c], ecx
cmp ecx, dword [esi - 0xc]
jl 0x4e1bcf
mov ecx, ebx
call fcn.00403af0
add eax, 0x10
mov dword [ebp - 0x488], eax
jmp 0x4e1c03
mov ecx, dword [ebx]
test ecx, ecx
je 0x4e1bde
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x4e1bea
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push dword [ebp - 0x46c]
lea ecx, [ebp - 0x488]
push esi
call fcn.00403d50
mov eax, dword [ebp - 0x488]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 6
mov dword [ebp - 0x46c], edx
cmp edx, ebx
je 0x4e1c70
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x4e1c55
mov ecx, dword [edx]
cmp ecx, dword [ebx]
jne 0x4e1c55
mov ecx, edx
call fcn.00403af0
mov dword [ebp - 0x478], eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x4e1c44
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x478]
add esi, 0x10
mov dword [ebp - 0x468], esi
jmp 0x4e1c6a
push dword [eax - 0xc]
lea ecx, [ebp - 0x468]
push eax
call fcn.00403bb0
mov esi, dword [ebp - 0x468]
mov edx, dword [ebp - 0x46c]
mov byte [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e1c89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi - 0xc]
lea ecx, [ebp - 0x474]
add eax, 0xfffffffd
push eax
push 3
lea eax, [ebp - 0x498]
push eax
call fcn.0041d2b0
mov ecx, dword [ebp - 0x470]
or ecx, 6
mov dword [ebp - 0x470], ecx
mov byte [ebp - 4], 7
lea edx, [edi - 0x10]
mov eax, dword [ebp - 0x498]
mov dword [ebp - 0x478], edx
lea ebx, [eax - 0x10]
cmp ebx, edx
je 0x4e1d2f
cmp dword [edx + 0xc], 0
lea edi, [edx + 0xc]
jl 0x4e1d14
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x4e1d14
mov ecx, ebx
call fcn.00403af0
mov dword [ebp - 0x46c], eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4e1d03
mov edx, dword [ebp - 0x478]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x46c]
add edi, 0x10
mov dword [ebp - 0x474], edi
jmp 0x4e1d29
push dword [eax - 0xc]
lea ecx, [ebp - 0x474]
push eax
call fcn.00403bb0
mov edi, dword [ebp - 0x474]
mov ecx, dword [ebp - 0x470]
mov byte [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4e1b64
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x470]
jmp 0x4e1b64
lea eax, [edi - 0x10]
mov byte [ebp - 4], 8
mov ecx, dword [eax]
mov dword [ebp - 0x494], eax
test ecx, ecx
je 0x4e1d75
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4e1d8b
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x4e2064
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [edi - 0xc]
or dword [ebp - 0x470], 8
lea ecx, [ebp - 0x48c]
add eax, 0x10
mov edx, 0x5c692c
push edi
push 1
mov dword [ebp - 0x48c], eax
call fcn.00416280
mov esi, dword [ebp - 0x48c]
lea ecx, [ebp - 0x468]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.00405fe0
and ebx, 0xfffffff7
mov byte [ebp - 4], 4
mov dword [ebp - 0x46c], ebx
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4e1df3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x6184f0]
mov eax, dword [eax + 8]
cmp dword [eax + 0x7f8], 2
je 0x4e1eff
mov esi, dword [ebp - 0x468]
push 0x5c
push esi
call fcn.00571054
add esp, 8
test eax, eax
jne 0x4e1e22
or eax, 0xffffffff
jmp 0x4e1e26
sub eax, esi
sar eax, 1
xor ebx, ebx
lea edi, [esi - 0x10]
test eax, eax
cmovns ebx, eax
cmp ebx, dword [esi - 0xc]
jl 0x4e1e47
mov ecx, edi
call fcn.00403af0
add eax, 0x10
mov dword [ebp - 0x490], eax
jmp 0x4e1e76
mov ecx, dword [edi]
test ecx, ecx
je 0x4e1e56
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x4e1e62
call fcn.00550b4e
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push ebx
push esi
lea ecx, [ebp - 0x490]
call fcn.00403d50
mov eax, dword [ebp - 0x490]
mov ebx, dword [ebp - 0x46c]
lea esi, [eax - 0x10]
or ebx, 0x10
mov byte [ebp - 4], 9
mov dword [ebp - 0x46c], ebx
cmp esi, edi
je 0x4e1ee0
cmp dword [edi + 0xc], 0
jl 0x4e1ed1
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x4e1ed1
mov ecx, esi
call fcn.00403af0
mov dword [ebp - 0x478], eax
lea ecx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4e1ec0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x478]
add eax, 0x10
mov dword [ebp - 0x468], eax
jmp 0x4e1ee0
push dword [eax - 0xc]
lea ecx, [ebp - 0x468]
push eax
call fcn.00403bb0
mov byte [ebp - 4], 4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4e1eff
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x46c], ebx
push 7
push str.Custom
lea ecx, [ebp - 0x468]
call fcn.00405fe0
mov esi, dword [ebp - 0x468]
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e1f9c
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e1f50
mov ebx, dword [ebp - 0x480]
lea eax, [ebp - 0x420]
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x49c]
push eax
lea eax, [ebx + ebx*2]
lea ecx, [ecx + eax*8]
add ecx, 0xac
call fcn.004035d0
mov edi, dword [ebp - 0x47c]
test ebx, ebx
mov eax, 1
cmove edi, eax
mov dword [ebp - 0x47c], edi
jmp 0x4e1fa8
mov ebx, dword [ebp - 0x480]
mov edi, dword [ebp - 0x47c]
mov edx, dword [ebp - 0x494]
or eax, 0xffffffff
mov byte [ebp - 4], 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e1fc7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4e1fe3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
mov dword [ebp - 0x480], ebx
cmp ebx, 3
jb 0x4e1970
mov byte [ebp - 0x460], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4e203b
test byte [ecx + 0x1c], 1
je 0x4e203b
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5d9bd8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x50
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x464]
call fcn.0040a570
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.0056d977
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004013a0
int3