Function at 0x40e030
Capabilities:
Check if file exists
Delete file
Move file
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec35b
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x53e01c]
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 - 0xa0], ecx
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push str.kernel32.dll
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x40e0c9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push ebx
call esi
push str.Wow64RevertWow64FsRedirection
push ebx
mov dword [ebp - 0x94], eax
call esi
mov esi, dword [ebp - 0x9c]
mov dword [ebp - 0x90], eax
jmp 0x40e0cf
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x94]
test ecx, ecx
je 0x40e0e6
test eax, eax
je 0x40e0e6
lea eax, [ebp - 0x98]
push eax
call ecx
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ebx, dword [ebp - 0xa0]
lea eax, [ebp - 0x28]
push eax
mov edx, ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040d140
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x48], 0
jne 0x40e137
mov esi, 1
jmp 0x40e3d2
test edi, edi
je 0x40e155
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x40e155
cmp dword [ebp - 0x14], 8
mov ecx, edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00407890
push ebx
lea ecx, [ebp - 0x88]
call fcn.00403e90
push 0x11
push str.User_DataFlash_
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
call fcn.00404090
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403e90
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00404090
push 0x13
push str.pepflashplayer.dll
lea ecx, [ebp - 0x40]
call fcn.00404090
push 0x11
xor eax, eax
mov dword [ebp - 0x70], 0
push str._r_QQBrowser__p__
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.00407890
mov byte [ebp - 4], 6
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x70]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00404090
push 1
push 0x52b250
lea ecx, [ebp - 0x70]
call fcn.00404090
mov dword [ebp - 0x8c], 0x103
call fcn.0040bde0
neg eax
lea ecx, [ebp - 0x8c]
push ecx
sbb eax, eax
lea ecx, [ebp - 0x58]
neg eax
mov edx, fcn.004223dd
push 0
push eax
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
call fcn.0040c850
add esp, 0x14
mov ebx, eax
test esi, esi
je 0x40e247
mov ecx, dword [ebp - 0x8c]
mov dword [esi], ecx
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae ecx, dword [ebp - 0x40]
push ecx
call edi
test eax, eax
je 0x40e2ac
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push str.CC_FLASH
push str.SoftwareSogouSogouExplorerPrivateCfg
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
cmovae edx, dword [ebp - 0x28]
cmp dword [ebp - 0x44], 8
cmovae ecx, dword [ebp - 0x58]
call fcn.0040c8e0
xor esi, esi
jmp 0x40e2ed
cmp ebx, 0x800704b4
je 0x40e2c0
cmp dword [ebp - 0x8c], 0x4b4
jne 0x40e2e8
cmp dword [ebp - 0x44], 8
lea esi, [ebp - 0x58]
cmovae esi, dword [ebp - 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40e2e8
push esi
call edi
test eax, eax
je 0x40e2e8
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, 0x80004005
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x40e32b
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e321
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e4b0
push edx
push ecx
call fcn.0045b5e1
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x40e37d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e373
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e4b0
push edx
push ecx
call fcn.0045b5e1
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x40e3d2
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e3c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e4b0
push edx
push ecx
call fcn.0045b5e1
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40e410
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e406
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e4b0
push edx
push ecx
call fcn.0045b5e1
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x40e45d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e453
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e4b0
push edx
push ecx
call fcn.0045b5e1
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 8
cmp dword [ebp - 0x94], eax
je 0x40e492
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x40e492
push dword [ebp - 0x98]
call eax
mov eax, esi
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.0045b5b0
mov esp, ebp
pop ebp
ret
call fcn.004c1e0f
int3