Function at 0x5da160
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x706ab7
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x17c], eax
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x18c]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x40]
call fcn.005d9f80
push esi
call fcn.005d58e0
add esp, 4
test al, al
je 0x5da341
cmp dword [esi + 0x14], 8
jb 0x5da1be
mov eax, dword [esi]
jmp 0x5da1c0
mov eax, esi
push eax
call dword [sym.imp.MSVCR120.dll__wremove]
add esp, 4
test eax, eax
je 0x5da341
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x5da33a
push str.cant_remove_file__s
lea ecx, [esp + 0xbc]
call fcn.00418040
xor eax, eax
mov dword [esp + 0x194], 0
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
mov dword [esp + 0x5c], eax
mov byte [esp + 0x194], 1
call fcn.005eae80
test eax, eax
je 0x5da253
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0xbc]
push ecx
mov ecx, eax
call fcn.005ecae0
test eax, eax
jne 0x5da263
lea eax, [esp + 0xb8]
push eax
call fcn.005ed1e0
add esp, 4
push eax
lea ecx, [esp + 0x68]
call fcn.0041fd90
push str.wx.sys_error
lea ecx, [esp + 0xdc]
mov byte [esp + 0x198], 2
call fcn.00418040
sub esp, 0xc
mov ecx, esi
mov eax, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0041f670
push 0x721844
push str.wxTempFile::Commit
push 0x262
push str....._srccommon_file.cpp
push 1
lea ecx, [esp + 0x118]
mov byte [esp + 0x1b4], 4
call fcn.00439de0
mov esi, eax
mov byte [esp + 0x1a0], 5
lea eax, [esp + 0x70]
push eax
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [esp + 0xec]
mov ecx, esi
push eax
call fcn.0049dde0
mov ecx, eax
mov byte [esp + 0x1a4], 6
call fcn.00493410
lea ecx, [esp + 0xf8]
mov byte [esp + 0x194], 3
call fcn.0043f270
lea ecx, [esp + 0xd8]
call fcn.00418210
lea ecx, [esp + 0x64]
mov byte [esp + 0x194], 1
call fcn.00420020
lea ecx, [esp + 0x44]
call fcn.00418210
lea ecx, [esp + 0xb8]
call fcn.00418210
xor al, al
jmp 0x5da570
push 1
lea eax, [esi + 0x20]
push esi
push eax
call fcn.005d7ba0
add esp, 0xc
test al, al
jne 0x5da56e
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x5da56a
push str.cant_commit_changes_to_file__s
lea ecx, [esp + 0x9c]
call fcn.00418040
xor eax, eax
mov dword [esp + 0x194], 7
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
mov dword [esp + 0x3c], eax
mov byte [esp + 0x194], 8
call fcn.005eae80
test eax, eax
je 0x5da3db
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x9c]
push ecx
mov ecx, eax
call fcn.005ecae0
mov edi, eax
test edi, edi
jne 0x5da3ed
lea eax, [esp + 0x98]
push eax
call fcn.005ed1e0
add esp, 4
mov edi, eax
call fcn.005c92f0
mov dword [esp + 0x10], eax
mov byte [esp + 0x194], 9
call fcn.005c92f0
mov dword [esp + 0x14], eax
mov byte [esp + 0x194], 0xa
call fcn.005c92f0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0
push str.wx.sys_error
lea ecx, [esp + 0x7c]
mov byte [esp + 0x198], 0xb
call fcn.00418040
sub esp, 0xc
mov ecx, esi
mov eax, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0041f670
push 0x721844
push str.wxTempFile::Commit
push 0x267
push str....._srccommon_file.cpp
push 1
lea ecx, [esp + 0x160]
mov byte [esp + 0x1b4], 0xd
call fcn.00439de0
mov esi, eax
mov byte [esp + 0x1a0], 0xe
lea eax, [esp + 0x1c]
push eax
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [esp + 0x8c]
mov ecx, esi
push eax
call fcn.0049dde0
mov ecx, eax
mov byte [esp + 0x1a4], 0xf
call fcn.00493410
lea ecx, [esp + 0x140]
mov byte [esp + 0x194], 0xc
call fcn.0043f270
push dword [esp + 0x90]
mov esi, dword [sym.imp.MSVCR120.dll_free]
call esi
add esp, 4
cmp dword [esp + 0x8c], 8
jb 0x5da4e4
push dword [esp + 0x78]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x8c], 7
lea ecx, [esp + 0x10]
mov dword [esp + 0x88], 0
mov word [esp + 0x78], ax
mov byte [esp + 0x194], 8
call fcn.00420020
push dword [esp + 0x3c]
call esi
add esp, 4
cmp dword [esp + 0x38], 8
jb 0x5da52e
push dword [esp + 0x24]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0xb0]
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call esi
add esp, 4
cmp dword [esp + 0xac], 8
jb 0x5da56a
push dword [esp + 0x98]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x5da570
mov al, 1
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x18c
ret