Function at 0x5d7ba0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x706747
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x180], eax
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
cmp byte [esp + 0x1a8], 0
mov edi, dword [esp + 0x1a0]
mov esi, dword [esp + 0x1a4]
jne 0x5d7d82
push esi
call fcn.005cc2f0
add esp, 4
test al, al
je 0x5d7d82
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x5d7f50
push str.Failed_to_rename_the_file__s_to__s_because_the_destination_file_already_exists.
lea ecx, [esp + 0xa0]
call fcn.00418040
xor eax, eax
mov dword [esp + 0x198], 0
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x198], 1
call fcn.005eae80
test eax, eax
je 0x5d7c87
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0xa0]
push ecx
mov ecx, eax
call fcn.005ecae0
test eax, eax
jne 0x5d7c97
lea eax, [esp + 0x9c]
push eax
call fcn.005ed1e0
add esp, 4
push eax
lea ecx, [esp + 0x6c]
call fcn.0041fd90
push str.wx.sys_error
lea ecx, [esp + 0xe0]
mov byte [esp + 0x19c], 2
call fcn.00418040
sub esp, 0xc
mov ecx, esi
mov eax, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0041f670
sub esp, 0xc
mov ecx, edi
mov eax, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0041f670
push 0x721844
push str.wxRenameFile
push 0x48e
push str....._srccommon_filefn.cpp
push 1
lea ecx, [esp + 0x128]
mov byte [esp + 0x1c4], 5
call fcn.00439de0
mov esi, eax
mov byte [esp + 0x1b0], 6
lea eax, [esp + 0x80]
push eax
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [esp + 0xfc]
mov ecx, esi
push eax
call fcn.0049dde0
mov ecx, eax
mov byte [esp + 0x1b4], 7
call fcn.005d4660
lea ecx, [esp + 0xfc]
mov byte [esp + 0x198], 3
call fcn.0043f270
lea ecx, [esp + 0xdc]
call fcn.00418210
lea ecx, [esp + 0x68]
mov byte [esp + 0x198], 1
call fcn.00420020
lea ecx, [esp + 0x34]
call fcn.00418210
lea ecx, [esp + 0x9c]
jmp 0x5d7f4b
cmp dword [esi + 0x14], 8
jb 0x5d7d8c
mov eax, dword [esi]
jmp 0x5d7d8e
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x5d7d98
mov ecx, dword [edi]
jmp 0x5d7d9a
mov ecx, edi
push eax
push ecx
call dword [sym.imp.MSVCR120.dll__wrename]
add esp, 8
test eax, eax
je 0x5d7dc7
push dword [esp + 0x1a8]
push esi
push edi
call fcn.005d5200
add esp, 0xc
test al, al
je 0x5d7dce
push edi
call fcn.005d7830
add esp, 4
mov al, 1
jmp 0x5d7f52
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x5d7f50
push str.File__s_couldnt_be_renamed__s
lea ecx, [esp + 0x80]
call fcn.00418040
xor eax, eax
mov dword [esp + 0x198], 8
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x198], 9
call fcn.005eae80
test eax, eax
je 0x5d7e4f
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x80]
push ecx
mov ecx, eax
call fcn.005ecae0
test eax, eax
jne 0x5d7e5c
lea eax, [esp + 0x7c]
push eax
call fcn.005ed1e0
add esp, 4
push eax
lea ecx, [esp + 0x58]
call fcn.0041fd90
push str.wx.sys_error
lea ecx, [esp + 0xc0]
mov byte [esp + 0x19c], 0xa
call fcn.00418040
sub esp, 0x20
mov byte [esp + 0x1b8], 0xb
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.00418000
sub esp, 0x20
mov byte [esp + 0x1d8], 0xc
mov ecx, esp
mov dword [esp + 0x4c], esp
push edi
call fcn.00418000
push 0x721844
push str.wxRenameFile
push 0x4a3
push str....._srccommon_filefn.cpp
push 1
lea ecx, [esp + 0x198]
mov byte [esp + 0x1ec], 0xd
call fcn.00439de0
mov esi, eax
mov byte [esp + 0x1d8], 0xe
lea eax, [esp + 0x94]
push eax
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [esp + 0x104]
mov ecx, esi
push eax
call fcn.0049dde0
mov ecx, eax
mov byte [esp + 0x1dc], 0xf
call fcn.005d4810
lea ecx, [esp + 0x144]
mov byte [esp + 0x198], 0xb
call fcn.0043f270
lea ecx, [esp + 0xbc]
call fcn.00418210
lea ecx, [esp + 0x54]
mov byte [esp + 0x198], 9
call fcn.00420020
lea ecx, [esp + 0x14]
call fcn.00418210
lea ecx, [esp + 0x7c]
call fcn.00418210
xor al, al
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x190
ret