Function at 0x405d20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79e4a6
mov eax, dword fs:[0]
push eax
sub esp, 0x3fc
mov eax, dword [0x8ca144]
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 ebx, dword [ebp + 8]
call fcn.00402330
push 0
push 0x1a
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
push 0
call fcn.00407a20
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405d75
sub ecx, edx
sar ecx, 1
je 0x405f8a
call fcn.00402330
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x405da0
mov eax, dword [0x8b08b4]
lea ecx, [ebp - 0x218]
mov dword [edi], eax
add ecx, 0xfffffffe
nop dword [eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x405dc0
mov eax, dword [str.BundleBind]
mov dword [ecx], eax
mov eax, dword [0x7b708c]
mov dword [ecx + 4], eax
mov eax, dword [0x7b7090]
mov dword [ecx + 8], eax
mov eax, dword [0x7b7094]
mov dword [ecx + 0xc], eax
mov eax, dword [0x7b7098]
mov dword [ecx + 0x10], eax
mov ax, word [0x7b709c]
mov word [ecx + 0x14], ax
mov dword [ebp - 0x404], 0
mov dword [ebp - 0x400], 0
mov dword [ebp - 0x3fc], 0
mov ecx, 0x71
mov dword [ebp - 4], 0
mov esi, str.W20RXCaLj3q1CXqmw92LeCYA9oniilvp8Q1NhP2IhTsX38uE4PGoQ5fGGwmPGZij2uAzwiMQ93n8K9Q8xSgg1NDl14VfH8tFxG0m2N5C7DyuaAjgKkCRv0t79vVmUKmdwIRjCQ0F8TVEUGRu5NVnuKniGNob95VpeWkC79U2uTeUFFVORudXAxyRqjFIpWAHYpsVF0L97P44StM2nvxflSDMuhXlLPMs4rdAZezzxWS8tWPnGacJ1L2VAsUk0IxkZvMVmXkpLa9aJkm4b4kzrgvM8yRr5o9JYv8Q9Dpkc3XsT4z84p8z93bnlX5yEdlCuypQjC8fphyhmgiRQJtj8WBX6A70ILTVq74k2NeRXVANhaUu2EQtHe4wKaCKSKTo09dPlgIFHJ7Ogl2twOkgcRwAY78OIJ37gqcrjjMSLXfp0hvnRqPhMNhADDl6vMJM1in1z
mov dword [ebp - 0x3e4], 0xf
lea edi, [ebp - 0x3e0]
mov dword [ebp - 0x3e8], 0
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x3f8], 0
movsw word es:[edi], word [esi]
cmp byte [ebp - 0x3e0], 0
jne 0x405e5e
xor ecx, ecx
jmp 0x405e70
lea ecx, [ebp - 0x3e0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405e67
sub ecx, edx
push ecx
lea eax, [ebp - 0x3e0]
push eax
lea ecx, [ebp - 0x3f8]
call fcn.004080f0
lea eax, [ebp - 0x3f8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x404]
call fcn.004082f0
mov eax, dword [ebp - 0x3e4]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x405ebb
inc eax
lea ecx, [ebp - 0x3f8]
push eax
push dword [ebp - 0x3f8]
call fcn.004081f0
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x405ec4
mov eax, dword [0x8b08b4]
mov dword [edi], eax
call fcn.00402330
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405efc
lea eax, [ebp - 0x218]
push eax
call fcn.00728ac0
add esp, 4
call fcn.00402330
cmp word [ebp - 0x218], 0
jne 0x405f0f
xor ecx, ecx
jmp 0x405f2f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405f20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00402820
mov esi, dword [ebp - 0x404]
test esi, esi
je 0x405f8a
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x400]
push esi
call fcn.00405920
mov ecx, dword [ebp - 0x3fc]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
lea ecx, [ebp - 0x404]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00425c80
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.006e70bb
mov esp, ebp
pop ebp
ret 4