Function at 0x1005c810
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008d108
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], vtable.CFileHandler.0
mov esi, dword [ebp + 8]
push esi
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 4], 0
call fcn.1005c620
push esi
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.1005c3d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1005c8b4
cmp dword [ebp - 0x2c], 0
je 0x1005c8b4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005c94c
mov dword [ebp - 0x14], vtable.CUtils.0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x24], 0
je 0x1005c94c
cmp dword [ebp - 0x2c], 0
je 0x1005c94c
lea ecx, [ebp - 0x30]
call fcn.1004f590
jmp 0x1005c94c
cmp eax, dword [ebx + 0x10]
je 0x1005c8e9
test eax, eax
je 0x1005c8c6
push eax
call fcn.1006eaef
add esp, 4
push dword [ebx + 8]
lea ecx, [ebp - 0x30]
push dword [ebx + 0x10]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.1003ea90
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x60]
call fcn.1003fe30
mov byte [ebp - 4], 3
mov edi, dword [eax + 0xc]
test edi, edi
je 0x1005c935
mov eax, dword [ebp - 0x2c]
test eax, eax
jle 0x1005c92c
lea ecx, [eax - 1]
cmp ecx, eax
sbb eax, eax
inc eax
jne 0x1005c922
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x1005c92c
cmp eax, 0x2f
je 0x1005c92c
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.1003eea0
push edi
lea ecx, [ebp - 0x30]
call fcn.1003ef80
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x50], vtable.CStringBufferW.0
test eax, eax
je 0x1005c94c
push eax
call fcn.1006eaef
add esp, 4
push 1
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x20], ecx
mov dword [ecx], vtable.CSeed.0
mov byte [ebp - 4], 5
mov dword [ecx], vtable.CStringBufferW.0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call fcn.1003ea90
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x20], ecx
mov dword [ecx], vtable.CSeed.0
mov byte [ebp - 4], 7
mov dword [ecx], vtable.CStringBufferW.0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
push dword [ebp - 0x5c]
push dword [ebp - 0x54]
call fcn.1003ea90
mov byte [ebp - 4], 6
mov byte [ebp - 4], 2
call fcn.10049dc0
test eax, eax
je 0x1005cad0
cmp dword [esi], 1
jne 0x1005c9e2
mov ecx, ebx
call fcn.1005cb30
push esi
lea eax, [ebp - 0x50]
push eax
call fcn.1005bd40
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.1005bca0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1005ca76
cmp dword [ebp - 0x3c], 0
je 0x1005ca74
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x30]
call fcn.1003fe30
mov ebx, eax
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x14]
call fcn.100436b0
mov dword [ebp - 0x20], vtable.CSetupRegW.0
push ebx
push esi
push edi
push eax
mov byte [ebp - 4], 0xc
call fcn.1004bce0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x70], vtable.CStringBufferW.0
test eax, eax
je 0x1005ca62
push eax
call fcn.1006eaef
add esp, 4
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.1005cc50
mov eax, dword [ebp - 0x34]
test eax, eax
mov dword [ebp - 0x40], vtable.CStringBufferW.0
je 0x1005ca88
push eax
call fcn.1006eaef
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], vtable.CSeed.0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
test eax, eax
je 0x1005cab9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x50], vtable.CStringBufferW.0
test eax, eax
je 0x1005cad0
push eax
call fcn.1006eaef
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], vtable.CStringBufferW.0
test eax, eax
je 0x1005cae7
push eax
call fcn.1006eaef
add esp, 4
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], vtable.CSeed.0
mov dword [ebp - 0x60], vtable.CStringBufferW.0
test eax, eax
je 0x1005cb1a
push eax
call fcn.1006eaef
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4