Function at 0x465390
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x74], 0
push 0x488308
push 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp + 8]
call fcn.004058d0
push eax
call fcn.004041e0
add esp, 8
mov byte [ebp - 0x31], al
lea ecx, [ebp - 0x38]
call fcn.00401830
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x4653f5
lea ecx, [ebp + 8]
call fcn.00403aa0
sub eax, 1
push eax
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp + 8]
call fcn.00405960
push eax
lea ecx, [ebp + 8]
call fcn.004039f0
lea ecx, [ebp - 0x3c]
call fcn.00401830
push 0x48830c
push 1
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp + 0xc]
call fcn.004058d0
push eax
call fcn.004041e0
add esp, 8
mov byte [ebp - 0x3d], al
lea ecx, [ebp - 0x44]
call fcn.00401830
movzx ecx, byte [ebp - 0x3d]
test ecx, ecx
je 0x46544d
lea ecx, [ebp + 0xc]
call fcn.00403aa0
sub eax, 1
push eax
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp + 0xc]
call fcn.00405960
push eax
lea ecx, [ebp + 0xc]
call fcn.004039f0
lea ecx, [ebp - 0x48]
call fcn.00401830
lea ecx, [ebp - 0x18]
call fcn.0042c185
lea ecx, [ebp - 0x1c]
call fcn.00406af0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x488310
lea edx, [ebp - 0x1c]
push edx
call fcn.00401850
add esp, 0x10
push 0
lea ecx, [ebp - 0x1c]
call fcn.004039c0
push eax
lea ecx, [ebp - 0x18]
call fcn.0042c213
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x465615
lea ecx, [ebp - 0x18]
call fcn.0042bfe3
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x18]
call fcn.0042c148
test eax, eax
jne 0x465610
lea ecx, [ebp - 0x18]
call fcn.00408ad0
test eax, eax
je 0x465550
lea ecx, [ebp - 0x24]
call fcn.00406af0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042c4a3
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x48831c
lea eax, [ebp - 0x24]
push eax
call fcn.00401850
add esp, 0x10
lea ecx, [ebp - 0x4c]
call fcn.00401830
lea ecx, [ebp + 0xc]
call fcn.004039c0
push eax
lea ecx, [ebp - 0x24]
call fcn.00407660
test eax, eax
je 0x465543
mov cl, byte [ebp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
lea edx, [ebp + 0x10]
push edx
call fcn.004036b0
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
lea eax, [ebp + 0xc]
push eax
call fcn.004036b0
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
lea edx, [ebp - 0x24]
push edx
call fcn.004036b0
call fcn.00465390
add esp, 0x10
lea ecx, [ebp - 0x24]
call fcn.00401830
jmp 0x465610
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042c4a3
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x4655c8
push 0x488328
lea ecx, [ebp - 0x28]
call fcn.00407660
test eax, eax
je 0x4655c6
push str.npclient.dll
lea ecx, [ebp - 0x28]
call fcn.00407660
test eax, eax
je 0x4655c6
lea ecx, [ebp - 0x2c]
call fcn.00406af0
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x488360
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00401850
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.004036b0
call sym.QiyiInstaller.exe_Delete
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00401830
jmp 0x465608
lea ecx, [ebp - 0x30]
call fcn.00406af0
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s
lea edx, [ebp - 0x30]
push edx
call fcn.00401850
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
lea eax, [ebp - 0x30]
push eax
call fcn.004036b0
call sym.QiyiInstaller.exe_Delete
add esp, 4
lea ecx, [ebp - 0x30]
call fcn.00401830
lea ecx, [ebp - 0x28]
call fcn.00401830
jmp 0x46548c
lea ecx, [ebp - 0x18]
call fcn.0042bf13
lea ecx, [ebp + 8]
call fcn.004039c0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x46564e
or dword [ebp - 0x74], 1
lea ecx, [ebp + 8]
push ecx
push str.Remove_Dir_Success:
lea edx, [ebp - 0x6c]
push edx
call fcn.00404130
add esp, 0xc
mov dword [ebp - 0x78], eax
jmp 0x46566a
or dword [ebp - 0x74], 2
lea eax, [ebp + 8]
push eax
push str.Remove_Dir_Failed:
lea ecx, [ebp - 0x70]
push ecx
call fcn.00404130
add esp, 0xc
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x68], edx
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
mov eax, dword [ebp - 0x68]
push eax
call fcn.004036b0
mov ecx, 0x4a23f0
call fcn.0046f040
mov ecx, dword [ebp - 0x74]
and ecx, 2
je 0x46569d
and dword [ebp - 0x74], 0xfffffffd
lea ecx, [ebp - 0x70]
call fcn.00401830
mov edx, dword [ebp - 0x74]
and edx, 1
je 0x4656b1
and dword [ebp - 0x74], 0xfffffffe
lea ecx, [ebp - 0x6c]
call fcn.00401830
lea ecx, [ebp - 0x1c]
call fcn.00401830
lea ecx, [ebp - 0x18]
call fcn.0042c1ab
lea ecx, [ebp + 8]
call fcn.00401830
lea ecx, [ebp + 0xc]
call fcn.00401830
lea ecx, [ebp + 0x10]
call fcn.00401830
mov esp, ebp
pop ebp
ret