Function at 0x405ce0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79fb26
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x8cf144]
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.006f11cd
push 0
push 0x1a
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
push 0
call fcn.00407410
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405d35
sub ecx, edx
sar ecx, 1
je 0x405f4a
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 0x405d60
mov eax, dword [0x8b5784]
lea edx, [ebp - 0x218]
mov dword [edi], eax
add edx, 0xfffffffe
nop dword [eax]
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x405d80
mov ecx, dword [str.BundleBind]
lea edi, [ebp - 0x218]
mov dword [edx], ecx
add edi, 0xfffffffe
mov ecx, dword [0x7b7fc0]
mov dword [edx + 4], ecx
mov ecx, dword [0x7b7fc4]
mov dword [edx + 8], ecx
mov ecx, dword [0x7b7fc8]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x7b7fcc]
mov dword [edx + 0x10], ecx
mov cx, word [0x7b7fd0]
mov word [edx + 0x14], cx
nop dword [eax]
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x405dd0
mov dword [edi], eax
call fcn.006ee1e1
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405e03
lea eax, [ebp - 0x218]
push eax
call fcn.0072a247
add esp, 4
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x328], 0
mov ecx, 0x3c
mov dword [ebp - 4], 0
mov esi, str.55mPdQgYXWOzeRJy5RD8Lv9CQeafXh5ptV2IkLJ7cofeFb5Bi1K0Azlxkhe8xbEdytaTo3JXySQ0VTMh4UbMVTqJhU6xz58pxkoV0ImpziZtHQtEVr3nEfwKlhYrWDJsl5sMmFiKPt6WrVbNBbYAHwRi0Cz5Ozgee4eb0r9GyxAVkxonfR7Xejkkk4VzE1R3SKd3h7IcVQvluIbMohTNUlSJs5yTOvmVXoImh0WPrFPHfdaVf
mov dword [ebp - 0x310], 0xf
lea edi, [ebp - 0x30c]
mov dword [ebp - 0x314], 0
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x324], 0
movsw word es:[edi], word [esi]
cmp byte [ebp - 0x30c], 0
jne 0x405e64
xor ecx, ecx
jmp 0x405e79
lea ecx, [ebp - 0x30c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405e70
sub ecx, edx
push ecx
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0x324]
call fcn.00407c40
lea eax, [ebp - 0x324]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x330]
call fcn.00407ea0
mov eax, dword [ebp - 0x310]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x405ec4
inc eax
lea ecx, [ebp - 0x324]
push eax
push dword [ebp - 0x324]
call fcn.00407d40
cmp word [ebp - 0x218], 0
jne 0x405ed2
xor ecx, ecx
jmp 0x405eef
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ee0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00402820
mov esi, dword [ebp - 0x330]
test esi, esi
je 0x405f4a
push dword [ebp - 0x334]
lea eax, [ebp - 0x330]
push eax
push dword [ebp - 0x32c]
push esi
call fcn.004058d0
mov ecx, dword [ebp - 0x328]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
lea ecx, [ebp - 0x330]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00407da0
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.006e615c
mov esp, ebp
pop ebp
ret 4