Function at 0x3005e390
Capabilities:
Delete file

Disassembly:
push 0x2c
mov eax, 0x300a4412
call fcn.30086674
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.3001b809
push dword [ebp - 0x38]
lea eax, [esi + 0x226]
push edi
push eax
mov dword [ebp - 0x34], eax
call fcn.3001b809
mov eax, dword [ebp - 0x34]
cmp word [eax], bx
je 0x3005e3e4
mov byte [esi + 0x1c], 1
cmp dword [ebp - 0x30], ebx
je 0x3005e44a
push dword [ebp - 0x30]
lea edi, [esi + 0x42e]
push 0x824
push edi
call fcn.3001b809
cmp word [edi], bx
je 0x3005e451
push 0x5c
push 1
push dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.300446fc
lea eax, [ebp - 0x2c]
lea edi, [esi + 0x1f04]
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.300443cb
test al, al
je 0x3005e43b
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.300443b5
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 0x3005e451
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.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 0x3005e50b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300440d4
cmp eax, 0x80030050
mov dword [ebp - 0x30], eax
jne 0x3005e502
cmp byte [esi + 0x1c], bl
je 0x3005e4fb
push ebx
push ebx
push 0x10000000
push 3
push ebx
push dword [esi + 0x1480]
mov byte [esi + 0x1488], 1
call fcn.3002e53d
push eax
push SysReAllocStringLen
lea eax, [esi + 0x1e]
push eax
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x1478], eax
jne 0x3005e4f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300440d4
mov dword [ebp - 0x30], eax
jmp 0x3005e502
mov dword [ebp - 0x30], ebx
jmp 0x3005e502
mov dword [ebp - 0x30], 0x80040e17
cmp dword [ebp - 0x30], ebx
jl 0x3005e686
cmp byte [esi + 0x1488], bl
push dword [esi + 0x1478]
mov dword [esi + 0x1484], 1
mov ecx, esi
jne 0x3005e52c
call fcn.3005c910
jmp 0x3005e531
call fcn.3005c743
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x3005e686
cmp byte [esi + 0x1c], bl
je 0x3005e5a9
push ebx
push ebx
push 0x10000000
push 1
push ebx
push dword [esi + 0x1480]
call fcn.3002e53d
push eax
push dword [esi + 0x1480]
call fcn.3002e51e
push eax
push dword [ebp - 0x34]
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x147c], eax
jne 0x3005e590
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.300440d4
cmp eax, 0x80030050
mov dword [ebp - 0x30], eax
jne 0x3005e590
mov dword [ebp - 0x30], 0x80040e17
cmp dword [ebp - 0x30], ebx
jl 0x3005e686
push dword [esi + 0x147c]
mov ecx, esi
call fcn.3005c910
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], ebx
jl 0x3005e686
cmp byte [esi + 0x1488], bl
je 0x3005e5be
xor eax, eax
jmp 0x3005e5c4
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.30083655
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x3005e686
cmp byte [esi + 0x1488], bl
mov ecx, edi
jne 0x3005e600
call fcn.30083309
jmp 0x3005e605
call fcn.30082fff
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x3005e686
cmp byte [esi + 0x1c], bl
je 0x3005e647
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 - 0x30], eax
jl 0x3005e686
mov ecx, edi
call fcn.30083309
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], ebx
jl 0x3005e686
cmp byte [esi + 0x1488], bl
lea edi, [esi + 0x18a0]
mov ecx, esi
push edi
jne 0x3005e664
call fcn.3005d50e
jmp 0x3005e669
call fcn.3005d202
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x3005e686
cmp byte [esi + 0x1c], bl
je 0x3005e67b
lea edi, [esi + 0x19f8]
push edi
mov ecx, esi
call fcn.3005d6a8
mov dword [ebp - 0x30], eax
cmp byte [esi + 0x1488], bl
jne 0x3005e6a4
cmp dword [ebp - 0x30], ebx
jl 0x3005e6f3
push ebx
lea eax, [esi + 0x1f28]
push eax
mov ecx, esi
call fcn.3005ba5c
jmp 0x3005e6be
cmp dword [ebp - 0x30], ebx
jl 0x3005e6f3
mov ecx, esi
call fcn.3005c192
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x3005e6f3
mov ecx, esi
call fcn.3005bb21
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x3005e6f3
mov ecx, esi
call fcn.3005d8e5
cmp eax, ebx
mov dword [ebp - 0x30], eax
jl 0x3005e6f3
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 0x3005e72d
push dword [esi + 0x147c]
call edi
jmp 0x3005e72d
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 0x3005e72d
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.300866f7
ret 0x14