Function at 0x406600
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc48
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0xc44], eax
mov eax, dword [esp + 0xc4c]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x206
lea ecx, [esp + 0xa4e]
push ebp
push ecx
mov dword [esp + 0x20], eax
xor ebx, ebx
mov word [esp + 0xa54], bp
call fcn.00437ec0
add esp, 0xc
push 0x206
lea edx, [esp + 0x63e]
push ebp
push edx
mov word [esp + 0x644], bp
call fcn.00437ec0
add esp, 0xc
push 0x206
lea eax, [esp + 0x436]
push ebp
push eax
mov word [esp + 0x43c], bp
call fcn.00437ec0
add esp, 0xc
push 0x206
lea ecx, [esp + 0x846]
push ebp
push ecx
mov word [esp + 0x84c], bp
call fcn.00437ec0
add esp, 0xc
push 0x206
lea edx, [esp + 0x22e]
push ebp
push edx
mov word [esp + 0x234], bp
call fcn.00437ec0
add esp, 0xc
push 0x206
lea eax, [esp + 0x26]
push ebp
push eax
mov word [esp + 0x2c], bp
call fcn.00437ec0
add esp, 0xc
lea edi, [ebp + 0x1a]
lea esi, [esp + 0xa48]
call fcn.00408210
xor eax, eax
jmp 0x4066f0
movzx ecx, word [esp + eax + 0xa48]
mov word [esp + eax + 0x228], cx
add eax, 2
cmp cx, bp
jne 0x4066f0
lea ecx, [esp + 0x228]
push 0x5c
push ecx
call fcn.00433fa5
add esp, 8
cmp eax, ebp
je 0x4068f7
mov word [eax], bp
xor eax, eax
jmp 0x406730
movzx ecx, word [esp + eax + 0x228]
mov word [esp + eax + 0x638], cx
add eax, 2
cmp cx, bp
jne 0x406730
lea eax, [esp + 0x638]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x406752
mov edx, dword [str.Local]
mov ecx, dword [0x566ef0]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [eax], edx
mov edx, dword [0x566ef4]
mov dword [eax + 4], ecx
mov cx, word [0x566ef8]
mov dword [eax + 8], edx
lea edx, [esp + 0x638]
push edx
mov word [eax + 0xc], cx
call esi
test eax, eax
je 0x40679c
mov ebx, 1
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0x228]
mov word [esp + eax + 0x430], cx
add eax, 2
cmp cx, bp
jne 0x4067a0
lea eax, [esp + 0x430]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x4067c2
mov ecx, dword [str.LocalLow]
mov edx, dword [0x566f00]
mov dword [eax], ecx
mov ecx, dword [0x566f04]
mov dword [eax + 4], edx
mov edx, dword [0x566f08]
mov dword [eax + 8], ecx
mov ecx, dword [0x566f0c]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x430]
push edx
mov dword [eax + 0x10], ecx
call esi
test eax, eax
mov edi, 1
jne 0x40680f
mov edi, ebp
xor eax, eax
jmp 0x406820
movzx ecx, word [esp + eax + 0x228]
mov word [esp + eax + 0x840], cx
add eax, 2
cmp cx, bp
jne 0x406820
lea eax, [esp + 0x840]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bp
jne 0x406842
mov ecx, dword [str.Roaming]
mov edx, dword [0x566f14]
mov dword [eax], ecx
mov ecx, dword [0x566f18]
mov dword [eax + 4], edx
mov edx, dword [0x566f1c]
mov dword [eax + 8], ecx
mov cx, word [0x566f20]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x840]
push edx
mov word [eax + 0x10], cx
call esi
test eax, eax
mov eax, 1
jne 0x406891
mov eax, ebp
cmp ebx, ebp
je 0x4068f7
cmp edi, ebp
je 0x4068f7
cmp eax, ebp
je 0x4068f7
push str.SmartCloudIME
lea eax, [esp + 0x434]
push eax
lea ecx, [esp + 0x28]
push 0x566f40
push ecx
call fcn.004338ee
add esp, 0x10
lea edx, [esp + 0x20]
push edx
call esi
test eax, eax
jne 0x4068d0
lea eax, [esp + 0x20]
call fcn.00409610
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4068d7
mov ecx, dword [esp + 0x14]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00402110
jmp 0x406900
mov ebx, dword [esp + 0x14]
call fcn.00407dd0
mov ecx, dword [esp + 0xc54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004338df
add esp, 0xc48
ret 4