Function at 0x3005e1b6
Capabilities:
Delete file
Move file

Disassembly:
push 0x230
mov eax, 0x300a4602
call fcn.300869cb
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.3001b99e
push dword [ebp - 0x238]
lea eax, [esi + 0x226]
push edi
push eax
call fcn.3001b99e
cmp word [esi + 0x226], bx
je 0x3005e214
mov byte [esi + 0x1c], 1
cmp dword [ebp - 0x23c], ebx
je 0x3005e235
push dword [ebp - 0x23c]
lea eax, [esi + 0x42e]
push 0x824
push eax
call fcn.3001b99e
jmp 0x3005e23c
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.3002e291
push eax
push dword [esi + 0x1480]
call fcn.3002e272
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 0x3005e28f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30043dd4
cmp eax, ebx
mov dword [ebp - 0x238], eax
jl 0x3005e2a2
push dword [esi + 0x1478]
mov ecx, esi
call fcn.3005c8d2
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 0x3005e2cf
cmp dword [ebp - 0x238], 0x80040231
jne 0x3005e36f
cmp eax, ebx
je 0x3005e36f
lea eax, [esi + 0x1e]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.3002becd
cmp eax, ebx
jne 0x3005e36f
cmp dword [ebp - 0x238], 0x80040231
jne 0x3005e319
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 0x3005e36f
push ebx
push ebx
push 0x10000000
push 3
push ebx
push dword [esi + 0x1480]
call fcn.3002e291
push eax
push dword [esi + 0x1480]
call fcn.3002e272
push eax
lea eax, [esi + 0x1e]
push eax
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x1478], eax
je 0x3005e36f
push eax
mov ecx, esi
call fcn.3005c8d2
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], ebx
jl 0x3005e4d5
cmp byte [esi + 0x1c], bl
je 0x3005e3e5
push ebx
push ebx
push 0x10000000
push 3
push ebx
push dword [esi + 0x1480]
call fcn.3002e291
push eax
push dword [esi + 0x1480]
call fcn.3002e272
push eax
lea eax, [esi + 0x226]
push eax
call edi
cmp eax, 0xffffffff
lea edi, [esi + 0x147c]
mov dword [edi], eax
jne 0x3005e3ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30043dd4
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], ebx
jl 0x3005e4d5
push dword [edi]
mov ecx, esi
call fcn.3005c8d2
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], ebx
jl 0x3005e4d5
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.30083977
cmp eax, ebx
mov dword [ebp - 0x238], eax
jl 0x3005e4d5
mov ecx, edi
call fcn.30083321
cmp eax, ebx
mov dword [ebp - 0x238], eax
jl 0x3005e4d5
cmp byte [esi + 0x1c], bl
je 0x3005e47a
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.30083977
cmp eax, ebx
mov dword [ebp - 0x238], eax
jl 0x3005e4d5
mov ecx, edi
call fcn.30083321
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], ebx
jl 0x3005e4d5
lea edi, [esi + 0x18a0]
push edi
mov ecx, esi
call fcn.3005d408
cmp eax, ebx
mov dword [ebp - 0x238], eax
jl 0x3005e4d5
cmp byte [esi + 0x1c], bl
je 0x3005e4a5
lea edi, [esi + 0x19f8]
push edi
mov ecx, esi
call fcn.3005d53a
cmp eax, ebx
mov dword [ebp - 0x238], eax
jl 0x3005e4d5
mov ecx, esi
call fcn.3005c1d7
cmp eax, ebx
mov dword [ebp - 0x238], eax
jl 0x3005e4d5
mov ecx, esi
call fcn.3005bb59
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0x80040200
jne 0x3005e4eb
mov dword [ebp - 0x238], 0x80040210
cmp word [esi + 0x42e], bx
je 0x3005e551
push 0x5c
push 1
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x234]
call fcn.300443fc
lea eax, [ebp - 0x234]
lea edi, [esi + 0x1f04]
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.300440cb
test al, al
je 0x3005e541
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
call fcn.300440b5
cmp dword [esi + 0x1484], ebx
je 0x3005e541
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 0x3005e56a
mov ecx, esi
call fcn.3005cdb9
cmp eax, ebx
mov dword [ebp - 0x238], eax
jge 0x3005e58c
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.30086a4e
ret 0x10