Function at 0x4dd960
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x74], 0
push 0x513ab0
push 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp + 8]
call fcn.004040d0
push eax
call fcn.00404360
add esp, 8
mov byte [ebp - 0x31], al
lea ecx, [ebp - 0x38]
call fcn.00402e70
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x4dd9c5
lea ecx, [ebp + 8]
call fcn.00403300
sub eax, 1
push eax
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp + 8]
call fcn.00404160
push eax
lea ecx, [ebp + 8]
call fcn.00402e50
lea ecx, [ebp - 0x3c]
call fcn.00402e70
push 0x513ab4
push 1
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp + 0xc]
call fcn.004040d0
push eax
call fcn.00404360
add esp, 8
mov byte [ebp - 0x3d], al
lea ecx, [ebp - 0x44]
call fcn.00402e70
movzx ecx, byte [ebp - 0x3d]
test ecx, ecx
je 0x4dda1d
lea ecx, [ebp + 0xc]
call fcn.00403300
sub eax, 1
push eax
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp + 0xc]
call fcn.00404160
push eax
lea ecx, [ebp + 0xc]
call fcn.00402e50
lea ecx, [ebp - 0x48]
call fcn.00402e70
lea ecx, [ebp - 0x18]
call fcn.004a45e8
lea ecx, [ebp - 0x1c]
call fcn.00407250
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x513ab8
lea edx, [ebp - 0x1c]
push edx
call fcn.00406160
add esp, 0x10
push 0
lea ecx, [ebp - 0x1c]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
lea ecx, [ebp - 0x18]
call fcn.004a4663
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4ddbe6
lea ecx, [ebp - 0x18]
call fcn.004a443a
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x18]
call fcn.004a45a9
test eax, eax
jne 0x4ddbe1
lea ecx, [ebp - 0x18]
call fcn.0040c9c0
test eax, eax
je 0x4ddb21
lea ecx, [ebp - 0x24]
call fcn.00407250
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004a4921
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x513ac4
lea eax, [ebp - 0x24]
push eax
call fcn.00406160
add esp, 0x10
lea ecx, [ebp - 0x4c]
call fcn.00402e70
lea ecx, [ebp + 0xc]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
lea ecx, [ebp - 0x24]
call fcn.00403d10
test eax, eax
je 0x4ddb14
movzx ecx, byte [ebp + 0x14]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
lea edx, [ebp + 0x10]
push edx
call fcn.00402130
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
lea eax, [ebp + 0xc]
push eax
call fcn.00402130
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
lea edx, [ebp - 0x24]
push edx
call fcn.00402130
call fcn.004dd960
add esp, 0x10
lea ecx, [ebp - 0x24]
call fcn.00402e70
jmp 0x4ddbe1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.004a4921
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x4ddb99
push 0x513ad0
lea ecx, [ebp - 0x28]
call fcn.00403d10
test eax, eax
je 0x4ddb97
push str.npclient.dll
lea ecx, [ebp - 0x28]
call fcn.00403d10
test eax, eax
je 0x4ddb97
lea ecx, [ebp - 0x2c]
call fcn.00407250
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x513b08
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00406160
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.00402130
call sym.QiyiInstaller.exe_Delete
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00402e70
jmp 0x4ddbd9
lea ecx, [ebp - 0x30]
call fcn.00407250
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x513b14
lea edx, [ebp - 0x30]
push edx
call fcn.00406160
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
lea eax, [ebp - 0x30]
push eax
call fcn.00402130
call sym.QiyiInstaller.exe_Delete
add esp, 4
lea ecx, [ebp - 0x30]
call fcn.00402e70
lea ecx, [ebp - 0x28]
call fcn.00402e70
jmp 0x4dda5c
lea ecx, [ebp - 0x18]
call fcn.004a4354
lea ecx, [ebp + 8]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4ddc1f
or dword [ebp - 0x74], 1
lea ecx, [ebp + 8]
push ecx
push str.Remove_Dir_Success:
lea edx, [ebp - 0x6c]
push edx
call fcn.00404290
add esp, 0xc
mov dword [ebp - 0x78], eax
jmp 0x4ddc3b
or dword [ebp - 0x74], 2
lea eax, [ebp + 8]
push eax
push str.Remove_Dir_Failed:
lea ecx, [ebp - 0x70]
push ecx
call fcn.00404290
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.00402130
mov ecx, 0x549ce0
call fcn.004eadb0
mov ecx, dword [ebp - 0x74]
and ecx, 2
je 0x4ddc6e
and dword [ebp - 0x74], 0xfffffffd
lea ecx, [ebp - 0x70]
call fcn.00402e70
mov edx, dword [ebp - 0x74]
and edx, 1
je 0x4ddc82
and dword [ebp - 0x74], 0xfffffffe
lea ecx, [ebp - 0x6c]
call fcn.00402e70
lea ecx, [ebp - 0x1c]
call fcn.00402e70
lea ecx, [ebp - 0x18]
call fcn.004a4611
lea ecx, [ebp + 8]
call fcn.00402e70
lea ecx, [ebp + 0xc]
call fcn.00402e70
lea ecx, [ebp + 0x10]
call fcn.00402e70
mov esp, ebp
pop ebp
ret