Function at 0x405af0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532096
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x657114]
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.0046df6c
push 0
push 0x1a
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
push 0
call fcn.00407590
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405b45
sub ecx, edx
sar ecx, 1
je 0x405d3e
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x405b63
mov eax, dword [0x63d88c]
lea ecx, [ebp - 0x218]
mov dword [edi], eax
add ecx, 0xfffffffe
nop
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x405b80
mov eax, dword [str.BundleBind]
mov dword [ecx], eax
mov eax, dword [0x54911c]
mov dword [ecx + 4], eax
mov eax, dword [0x549120]
mov dword [ecx + 8], eax
mov eax, dword [0x549124]
mov dword [ecx + 0xc], eax
mov eax, dword [0x549128]
mov dword [ecx + 0x10], eax
mov ax, word [0x54912c]
mov word [ecx + 0x14], ax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
mov ecx, 0x78
mov dword [ebp - 4], 0
mov esi, str.jFX2IUz0jAQGDo6RYEWtgpFcCXjCzg5SetZJxyFxaExWH73FGQVmCqR0Geaf8j290RESrLW8zqQjJPxn4xSRlP0sO2ni8fva1b7lD3kM9Vakvhxgic8nb1m1LdlHdPBkVa27eXdbu57LQiE1s4Dt0bDmxKW5yefCqBrRjUtSJErXHTRsRLXk1PEJ0R4nEWJ63ROMS95EoJKNs96iSY8QQUlJe0zHSUznqyeh4QNxZLW8nwrwY0v6ffMvstqmgFjG5hvm7dhIGyCjTFUIkk5pkFB32NwbwhDcAwbOckhmiezUqnVLJjeN5JISkf2Aun5wVRKolU3utd7GuQkKjyovN15bqA4gz8rCro8yyiMe0opa8NIJ9DoKuuF1MR73Gnof8MCSH2NdFit0CWojwu4DGnXHlnPbxUNSDmGf6XLc6q2Vkr5gyK2leEqh7Wgey6Cqsy04wz601kp3cc9I0oB2cqC8e8dGMzUhqo
mov dword [ebp - 0x400], 0xf
lea edi, [ebp - 0x3fc]
mov dword [ebp - 0x404], 0
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x414], 0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
cmp byte [ebp - 0x3fc], 0
jne 0x405c1f
xor ecx, ecx
jmp 0x405c31
lea ecx, [ebp - 0x3fc]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405c28
sub ecx, edx
push ecx
lea eax, [ebp - 0x3fc]
push eax
lea ecx, [ebp - 0x414]
call fcn.00407bd0
lea eax, [ebp - 0x414]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x420]
call fcn.00407e30
mov eax, dword [ebp - 0x400]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x405c7c
inc eax
lea ecx, [ebp - 0x414]
push eax
push dword [ebp - 0x414]
call fcn.00407cd0
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x405c85
mov eax, dword [0x63d88c]
mov dword [edi], eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405cb8
lea eax, [ebp - 0x218]
push eax
call fcn.004c0987
add esp, 4
call fcn.00402160
cmp word [ebp - 0x218], 0
jne 0x405ccb
xor ecx, ecx
jmp 0x405ce3
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405cd4
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00402650
mov esi, dword [ebp - 0x420]
test esi, esi
je 0x405d3e
push dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x41c]
push esi
call fcn.004056f0
mov ecx, dword [ebp - 0x418]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
lea ecx, [ebp - 0x420]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00407d30
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.004682d0
mov esp, ebp
pop ebp
ret 4