Function at 0x5d7830
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x706682
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov edi, dword [esp + 0xe4]
cmp dword [edi + 0x14], 8
jb 0x5d787b
mov eax, dword [edi]
jmp 0x5d787d
mov eax, edi
push eax
call dword [sym.imp.MSVCR120.dll__wremove]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5d7b6d
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x5d7b6d
push str.File__s_couldnt_be_removed
lea ecx, [esp + 0xb4]
call fcn.00418040
xor eax, eax
mov dword [esp + 0xdc], 0
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
mov dword [esp + 0x40], eax
mov byte [esp + 0xdc], 1
call fcn.005eae80
test eax, eax
je 0x5d7914
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0xb4]
push ecx
mov ecx, eax
call fcn.005ecae0
mov esi, eax
test esi, esi
jne 0x5d7926
lea eax, [esp + 0xb0]
push eax
call fcn.005ed1e0
add esp, 4
mov esi, eax
call fcn.005c92f0
mov dword [esp + 0x14], eax
mov byte [esp + 0xdc], 2
call fcn.005c92f0
mov dword [esp + 0x18], eax
mov byte [esp + 0xdc], 3
call fcn.005c92f0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0
push str.wx.sys_error
lea ecx, [esp + 0x94]
mov byte [esp + 0xe0], 4
call fcn.00418040
sub esp, 0x20
mov byte [esp + 0xfc], 5
mov esi, esp
mov dword [esp + 0x30], esp
xor eax, eax
mov ecx, esi
push 0xffffffffffffffff
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push edi
mov word [esi], ax
call fcn.00419170
mov dword [esi + 0x18], 0
push 0
mov byte [esp + 0x100], 6
mov dword [esp + 0x6c], 1
mov dword [esp + 0x74], str....._srccommon_filefn.cpp
mov dword [esp + 0x7c], str.wxRemoveFile
mov dword [esp + 0x78], 0x4b6
mov dword [esp + 0x80], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
add esp, 4
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], 0
mov word [esp + 0x90], ax
mov dword [esp + 0xa8], eax
mov byte [esp + 0xfc], 7
lea eax, [esp + 0x34]
push eax
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x74]
call fcn.0049dde0
mov ecx, eax
mov byte [esp + 0x100], 8
call fcn.00482da0
push dword [esp + 0x88]
mov esi, dword [sym.imp.MSVCR120.dll_free]
mov byte [esp + 0xe0], 5
call esi
add esp, 4
cmp dword [esp + 0x84], 8
jb 0x5d7a99
push dword [esp + 0x70]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x84], 7
lea ecx, [esp + 0x50]
mov dword [esp + 0x80], 0
mov word [esp + 0x70], ax
call fcn.00439c40
push dword [esp + 0xa8]
call esi
add esp, 4
cmp dword [esp + 0xa4], 8
jb 0x5d7ae4
push dword [esp + 0x90]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0xa4], 7
lea ecx, [esp + 0x14]
mov dword [esp + 0xa0], 0
mov word [esp + 0x90], ax
mov byte [esp + 0xdc], 1
call fcn.00420020
push dword [esp + 0x40]
call esi
add esp, 4
cmp dword [esp + 0x3c], 8
jb 0x5d7b31
push dword [esp + 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0xc8]
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
call esi
add esp, 4
cmp dword [esp + 0xc4], 8
jb 0x5d7b6d
push dword [esp + 0xb0]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
test ebx, ebx
sete al
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.006d1ba7
add esp, 0xd0
ret