Function at 0x3005e59a
Capabilities:
Delete file

Disassembly:
push 0x2c
mov eax, 0x300a4632
call fcn.300869cb
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp + 0x18]
push eax
mov dword [ebp - 0x30], 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 - 0x38]
lea eax, [esi + 0x226]
push edi
push eax
mov dword [ebp - 0x34], eax
call fcn.3001b99e
mov eax, dword [ebp - 0x34]
cmp word [eax], bx
je 0x3005e5ee
mov byte [esi + 0x1c], 1
cmp dword [ebp - 0x30], ebx
je 0x3005e654
push dword [ebp - 0x30]
lea edi, [esi + 0x42e]
push 0x824
push edi
call fcn.3001b99e
cmp word [edi], bx
je 0x3005e65b
push 0x5c
push 1
push dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.300443fc
lea eax, [ebp - 0x2c]
lea edi, [esi + 0x1f04]
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.300440cb
test al, al
je 0x3005e645
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.300440b5
or dword [esi + 0x215c], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
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_]
jmp 0x3005e65b
mov word [esi + 0x42e], bx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push ebx
push ebx
push 0x10000000
push 1
push ebx
push eax
mov dword [esi + 0x1480], eax
mov dword [esi + 0x1f44], ecx
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 0x3005e715
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30043dd4
cmp eax, 0x80030050
mov dword [ebp - 0x30], eax
jne 0x3005e70c
cmp byte [esi + 0x1c], bl
je 0x3005e705
push ebx
push ebx
push 0x10000000
push 3
push ebx
push dword [esi + 0x1480]
mov byte [esi + 0x1488], 1
call fcn.3002e291
push eax
push SysReAllocStringLen
lea eax, [esi + 0x1e]
push eax
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x1478], eax
jne 0x3005e700
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30043dd4
mov dword [ebp - 0x30], eax
jmp 0x3005e70c
mov dword [ebp - 0x30], ebx
jmp 0x3005e70c
mov dword [ebp - 0x30], 0x80040e17
cmp dword [ebp - 0x30], ebx
jl 0x3005e890
cmp byte [esi + 0x1488], bl
push dword [esi + 0x1478]
mov dword [esi + 0x1484], 1
mov ecx, esi
jne 0x3005e736
call fcn.3005ca9f
jmp 0x3005e73b
call fcn.3005c8d2
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x3005e890
cmp byte [esi + 0x1c], bl
je 0x3005e7b3
push ebx
push ebx
push 0x10000000
push 1
push ebx
push dword [esi + 0x1480]
call fcn.3002e291
push eax
push dword [esi + 0x1480]
call fcn.3002e272
push eax
push dword [ebp - 0x34]
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x147c], eax
jne 0x3005e79a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.30043dd4
cmp eax, 0x80030050
mov dword [ebp - 0x30], eax
jne 0x3005e79a
mov dword [ebp - 0x30], 0x80040e17
cmp dword [ebp - 0x30], ebx
jl 0x3005e890
push dword [esi + 0x147c]
mov ecx, esi
call fcn.3005ca9f
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], ebx
jl 0x3005e890
cmp byte [esi + 0x1488], bl
je 0x3005e7c8
xor eax, eax
jmp 0x3005e7ce
mov eax, dword [esi + 0x1484]
push eax
push dword [esi + 0x1494]
lea edi, [esi + 0x18a0]
push dword [esi + 0x1490]
mov ecx, edi
push dword [esi + 0x1478]
call fcn.30083977
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x3005e890
cmp byte [esi + 0x1488], bl
mov ecx, edi
jne 0x3005e80a
call fcn.3008362b
jmp 0x3005e80f
call fcn.30083321
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x3005e890
cmp byte [esi + 0x1c], bl
je 0x3005e851
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 - 0x30], eax
jl 0x3005e890
mov ecx, edi
call fcn.3008362b
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], ebx
jl 0x3005e890
cmp byte [esi + 0x1488], bl
lea edi, [esi + 0x18a0]
mov ecx, esi
push edi
jne 0x3005e86e
call fcn.3005d714
jmp 0x3005e873
call fcn.3005d408
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x3005e890
cmp byte [esi + 0x1c], bl
je 0x3005e885
lea edi, [esi + 0x19f8]
push edi
mov ecx, esi
call fcn.3005d8ae
mov dword [ebp - 0x30], eax
cmp byte [esi + 0x1488], bl
jne 0x3005e8ae
cmp dword [ebp - 0x30], ebx
jl 0x3005e8fd
push ebx
lea eax, [esi + 0x1f28]
push eax
mov ecx, esi
call fcn.3005ba94
jmp 0x3005e8c8
cmp dword [ebp - 0x30], ebx
jl 0x3005e8fd
mov ecx, esi
call fcn.3005c1d7
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x3005e8fd
mov ecx, esi
call fcn.3005bb59
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x3005e8fd
mov ecx, esi
call fcn.3005daeb
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x3005e8fd
push dword [esi + 0x1478]
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [esi + 8], ebx
call edi
cmp byte [esi + 0x1c], bl
je 0x3005e937
push dword [esi + 0x147c]
call edi
jmp 0x3005e937
push dword [esi + 0x1478]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
or dword [esi + 0x1478], 0xffffffff
lea eax, [esi + 0x1e]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esi + 0x1c], bl
je 0x3005e937
add esi, 0x147c
push dword [esi]
call edi
push dword [ebp - 0x34]
or dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x30]
call fcn.30086a4e
ret 0x14