Function at 0x40bce0
Capabilities:
Delete directory
Delete file
Print debug messages

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [edi - 0xc], 0
jl 0x40bfb1
push 0x45faa0
push edi
call fcn.0043a679
add esp, 8
test eax, eax
je 0x40bfb1
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x40bfb1
cmp dword [edi - 0xc], 4
jl 0x40bfb1
push 0x45ebe4
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
call fcn.004076d0
push eax
call fcn.004036d0
mov bl, al
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bd69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40bdb0
mov edi, dword [edi - 0xc]
add edi, 0xffffffff
push edi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00407750
push eax
lea ecx, [esp + 0x48]
call fcn.00402800
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bdac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x44]
lea ecx, [esp + 0x28]
call fcn.00429bb8
call fcn.00423381
test eax, eax
jne 0x40bdcc
push 0x80004005
call fcn.00402160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
push edi
lea ecx, [esp + 0x14]
add eax, 0x10
push 0x45faa4
push ecx
mov dword [esp + 0x1c], eax
call fcn.00404fb0
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0
push edx
lea ecx, [esp + 0x30]
call fcn.00429c46
test eax, eax
je 0x40bf78
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x28]
call fcn.00429a16
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], eax
call fcn.00429b7b
test eax, eax
jne 0x40bf6d
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x2c]
call edx
test eax, eax
je 0x40bee9
call fcn.00423381
test eax, eax
je 0x40bdc2
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [esp + 0x18]
add eax, 0x10
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], eax
call fcn.00429ed6
mov edx, dword [eax]
push edx
push edi
lea eax, [esp + 0x1c]
push 0x45fab4
push eax
call fcn.00404fb0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bea3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x28], esp
mov ebx, esp
push esi
call fcn.004020e0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call sym.QiyiInstaller.exe_RMDir
add esp, 4
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf6d
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x40bf6d
call fcn.00423381
test eax, eax
je 0x40bdc2
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [esp + 0x1c]
add eax, 0x10
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], eax
call fcn.00429ed6
mov edx, dword [eax]
push edx
push edi
lea eax, [esp + 0x1c]
push 0x45fab4
push eax
call fcn.00404fb0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push esi
call ebp
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x20], 0
jne 0x40be0d
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x28]
call fcn.00429946
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bfa8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
call fcn.00429bde
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bfcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret