Function at 0x5302b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e78d
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x59a0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x108]
call fcn.00428cc0
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x400]
mov edx, dword [eax + 0x6c]
cmp word [edx], 0
jne 0x530304
xor ecx, ecx
jmp 0x53031f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x530310
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x108]
call fcn.00405040
mov eax, dword [edi + 0x400]
mov edx, dword [eax + 0x48]
cmp word [edx], 0
jne 0x53033f
xor ecx, ecx
jmp 0x530353
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x530344
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xf0]
call fcn.00405040
mov eax, dword [edi + 0x400]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
inc dword [eax + 0x10]
mov edx, dword [edi + 0x400]
lea eax, [edx + 0x54]
add edx, 0x4c
push eax
call fcn.00401e60
add esp, 4
mov byte [ebp - 4], 1
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5303b6
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x5303da
push ecx
mov ecx, dword [ebp - 0x21c]
mov esi, esp
mov dword [ebp - 0x220], esi
lea ecx, [ecx - 0x10]
call fcn.004021e0
add eax, 0x10
mov dword [esi], eax
call fcn.004e1680
add esp, 4
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x530417
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x530413
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x530417
mov ecx, edx
call esi
mov eax, dword [edi + 0x400]
mov dword [eax + 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x400]
push 0
mov dword [ecx + 0x1c], eax
lea eax, [ebp - 0x108]
cmp dword [ebp - 0xf4], 8
lea ecx, [ebp - 0x18c]
mov dword [ebp - 0x190], ecx
lea ecx, [ebp - 0x190]
cmovae eax, dword [ebp - 0x108]
push eax
call fcn.0042ac40
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp byte [edx], 0
jne 0x530486
xor ecx, ecx
jmp 0x530499
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x530490
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00406560
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18c]
mov eax, dword [ebp - 0x190]
cmp eax, ecx
je 0x5304c0
push eax
call fcn.004a51fb
add esp, 4
cmp dword [ebp - 0xdc], 8
lea eax, [ebp - 0xf0]
lea ecx, [ebp - 0x214]
cmovae eax, dword [ebp - 0xf0]
push 0
mov dword [ebp - 0x218], ecx
lea ecx, [ebp - 0x218]
push eax
call fcn.0042ac40
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
jne 0x530513
xor ecx, ecx
jmp 0x530521
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x530518
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00406560
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x214]
mov eax, dword [ebp - 0x218]
cmp eax, ecx
je 0x530548
push eax
call fcn.004a51fb
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
mov ecx, dword [edi + 0x3ec]
lea edx, [ebp - 0x40]
cmovae esi, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 0x10
push 0
cmovae edx, dword [ebp - 0x40]
mov eax, dword [ecx]
push 0x5540fb
push 1
push esi
push edx
call dword [eax + 8]
mov esi, eax
test esi, esi
je 0x530588
cmp esi, 0xffffffff
je 0x530588
mov ecx, esi
mov eax, 0x59fc14
xchg dword [eax], ecx
mov ecx, dword [edi + 0x3ec]
push esi
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
je 0x5305a1
mov eax, dword [edi + 0x400]
mov dword [eax + 0xc], esi
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x524], 0xb
cmp eax, 0x10
jb 0x5305c0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405350
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x5305e7
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00405350
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.0042a1a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049aa22
mov esp, ebp
pop ebp
ret