Function at 0x474930
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov eax, dword [0x4e44b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 0x14], 0x104
mov dword [ebp - 0x234], ebx
jb 0x47496b
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495cb8
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], bl
jne 0x474a0d
lea ecx, [ebp - 0x25c]
call fcn.0048b610
lea eax, [ebp - 0x25c]
push eax
push esi
call fcn.00473bb0
add esp, 8
test al, al
je 0x4749d2
cmp byte [ebp - 0x254], bl
je 0x4749d2
cmp dword [esi + 0x18], 8
jb 0x4749a6
mov esi, dword [esi + 4]
jmp 0x4749a9
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
lea ecx, [ebp - 0x25c]
setne bl
call fcn.00494620
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495cb8
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x18], 8
jb 0x4749dd
mov eax, dword [esi + 4]
jmp 0x4749e0
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
lea ecx, [ebp - 0x25c]
je 0x474a08
call fcn.00494620
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495cb8
mov esp, ebp
pop ebp
ret
call fcn.00494620
push 0x208
lea ecx, [ebp - 0x20e]
push 0
push ecx
mov word [ebp - 0x210], bx
call fcn.00499a30
add esp, 0xc
cmp byte [0x4e902c], bl
je 0x474a78
call fcn.004722e0
cmp eax, 1
jg 0x474a65
mov ebx, 1
push ebx
push 0x6a
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_base_file_util_win.cc
lea ecx, [ebp - 0x2f0]
call fcn.00473160
add eax, 4
push str.copying
push eax
call fcn.004041d0
add esp, 8
test bl, 1
je 0x474a78
lea ecx, [ebp - 0x2f0]
and ebx, 0xfffffffe
call fcn.00472c30
cmp dword [esi + 0x18], 8
jb 0x474a83
mov ecx, dword [esi + 4]
jmp 0x474a86
lea ecx, [esi + 4]
lea edx, [ebp - 0x210]
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x474a90
xor eax, eax
cmp byte [ebp + 0xc], al
lea edx, [ebp - 0x210]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov word [ebp - 0x214], ax
mov dword [ebp - 0x22c], 3
mov dword [ebp - 0x228], edx
mov word [ebp - 0x220], 0x414
jne 0x474b05
mov word [ebp - 0x220], 0x1494
cmp byte [0x4e902c], 0
je 0x474b53
call fcn.004722e0
cmp eax, 1
jg 0x474b40
push 1
push 0x74
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_base_file_util_win.cc
lea ecx, [ebp - 0x2f0]
or ebx, 2
call fcn.00473160
add eax, 4
push str.Performing_shell_operation
push eax
call fcn.004041d0
add esp, 8
test bl, 2
je 0x474b53
lea ecx, [ebp - 0x2f0]
and ebx, 0xfffffffd
call fcn.00472c30
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp byte [0x4e902c], 0
mov esi, eax
je 0x474bb5
call fcn.004722e0
cmp eax, 1
jg 0x474ba5
push 1
push 0x77
push str.R:BuildWorkTempQQ1.87HummerPack4921AutoProject_setup3_base_file_util_win.cc
lea ecx, [ebp - 0x2f0]
or ebx, 4
call fcn.00473160
push esi
add eax, 4
push str.Done:
push eax
call fcn.004041d0
add esp, 8
mov ecx, eax
call fcn.00411010
test bl, 4
je 0x474bb5
lea ecx, [ebp - 0x2f0]
call fcn.00472c30
cmp dword [ebp - 0x21e], 0
jne 0x474959
test esi, esi
je 0x474be5
cmp esi, 2
je 0x474be5
cmp esi, 0x402
je 0x474be5
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495cb8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00495cb8
mov esp, ebp
pop ebp
ret