Function at 0x406a50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79e687
mov eax, dword fs:[0]
push eax
mov eax, 0x1048
call fcn.006e70d0
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 ebx, ecx
mov dword [ebp - 0x1054], ebx
mov ecx, 0x4e
mov eax, dword [ebp + 8]
mov esi, str.CxcxgiuQ3D394ip43dAdjww7TcflLy5LYrtE40DJDxmnGB5sxCAB96mSEZXGVZkkRzBNrlbzRbeXv7I7KYY1aPpmc1xEWRMXP8MYv6JGQ0ZIZ4OfgkAqG6dijvMCzOy7OBIpD1A33VkxQNACbcgopODjvHQhndx2j5gY8E4aOdXdbWlvXorI5flZJ63OwuIyCtcTG2FUZRgKaKzEvXPfpox9TlQEoG0Jp5QBsPT7uFQPd47N1Zku6SHIDIjPi2cEqR0ul6SMbAP9WoZZKLfd2xbOB0CkRXcBNmisufcUCJj4T3VL45CNP6w0u
mov dword [ebp - 0x1040], eax
lea edi, [ebp - 0x484]
mov dword [ebp - 0x1050], 0
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x57
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1048], 0
movsw word es:[edi], word [esi]
mov esi, str.Y62e0h72VaVQOZimXp629bn9IT0euvghKIZflxgxHGekK2ymZRgHqE9C8jJYJwZqIPHtphaDyQnz4zXISm7d1DWybNaZ6oAZJnFTwAWWNSmyZInFVhtXu5NyB5ixPNxLWEeJc5gyhg3ivNHHrYpUj8GBqMtJaIstjt2S90asPphpGDp9kVNdTtdViTzSx8xG3AsvKB8oVFqxaRXQoKRakTeWbAAGOxCfXx5e2TgNmcGyk8sq5jLo4ouNgakSYUcCqRjzz8R2Ur4eajw5tZ2zMyfNbO45fA3lNZDx8ija7CIXC7vkRzUcsl9fUFoYhSZ9WPMXL8YADx0YL2FHLAprB797mN0it1
lea edi, [ebp - 0x5e4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
cmp byte [ebp - 0x484], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1010], 0xf
mov dword [ebp - 0x1014], 0
mov byte [ebp - 0x1024], 0
jne 0x406b09
xor ecx, ecx
jmp 0x406b1b
lea ecx, [ebp - 0x484]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406b12
sub ecx, edx
push ecx
lea eax, [ebp - 0x484]
push eax
lea ecx, [ebp - 0x1024]
call fcn.004080f0
lea eax, [ebp - 0x1024]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x1050]
call fcn.004082f0
mov eax, dword [ebp - 0x1010]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x406b66
inc eax
lea ecx, [ebp - 0x1024]
push eax
push dword [ebp - 0x1024]
call fcn.004081f0
cmp byte [ebp - 0x5e4], 0
mov dword [ebp - 0x1010], 0xf
mov dword [ebp - 0x1014], 0
mov byte [ebp - 0x1024], 0
jne 0x406b8e
xor ecx, ecx
jmp 0x406ba0
lea ecx, [ebp - 0x5e4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406b97
sub ecx, edx
push ecx
lea eax, [ebp - 0x5e4]
push eax
lea ecx, [ebp - 0x1024]
call fcn.004080f0
lea eax, [ebp - 0x1024]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1050]
call fcn.004082f0
mov eax, dword [ebp - 0x1010]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x406beb
inc eax
lea ecx, [ebp - 0x1024]
push eax
push dword [ebp - 0x1024]
call fcn.004081f0
push 0x208
lea eax, [ebp - 0x100c]
push 0
push eax
call fcn.0074fc20
push 0x208
lea eax, [ebp - 0xbfc]
push 0
push eax
call fcn.0074fc20
push 0x208
lea eax, [ebp - 0x9f4]
push 0
push eax
call fcn.0074fc20
push 0x208
lea eax, [ebp - 0xe04]
push 0
push eax
call fcn.0074fc20
push 0x208
lea eax, [ebp - 0x7ec]
push 0
push eax
call fcn.0074fc20
push 0x208
lea eax, [ebp - 0x348]
push 0
push eax
call fcn.0074fc20
add esp, 0x48
lea eax, [ebp - 0x100c]
mov ecx, ebx
push 0
push 0x1a
push eax
push 0
call fcn.00407a20
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x100c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x7ee], ax
test ax, ax
jne 0x406c80
lea eax, [ebp - 0x7ec]
push 0x5c
push eax
call fcn.0074ef34
add esp, 8
mov dword [ebp - 0x1018], 0
mov ebx, eax
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x1010], 0
mov ecx, 0x4b
mov byte [ebp - 4], 3
mov esi, str.FLzd0TO95K5ne0c5qKsNjGPeqoCaOmsAtBieMutHz3J4KARntKJFpUEp8WaIsXrSaHky9vte1rXULxARc4yIaRGLSkHb5yQV06h7cxATrp7mIKvwrAIl3DtkE8gIye9y1ftrTYMkkbckAEmEhTLAWZWEFaq9btxfyivk6aFaUkeiSsc47w7a23deaLj73VUSJCKWXoiUrNx7IrhlXfn0ojsoqPLr4hAuP8hioGWGR8erhrrV8xgYGiLtjRFsTB3iFSwXeFnljeS768dzZ9qbeLs2DCJ9le9DIOjB3dw4JMn9
mov dword [ebp - 0x1028], 0xf
lea edi, [ebp - 0x140]
mov dword [ebp - 0x102c], 0
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x103c], 0
movsb byte es:[edi], byte [esi]
cmp byte [ebp - 0x140], 0
jne 0x406d08
xor ecx, ecx
jmp 0x406d1a
lea ecx, [ebp - 0x140]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406d11
sub ecx, edx
push ecx
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x103c]
call fcn.004080f0
lea eax, [ebp - 0x103c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x1018]
call fcn.004082f0
mov eax, dword [ebp - 0x1028]
mov byte [ebp - 4], 3
cmp eax, 0x10
jb 0x406d65
inc eax
lea ecx, [ebp - 0x103c]
push eax
push dword [ebp - 0x103c]
call fcn.004081f0
test ebx, ebx
je 0x406f84
xor eax, eax
xor ecx, ecx
mov word [ebx], ax
movzx eax, word [ebp + ecx - 0x7ec]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0xbfe], ax
test ax, ax
jne 0x406d74
lea ecx, [ebp - 0xbfc]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x406d95
mov eax, dword [str.Local]
mov dword [ecx], eax
mov eax, dword [0x7b7054]
mov dword [ecx + 4], eax
mov eax, dword [0x7b7058]
mov dword [ecx + 8], eax
mov ax, word [0x7b705c]
mov word [ecx + 0xc], ax
call fcn.00402330
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0xbfc]
push eax
call esi
test eax, eax
mov ebx, 1
mov eax, 0
cmovne eax, ebx
xor ecx, ecx
mov dword [ebp - 0x1044], eax
nop dword [eax]
movzx eax, word [ebp + ecx - 0x7ec]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x9f6], ax
test ax, ax
jne 0x406df0
lea ecx, [ebp - 0x9f4]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x406e11
mov eax, dword [str.LocalLow]
mov dword [ecx], eax
mov eax, dword [0x7b7064]
mov dword [ecx + 4], eax
mov eax, dword [0x7b7068]
mov dword [ecx + 8], eax
mov eax, dword [0x7b706c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x7b7070]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x9f4]
push eax
call esi
test eax, eax
mov edi, 0
cmovne edi, ebx
call fcn.00402330
xor ecx, ecx
nop
movzx eax, word [ebp + ecx - 0x7ec]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0xe06], ax
test ax, ax
jne 0x406e60
lea ecx, [ebp - 0xe04]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x406e81
mov eax, dword [str.Roaming]
mov dword [ecx], eax
mov eax, dword [0x7b7078]
mov dword [ecx + 4], eax
mov eax, dword [0x7b707c]
mov dword [ecx + 8], eax
mov eax, dword [0x7b7080]
mov dword [ecx + 0xc], eax
mov ax, word [0x7b7084]
mov word [ecx + 0x10], ax
lea eax, [ebp - 0xe04]
push eax
call esi
test eax, eax
mov ebx, 0
mov eax, 1
cmovne ebx, eax
call fcn.00402330
mov eax, dword [ebp - 0x1044]
test eax, eax
je 0x406f84
test edi, edi
je 0x406f84
test ebx, ebx
je 0x406f84
push str.BundleBind
lea eax, [ebp - 0x9f4]
push eax
lea eax, [ebp - 0x348]
push str._s_s_
push eax
call fcn.00408370
add esp, 0x10
lea eax, [ebp - 0x348]
push eax
call esi
test eax, eax
jne 0x406f2d
lea eax, [ebp - 0x348]
push eax
call fcn.00728ac0
add esp, 4
call fcn.00402330
cmp word [ebp - 0x348], 0
jne 0x406f53
xor ecx, ecx
lea eax, [ebp - 0x348]
push ecx
mov ecx, dword [ebp - 0x1040]
push eax
call fcn.00402820
jmp 0x406f95
lea ecx, [ebp - 0x348]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406f60
sub ecx, edx
lea eax, [ebp - 0x348]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x1040]
push eax
call fcn.00402820
jmp 0x406f95
push dword [ebp - 0x1040]
mov ecx, dword [ebp - 0x1054]
call fcn.00405d20
mov esi, dword [ebp - 0x1018]
test esi, esi
je 0x406fe1
push dword [ebp - 0x1044]
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x1014]
push esi
call fcn.00405920
mov ecx, dword [ebp - 0x1010]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
lea ecx, [ebp - 0x1018]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00425c80
mov esi, dword [ebp - 0x1050]
test esi, esi
je 0x40702d
push dword [ebp - 0x1044]
lea ecx, [ebp - 0x1050]
push ecx
push dword [ebp - 0x104c]
push esi
call fcn.00405920
mov ecx, dword [ebp - 0x1048]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
lea ecx, [ebp - 0x1050]
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