Function at 0x406730
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79fc71
mov eax, dword fs:[0]
push eax
mov eax, 0x1004
call fcn.006e6170
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 dword [ebp - 0x1000], ecx
mov ecx, 0x70
mov ebx, dword [ebp + 8]
mov esi, str.vNXF2aODKZsxqcc6cRfpfGZm1m1cKSRclLgON9toy2jJwOdL5qTVFGmM45TRdKntTKUaZxeLoSbzoADkuiU9PhZ9yAMuQonsLtmkAek7X2q2JaD9dSR5XCySTbRhxtVnUEIQfnOqIKuFyNAeoJXWbvZywAdAN5As33F35IM2gjV7Ba9QDtXZPSea9DO0PuRwrT2hkGpVIrWrAkWd3tn5TGHbtHETLbJ6BO9VxpsZ4Gstb78Bkc7XDlmYr4Np8W76qKFj7QLH3YnTp2zogQ8NuDKC3e9KfVy2E0Rjxu5PSjwqUdKOzPiqcWEX8i0Zys8lQlUXQoJJsMcJhr1aqcM9GosdjWHMnbXfl3PhQKejbLKe5zsWaT6ilgyLmqgyBPgqZnGqKsNfC2gTHgusOs0QtzIVHzxoe06GTwgkZ86W2D96eXWXgSFmxUIVdSVfPKE
mov dword [ebp - 0x100c], 0
lea edi, [ebp - 0x7e8]
mov dword [ebp - 0x1008], 0
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x78
mov dword [ebp - 0x1004], 0
mov esi, str.zUmfVk0N9tcEItI3BpEtwhxWEHsZMgQ8s9Yhb2ezCAMOI7n8RRq3Y3kJof2SQ4NmYn9DaT7Cek6RV7MsuYq18aazsY9pCaa3X8qRL7BoE50CphZfdWa0JAnOVvNAT0qiq3AxEoP21xoVxLTaQA3NWL9Y8cpgohWBIImgqJ2UTFU9EO3XRu6ZCgLiu7LIhb8G3yMbgUitRH752EGA6e97jJXrXMRXburj0UZwSFuPk4LJ2nDoNcVd0kriQD0bpeUDQvqxGMPms2taciIF57YZ0zOAQvA8Hnc9sZ9UhcMZEN5lunQvkF64IylLGoBi8MmJ1SNUtvcSvfcSw6uWa2re6yfhdomHFhuvhqb4SlGpA0F7InG8kVDB94DoZWs3xSiUziO4lyAAAplPsc5696Qf2UoK7eypDgJmtSlGYA4ytqJuuVm02NqeXAw920Op01pyCowDZqFpeRoqCbGAgKl7sawWqAMpQPVXEA
lea edi, [ebp - 0x9cc]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
cmp byte [ebp - 0x7e8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xfe8], 0xf
mov dword [ebp - 0xfec], 0
mov byte [ebp - 0xffc], 0
jne 0x4067df
xor ecx, ecx
jmp 0x4067f1
lea ecx, [ebp - 0x7e8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4067e8
sub ecx, edx
push ecx
lea eax, [ebp - 0x7e8]
push eax
lea ecx, [ebp - 0xffc]
call fcn.00407c40
lea eax, [ebp - 0xffc]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x100c]
call fcn.00407ea0
mov eax, dword [ebp - 0xfe8]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x40683c
inc eax
lea ecx, [ebp - 0xffc]
push eax
push dword [ebp - 0xffc]
call fcn.00407d40
cmp byte [ebp - 0x9cc], 0
mov dword [ebp - 0xfe8], 0xf
mov dword [ebp - 0xfec], 0
mov byte [ebp - 0xffc], 0
jne 0x406864
xor ecx, ecx
jmp 0x406879
lea ecx, [ebp - 0x9cc]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406870
sub ecx, edx
push ecx
lea eax, [ebp - 0x9cc]
push eax
lea ecx, [ebp - 0xffc]
call fcn.00407c40
lea eax, [ebp - 0xffc]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x100c]
call fcn.00407ea0
mov eax, dword [ebp - 0xfe8]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x4068c4
inc eax
lea ecx, [ebp - 0xffc]
push eax
push dword [ebp - 0xffc]
call fcn.00407d40
call fcn.00402330
push 0x208
lea eax, [ebp - 0xfe4]
push 0
push eax
call fcn.007512b0
push 0x208
lea eax, [ebp - 0xbd4]
push 0
push eax
call fcn.007512b0
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.007512b0
push 0x208
lea eax, [ebp - 0xddc]
push 0
push eax
call fcn.007512b0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.007512b0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.007512b0
mov edi, dword [ebp - 0x1000]
lea eax, [ebp - 0xfe4]
add esp, 0x48
mov ecx, edi
push 0
push 0x1a
push eax
push 0
call fcn.00407410
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0xfe4]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x422], ax
test ax, ax
jne 0x406960
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.007505c4
add esp, 8
mov esi, eax
call fcn.00402330
test esi, esi
je 0x406bc5
xor eax, eax
xor ecx, ecx
mov word [esi], ax
nop
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0xbd6], ax
test ax, ax
jne 0x4069a0
lea ecx, [ebp - 0xbd4]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4069c1
mov eax, dword [str.Local]
mov dword [ecx], eax
mov eax, dword [0x7b7f88]
mov dword [ecx + 4], eax
mov eax, dword [0x7b7f8c]
mov dword [ecx + 8], eax
mov ax, word [0x7b7f90]
mov word [ecx + 0xc], ax
call fcn.006ee942
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0xbd4]
push eax
call esi
test eax, eax
mov ecx, 1
mov eax, 0
cmovne eax, ecx
xor ecx, ecx
mov dword [ebp - 0x1000], eax
nop dword [eax]
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x62a], ax
test ax, ax
jne 0x406a20
lea ecx, [ebp - 0x628]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x406a41
mov eax, dword [str.LocalLow]
mov dword [ecx], eax
mov eax, dword [0x7b7f98]
mov dword [ecx + 4], eax
mov eax, dword [0x7b7f9c]
mov dword [ecx + 8], eax
mov eax, dword [0x7b7fa0]
mov dword [ecx + 0xc], eax
mov eax, dword [0x7b7fa4]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x628]
push eax
call esi
test eax, eax
mov ecx, 1
mov eax, 0
cmovne eax, ecx
mov dword [ebp - 0x1010], eax
call fcn.006ece98
xor ecx, ecx
nop dword [eax]
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0xdde], ax
test ax, ax
jne 0x406aa0
lea ecx, [ebp - 0xddc]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x406ac1
mov eax, dword [str.Roaming]
mov dword [ecx], eax
mov eax, dword [0x7b7fac]
mov dword [ecx + 4], eax
mov eax, dword [0x7b7fb0]
mov dword [ecx + 8], eax
mov eax, dword [0x7b7fb4]
mov dword [ecx + 0xc], eax
mov ax, word [0x7b7fb8]
mov word [ecx + 0x10], ax
lea eax, [ebp - 0xddc]
push eax
call esi
test eax, eax
mov ecx, 1
mov eax, 0
cmovne eax, ecx
mov ecx, dword [ebp - 0x1000]
test ecx, ecx
je 0x406bc0
mov ecx, dword [ebp - 0x1010]
test ecx, ecx
je 0x406bc0
test eax, eax
je 0x406bc0
push str.BundleBind
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push str._s_s_
push eax
call fcn.00407f20
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x406b6e
lea eax, [ebp - 0x218]
push eax
call fcn.0072a247
add esp, 4
call fcn.00402330
cmp word [ebp - 0x218], 0
jne 0x406b90
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
mov ecx, ebx
call fcn.00402820
jmp 0x406bcd
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406ba0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00402820
jmp 0x406bcd
call fcn.006ef39f
push ebx
mov ecx, edi
call fcn.00405ce0
mov esi, dword [ebp - 0x100c]
test esi, esi
je 0x406c19
push dword [ebp - 0x1010]
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 0x1008]
push esi
call fcn.004058d0
mov ecx, dword [ebp - 0x1004]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
lea ecx, [ebp - 0x100c]
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