Function at 0x56c9c0
Capabilities:
Move file

Disassembly:
sub esp, 0xe9c
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0xe98], eax
mov eax, dword [esp + 0xea4]
mov ecx, dword [esp + 0xea8]
mov edx, dword [esp + 0xeb0]
push ebx
mov ebx, dword [esp + 0xea4]
push ebp
push esi
mov esi, dword [esp + 0xec0]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xeb8]
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], 2
test ecx, ecx
jne 0x56ca2a
mov dword [esp + 0x24], str.default
lea edx, [esp + 0x6a8]
mov byte [esp + 0xa8], 0
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x56ca40
lea eax, [esp + 0x6a8]
push 0x2e
push eax
call dword [sym.imp.MSVCR90.dll_strrchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x56ca9c
push str..ini
push edi
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x56ca9c
push str..bak
push edi
call dword [sym.imp.MSVCR90.dll_sprintf]
lea edx, [esp + 0x2b0]
add esp, 8
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x56ca90
jmp 0x56cac5
mov edi, dword [sym.imp.MSVCR90.dll_sprintf]
push esi
lea ecx, [esp + 0x2ac]
push str._s.ini
push ecx
call edi
push esi
lea edx, [esp + 0x6b8]
push 0x5b1cc8
push edx
call edi
add esp, 0x18
mov esi, dword [sym.imp.MSVCR90.dll_fopen]
lea eax, [esp + 0x2a8]
push 0x5a8460
push eax
call esi
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x56cb6b
lea ecx, [esp + 0x2a8]
push ecx
lea edx, [esp + 0x6ac]
push edx
call sub.MSVCR90.dll_rename
lea eax, [esp + 0x2b0]
push 0x5a8460
push eax
call esi
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x56cb6b
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 2
je 0x56cb26
xor eax, eax
jmp 0x56cd59
test ebx, ebx
je 0x56cd38
mov esi, dword [sym.imp.MSVCR90.dll__stricmp]
push str.test
push ebx
call esi
add esp, 8
test eax, eax
jne 0x56cd38
mov eax, dword [esp + 0x14]
test eax, eax
je 0x56cd38
push str.test
push eax
call esi
add esp, 8
test eax, eax
jne 0x56cd38
jmp 0x56cd4d
test ebx, ebx
je 0x56cb76
cmp dword [esp + 0x14], 0
jne 0x56cb82
mov ecx, dword [esp + 0xec0]
dec ecx
mov dword [esp + 0x18], ecx
push ebp
lea edx, [esp + 0xaac]
push 0x400
push edx
call dword [sym.imp.MSVCR90.dll_fgets]
add esp, 0xc
test eax, eax
je 0x56cd11
lea eax, [esp + 0xaa8]
push eax
lea ecx, [esp + 0x2c]
call fcn.0056c8c0
add esp, 4
test eax, eax
je 0x56cc2f
test ebx, ebx
jne 0x56cbe3
lea ecx, [esp + 0x28]
lea edi, [esp + 0x18]
lea esi, [esp + 0x1c]
call fcn.0056c960
test eax, eax
je 0x56ccdb
mov dword [esp + 0x10], 1
jmp 0x56ccba
xor eax, eax
jmp 0x56cbf0
mov cl, byte [esp + eax + 0x28]
mov byte [esp + eax + 0xa8], cl
inc eax
test cl, cl
jne 0x56cbf0
cmp dword [esp + 0x14], 0
jne 0x56ccba
lea ecx, [esp + 0x28]
push ebx
push ecx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x56ccba
mov dword [esp + 0x10], 1
jmp 0x56ccba
test ebx, ebx
je 0x56ccba
lea edx, [esp + 0x1a8]
push edx
lea eax, [esp + 0x12c]
push eax
lea ebx, [esp + 0xab0]
call fcn.0056c850
add esp, 8
test eax, eax
je 0x56ccb6
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.MSVCR90.dll__stricmp]
lea ecx, [esp + 0xa8]
push ecx
push edx
call esi
add esp, 8
test eax, eax
jne 0x56ccb6
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x56cca4
lea ecx, [esp + 0x128]
lea edi, [esp + 0x18]
lea esi, [esp + 0x1c]
call fcn.0056c960
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x56cce5
mov dword [esp + 0x10], 1
jmp 0x56ccba
push eax
lea eax, [esp + 0x12c]
push eax
call esi
add esp, 8
test eax, eax
je 0x56ccef
mov ebx, dword [esp + 0x20]
push ebp
lea ecx, [esp + 0xaac]
push 0x400
push ecx
call dword [sym.imp.MSVCR90.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x56cba1
jmp 0x56cd11
mov dword [esp + 0x10], 0
jmp 0x56cd1c
mov dword [esp + 0x10], 0
jmp 0x56cd11
lea ecx, [esp + 0x1a8]
lea edi, [esp + 0x18]
lea esi, [esp + 0x1c]
call fcn.0056c960
mov ebx, dword [esp + 0x20]
neg eax
sbb eax, eax
neg eax
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x56cd1c
cmp dword [esp + 0x14], 0
jne 0x56cd23
mov edx, dword [esp + 0x1c]
mov byte [edx], 0
test ebp, ebp
je 0x56cd31
push ebp
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
cmp dword [esp + 0x10], 2
jne 0x56cd55
mov ecx, dword [esp + 0x24]
lea edi, [esp + 0x18]
lea esi, [esp + 0x1c]
call fcn.0056c960
test eax, eax
jne 0x56cd55
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xea8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00586584
add esp, 0xe9c
ret