Function at 0x405050
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443649
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4513a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1d0], ecx
mov ecx, dword [ebp - 0x1d0]
call fcn.00402620
mov eax, dword [ebp - 0x1d0]
push eax
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x70
push ecx
call fcn.0040b720
add esp, 8
movzx edx, al
test edx, edx
je 0x405438
lea ecx, [ebp - 0x9c]
call fcn.0040a210
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.0040a210
mov byte [ebp - 4], 1
push 0x44a760
lea ecx, [ebp - 0x64]
call fcn.0040a290
mov byte [ebp - 4], 2
push str.Common_Desktop
lea ecx, [ebp - 0x48]
call fcn.0040a290
mov byte [ebp - 4], 3
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.0040c0c0
add esp, 0xc
push 0x44a804
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.0040b570
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x80]
call fcn.0040a370
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x64]
call fcn.0040a310
push str.Common_Programs
lea ecx, [ebp - 0x48]
call fcn.0040a310
lea edx, [ebp - 0xb8]
push edx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.0040c0c0
add esp, 0xc
push 0x44a8bc
lea ecx, [ebp - 0xb8]
call fcn.0040a350
push 0x44a8c8
lea edx, [ebp - 0xb8]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0040b570
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.0040a370
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x44a8dc
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0x10c]
push edx
call fcn.0040b570
add esp, 0xc
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d8], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1d8]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040a2f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10c]
call fcn.0040a2d0
lea ecx, [ebp - 0x2c]
call fcn.0040a370
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xb8]
call fcn.0040a370
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [ebp - 0x1d0]
cmp dword [edx + 0xf8], 0
je 0x4053e2
lea ecx, [ebp - 0xd4]
call fcn.0040a210
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1d0]
call fcn.00407450
mov eax, dword [ebp - 0x1d0]
add eax, 0x70
push eax
lea ecx, [ebp - 0xd4]
call fcn.0040a2f0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x110], esp
lea edx, [ebp - 0xd4]
push edx
call fcn.0040a240
mov dword [ebp - 0x1dc], eax
call fcn.00411250
add esp, 0x1c
push 0x44a8f4
mov eax, dword [ebp - 0x1d0]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0040b570
add esp, 0xc
mov dword [ebp - 0x1e0], eax
mov edx, dword [ebp - 0x1e0]
mov dword [ebp - 0x1e4], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x1e4]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0040a2f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x12c]
call fcn.0040a2d0
lea ecx, [ebp - 0xd4]
call fcn.0040a370
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x44a930
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x1c
push ecx
lea edx, [ebp - 0x148]
push edx
call fcn.0040b570
add esp, 0xc
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x1ec], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1ec]
push ecx
lea ecx, [ebp - 0xd4]
call fcn.0040a2f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x148]
call fcn.0040a2d0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14c], esp
lea edx, [ebp - 0xd4]
push edx
call fcn.0040a240
mov dword [ebp - 0x1f0], eax
call fcn.00411250
add esp, 0x1c
push 0x44a970
mov eax, dword [ebp - 0x1d0]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x168]
push ecx
call fcn.0040b570
add esp, 0xc
mov dword [ebp - 0x1f4], eax
mov edx, dword [ebp - 0x1f4]
mov dword [ebp - 0x1f8], edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x1f8]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0040a2f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x168]
call fcn.0040a2d0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x16c], esp
lea edx, [ebp - 0xd4]
push edx
call fcn.0040a240
mov dword [ebp - 0x1fc], eax
call fcn.00411250
add esp, 0x1c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd4]
call fcn.0040a2d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0040a2d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.0040a2d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.0040a2d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.0040a2d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.0040a2d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.0040a2d0
jmp 0x4055b7
lea ecx, [ebp - 0xf0]
call fcn.0040a210
mov dword [ebp - 4], 0xb
push str.BaiduBaiduSdConfig810.dat
mov eax, dword [ebp - 0x1d0]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x188]
push ecx
call fcn.0040b570
add esp, 0xc
mov dword [ebp - 0x200], eax
mov edx, dword [ebp - 0x200]
mov dword [ebp - 0x204], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x204]
push eax
lea ecx, [ebp - 0xf0]
call fcn.0040a2f0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x188]
call fcn.0040a2d0
lea ecx, [ebp - 0xf0]
call fcn.0040a370
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.BaiduBaiduSdInstallerUpdate
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x1c
push ecx
lea edx, [ebp - 0x1a4]
push edx
call fcn.0040b570
add esp, 0xc
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x20c], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0xf0]
call fcn.0040a2f0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1a4]
call fcn.0040a2d0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1a8], esp
lea edx, [ebp - 0xf0]
push edx
call fcn.0040a240
mov dword [ebp - 0x210], eax
call fcn.00411250
add esp, 0x1c
push str.BaiduBaiduSdModuleUpdate
mov eax, dword [ebp - 0x1d0]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x1c4]
push ecx
call fcn.0040b570
add esp, 0xc
mov dword [ebp - 0x214], eax
mov edx, dword [ebp - 0x214]
mov dword [ebp - 0x218], edx
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x218]
push eax
lea ecx, [ebp - 0xf0]
call fcn.0040a2f0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1c4]
call fcn.0040a2d0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c8], esp
lea edx, [ebp - 0xf0]
push edx
call fcn.0040a240
mov dword [ebp - 0x21c], eax
call fcn.00411250
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.0040a2d0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1cc], esp
mov eax, dword [ebp - 0x1d0]
push eax
call fcn.0040a240
mov dword [ebp - 0x220], eax
call fcn.00411250
add esp, 0x1c
mov ecx, dword [ebp - 0x1d0]
cmp dword [ecx + 0x108], 0
je 0x405605
mov ecx, dword [ebp - 0x1d0]
call fcn.00402650
mov edx, dword [ebp - 0x1d0]
mov ecx, dword [edx + 0x108]
mov dword [ecx + 0x68], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004208a1
mov esp, ebp
pop ebp
ret