Function at 0x3005dfac
Capabilities:
Delete file
Move file

Disassembly:
push 0x230
mov eax, 0x300a43e2
call fcn.30086674
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x238], ecx
mov ecx, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x23c], ecx
mov edi, 0x104
lea ecx, [esi + 0x1e]
push edi
xor ebx, ebx
push ecx
mov byte [esi + 0x1488], bl
call fcn.3001b809
push dword [ebp - 0x238]
lea eax, [esi + 0x226]
push edi
push eax
call fcn.3001b809
cmp word [esi + 0x226], bx
je 0x3005e00a
mov byte [esi + 0x1c], 1
cmp dword [ebp - 0x23c], ebx
je 0x3005e02b
push dword [ebp - 0x23c]
lea eax, [esi + 0x42e]
push 0x824
push eax
call fcn.3001b809
jmp 0x3005e032
mov word [esi + 0x42e], bx
mov eax, dword [ebp + 0x10]
push ebx
push ebx
push 0x10000000
push 3
push ebx
push eax
mov dword [esi + 0x1480], eax
call fcn.3002e53d
push eax
push dword [esi + 0x1480]
call fcn.3002e51e
mov edi, dword [sym.imp.MSO.dll_Ordinal_403]
push eax
lea eax, [esi + 0x1e]
push eax
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x1478], eax
jne 0x3005e085
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300440d4
cmp eax, ebx
mov dword [ebp - 0x238], eax
jl 0x3005e098
push dword [esi + 0x1478]
mov ecx, esi
call fcn.3005c743
mov dword [ebp - 0x238], eax
mov eax, dword [esi + 0x1480]
shr eax, 1
and eax, 1
cmp dword [ebp - 0x238], 0x80030002
mov dword [esi + 0x1484], eax
je 0x3005e0c5
cmp dword [ebp - 0x238], 0x80040231
jne 0x3005e165
cmp eax, ebx
je 0x3005e165
lea eax, [esi + 0x1e]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.3002c15a
cmp eax, ebx
jne 0x3005e165
cmp dword [ebp - 0x238], 0x80040231
jne 0x3005e10f
push dword [esi + 0x1478]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x1478], 0xffffffff
lea eax, [esi + 0x1e]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi + 0x1e]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x3005e165
push ebx
push ebx
push 0x10000000
push 3
push ebx
push dword [esi + 0x1480]
call fcn.3002e53d
push eax
push dword [esi + 0x1480]
call fcn.3002e51e
push eax
lea eax, [esi + 0x1e]
push eax
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x1478], eax
je 0x3005e165
push eax
mov ecx, esi
call fcn.3005c743
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], ebx
jl 0x3005e2cb
cmp byte [esi + 0x1c], bl
je 0x3005e1db
push ebx
push ebx
push 0x10000000
push 3
push ebx
push dword [esi + 0x1480]
call fcn.3002e53d
push eax
push dword [esi + 0x1480]
call fcn.3002e51e
push eax
lea eax, [esi + 0x226]
push eax
call edi
cmp eax, 0xffffffff
lea edi, [esi + 0x147c]
mov dword [edi], eax
jne 0x3005e1c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300440d4
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], ebx
jl 0x3005e2cb
push dword [edi]
mov ecx, esi
call fcn.3005c743
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], ebx
jl 0x3005e2cb
push dword [esi + 0x1484]
lea edi, [esi + 0x18a0]
push dword [esi + 0x1494]
mov ecx, edi
push dword [esi + 0x1490]
push dword [esi + 0x1478]
call fcn.30083655
cmp eax, ebx
mov dword [ebp - 0x238], eax
jl 0x3005e2cb
mov ecx, edi
call fcn.30082fff
cmp eax, ebx
mov dword [ebp - 0x238], eax
jl 0x3005e2cb
cmp byte [esi + 0x1c], bl
je 0x3005e270
push dword [esi + 0x1484]
lea edi, [esi + 0x19f8]
push dword [esi + 0x1494]
mov ecx, edi
push dword [esi + 0x1490]
push dword [esi + 0x147c]
call fcn.30083655
cmp eax, ebx
mov dword [ebp - 0x238], eax
jl 0x3005e2cb
mov ecx, edi
call fcn.30082fff
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], ebx
jl 0x3005e2cb
lea edi, [esi + 0x18a0]
push edi
mov ecx, esi
call fcn.3005d202
cmp eax, ebx
mov dword [ebp - 0x238], eax
jl 0x3005e2cb
cmp byte [esi + 0x1c], bl
je 0x3005e29b
lea edi, [esi + 0x19f8]
push edi
mov ecx, esi
call fcn.3005d334
cmp eax, ebx
mov dword [ebp - 0x238], eax
jl 0x3005e2cb
mov ecx, esi
call fcn.3005c192
cmp eax, ebx
mov dword [ebp - 0x238], eax
jl 0x3005e2cb
mov ecx, esi
call fcn.3005bb21
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0x80040200
jne 0x3005e2e1
mov dword [ebp - 0x238], 0x80040210
cmp word [esi + 0x42e], bx
je 0x3005e347
push 0x5c
push 1
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x234]
call fcn.300446fc
lea eax, [ebp - 0x234]
lea edi, [esi + 0x1f04]
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.300443cb
test al, al
je 0x3005e337
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
call fcn.300443b5
cmp dword [esi + 0x1484], ebx
je 0x3005e337
or dword [esi + 0x215c], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [ebp - 0x238], ebx
jl 0x3005e360
mov ecx, esi
call fcn.3005cc2a
cmp eax, ebx
mov dword [ebp - 0x238], eax
jge 0x3005e382
push dword [esi + 0x1478]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
or dword [esi + 0x1478], 0xffffffff
add esi, 0x147c
push dword [esi]
call edi
or dword [esi], 0xffffffff
mov eax, dword [ebp - 0x238]
call fcn.300866f7
ret 0x10