Function at 0x4842a7
Capabilities:
Check if file exists

Disassembly:
push 0x2a8
mov eax, 0x68fd4d
call fcn.0056e23b
mov dword [ebp - 0x2b0], ecx
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2ac], esi
cmp dword [ecx + 0x18], esi
je 0x484751
test ebx, ebx
je 0x484751
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x484751
push ebx
lea ecx, [ebp - 0x48]
call fcn.0041d41a
and dword [ebp - 4], esi
mov esi, dword [ebp - 0x34]
push 0x5c
pop edi
test esi, esi
je 0x48432e
dec esi
lea ecx, [ebp - 0x44]
push esi
call fcn.00404220
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
cmp word [eax + esi*2], di
je 0x48432e
push 0x6c7304
lea ecx, [ebp - 0x48]
call fcn.00419c79
push 0x6c7308
lea ecx, [ebp - 0x48]
call fcn.00419c79
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x298]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
call fcn.00565625
mov edi, eax
mov dword [ebp - 0x2a8], edi
pop ecx
pop ecx
cmp edi, 0xffffffff
je 0x484519
mov eax, dword [ebp - 0x2b4]
test eax, eax
je 0x484376
push dword [ebp + 0x10]
call eax
pop ecx
test byte [ebp - 0x298], 0x10
jne 0x4844fc
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0041d41a
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4843c2
dec esi
lea ecx, [ebp - 0x28]
push esi
call fcn.00404220
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x5c
cmovae eax, dword [ebp - 0x28]
pop ecx
cmp word [eax + esi*2], cx
je 0x4843c2
push 0x6c7314
lea ecx, [ebp - 0x2c]
call fcn.00419c79
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00419c79
and dword [ebp - 0x2a0], 0
lea ecx, [ebp - 0x2a0]
and dword [ebp - 0x29c], 0
call fcn.0048294c
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2a0]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2b0]
push eax
call fcn.00484851
test eax, eax
jne 0x4844e1
cmp dword [ebp - 0x29c], eax
je 0x4844e1
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x2a4], 1
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00483aaf
mov esi, dword [ebp - 0x2a0]
cmp eax, esi
je 0x484452
cmp dword [eax + 0x10], 1
jle 0x484454
mov eax, esi
cmp eax, esi
je 0x4844e1
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x2a4], 1
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00483aaf
cmp eax, esi
je 0x484482
cmp dword [eax + 0x10], 1
jle 0x484484
mov eax, esi
cmp dword [eax + 0x54], 0
je 0x4844e1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x2a4]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2a4], 1
cmovae edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x2a0]
push eax
call fcn.00483aaf
cmp eax, esi
je 0x4844bb
cmp dword [eax + 0x10], 1
jle 0x4844bd
mov eax, esi
add eax, 0x44
cmp dword [eax + 0x14], 8
jb 0x4844c8
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2b0]
push edi
push eax
call fcn.00484186
inc dword [ebp - 0x2ac]
mov edi, dword [ebp - 0x2a8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a0]
call fcn.00483dcb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0041786a
lea eax, [ebp - 0x298]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x484366
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
lea ecx, [ebp - 0x48]
call fcn.004179fb
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x484554
dec esi
lea ecx, [ebp - 0x44]
push esi
call fcn.00404220
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0x5c
cmovae eax, dword [ebp - 0x44]
pop ecx
cmp word [eax + esi*2], cx
je 0x484554
push 0x6c7318
lea ecx, [ebp - 0x48]
call fcn.00419c79
push 0x6c731c
lea ecx, [ebp - 0x48]
call fcn.00419c79
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x298]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
call fcn.00565625
mov edi, eax
mov dword [ebp - 0x2a4], edi
pop ecx
pop ecx
cmp edi, 0xffffffff
je 0x48473f
mov eax, dword [ebp - 0x2b4]
test eax, eax
je 0x48459c
push dword [ebp + 0x10]
call eax
pop ecx
test byte [ebp - 0x298], 0x10
jne 0x484722
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0041d41a
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4845e8
dec esi
lea ecx, [ebp - 0x28]
push esi
call fcn.00404220
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x5c
cmovae eax, dword [ebp - 0x28]
pop ecx
cmp word [eax + esi*2], cx
je 0x4845e8
push 0x6c7330
lea ecx, [ebp - 0x2c]
call fcn.00419c79
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00419c79
and dword [ebp - 0x2a0], 0
lea ecx, [ebp - 0x2a0]
and dword [ebp - 0x29c], 0
call fcn.0048294c
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2a0]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2b0]
push eax
call fcn.00484851
test eax, eax
jne 0x484707
cmp dword [ebp - 0x29c], eax
je 0x484707
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x2a8], 1
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00483aaf
mov esi, dword [ebp - 0x2a0]
cmp eax, esi
je 0x484678
cmp dword [eax + 0x10], 1
jle 0x48467a
mov eax, esi
cmp eax, esi
je 0x484707
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x2a8], 1
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00483aaf
cmp eax, esi
je 0x4846a8
cmp dword [eax + 0x10], 1
jle 0x4846aa
mov eax, esi
cmp dword [eax + 0x54], 0
je 0x484707
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x2a8]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x2a8], 1
cmovae edi, dword [ebp - 0x28]
lea ecx, [ebp - 0x2a0]
push eax
call fcn.00483aaf
cmp eax, esi
je 0x4846e1
cmp dword [eax + 0x10], 1
jle 0x4846e3
mov eax, esi
add eax, 0x44
cmp dword [eax + 0x14], 8
jb 0x4846ee
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2b0]
push edi
push eax
call fcn.00484186
inc dword [ebp - 0x2ac]
mov edi, dword [ebp - 0x2a4]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2a0]
call fcn.00483dcb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0041786a
lea eax, [ebp - 0x298]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x48458c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0041786a
mov esi, dword [ebp - 0x2ac]
mov eax, esi
call fcn.0056e1e5
ret 0xc