Function at 0x404360
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x31c
mov eax, dword [0x4a02f0]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x10], 0x104
push edi
mov dword [esp + 0x5c], ebx
jb 0x4043a6
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], bl
jne 0x404443
lea eax, [esp + 0x30]
push eax
push esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov word [esp + 0x40], bx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.00405aa0
add esp, 8
test al, al
je 0x404415
cmp byte [esp + 0x38], bl
je 0x404415
cmp dword [esi + 0x14], 8
jb 0x4043f4
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x40441f
mov eax, dword [esi]
jmp 0x404421
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x404443
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
push 0x208
lea edx, [esp + 0x116]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x11c], cx
call fcn.0046e0e0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
cmp byte [0x56e35a], bl
je 0x4044e2
mov eax, 1
cmp dword [0x56e33c], eax
jg 0x4044d1
push eax
push 2
lea ecx, [esp + 0x70]
mov ebx, eax
mov dword [esp + 0x68], eax
call fcn.00409640
mov dword [esp + 0x104], str.file_util_win.cc
mov dword [esp + 0x108], 0x6a
call edi
push 0x6a
mov edx, str.file_util_win.cc
lea ecx, [esp + 0x64]
mov dword [esp + 0x110], eax
call fcn.0040b130
lea eax, [esp + 0x68]
push str.copying
push eax
call fcn.00403540
add esp, 8
test bl, 1
je 0x4044e2
lea ecx, [esp + 0x60]
and ebx, 0xfffffffe
call fcn.0040ae20
cmp dword [esi + 0x14], 8
jb 0x4044ec
mov eax, dword [esi]
jmp 0x4044ee
mov eax, esi
lea edx, [esp + 0x110]
sub edx, eax
jmp 0x404500
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404500
xor eax, eax
lea ecx, [esp + 0x110]
mov edx, 0x414
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], ecx
mov word [esp + 0x20], dx
cmp byte [ebp + 0xc], al
jne 0x40455e
mov eax, 0x1494
mov word [esp + 0x20], ax
cmp byte [0x56e35a], 0
je 0x4045d9
mov eax, 1
cmp dword [0x56e33c], eax
jg 0x4045c8
push eax
push 2
lea ecx, [esp + 0x70]
or ebx, 2
mov dword [esp + 0x68], eax
call fcn.00409640
mov dword [esp + 0x104], str.file_util_win.cc
mov dword [esp + 0x108], 0x74
call edi
push 0x74
mov edx, str.file_util_win.cc
lea ecx, [esp + 0x64]
mov dword [esp + 0x110], eax
call fcn.0040b130
lea ecx, [esp + 0x68]
push str.Performing_shell_operation
push ecx
call fcn.00403540
add esp, 8
test bl, 2
je 0x4045d9
lea ecx, [esp + 0x60]
and ebx, 0xfffffffd
call fcn.0040ae20
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp byte [0x56e35a], 0
mov esi, eax
je 0x404666
mov eax, 1
cmp dword [0x56e33c], eax
jg 0x404658
push eax
push 2
lea ecx, [esp + 0x70]
or ebx, 4
mov dword [esp + 0x68], eax
call fcn.00409640
mov dword [esp + 0x104], str.file_util_win.cc
mov dword [esp + 0x108], 0x77
call edi
push 0x77
mov edx, str.file_util_win.cc
lea ecx, [esp + 0x64]
mov dword [esp + 0x110], eax
call fcn.0040b130
push esi
lea eax, [esp + 0x6c]
push str.Done:
push eax
call fcn.00403540
add esp, 8
mov ecx, eax
call fcn.004066a0
test bl, 4
je 0x404666
lea ecx, [esp + 0x60]
call fcn.0040ae20
cmp dword [esp + 0x22], 0
jne 0x40438f
test esi, esi
je 0x404699
cmp esi, 2
je 0x404699
cmp esi, 0x402
je 0x404699
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x324]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret