Function at 0x41ef40
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x440080
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x457078]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457078]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, dword [0x45b82c]
mov ebx, dword [esp + 0x44]
test edi, edi
jne 0x41ef93
lea ecx, [esp + 0x14]
call fcn.0040a9e0
mov edi, dword [0x45b82c]
mov esi, eax
jmp 0x41ef95
mov esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x3c], 0
test edi, edi
jne 0x41efb0
lea ecx, [esp + 0x18]
call fcn.0040a9e0
mov edi, eax
mov dword [esp + 0x18], edi
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push ebx
mov byte [esp + 0x58], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x41f1af
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, 5
mov dword [esp + 0x20], ebp
jmp 0x41eff0
cmp esi, ebx
je 0x41f044
test ebx, ebx
je 0x41f0c4
cmp byte [ebx], 0
je 0x41f0c4
push ebx
call sub.MSVCR120.dll_strlen
add esp, 4
lea ecx, [esp + 0x14]
lea ebp, [eax + 1]
push ebp
push 1
call fcn.0040a6d0
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
push ebp
push esi
call dword [sym.imp.MSVCR120.dll_strncpy_s]
add esp, 0x10
test esi, esi
je 0x41f040
test ebp, ebp
mov eax, 1
cmove ebp, eax
mov dword [esi - 0xc], ebp
mov ebp, dword [esp + 0x20]
push str..old
lea ecx, [esp + 0x18]
call fcn.0040fa90
push 0xa
push 0xa
lea ecx, [esp + 0x2c]
lea eax, [ebp - 1]
push ecx
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.MSVCR120.dll__itoa_s]
add esp, 0x10
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
call fcn.0040fa90
cmp edi, ebx
je 0x41f0db
test ebx, ebx
je 0x41f0d2
cmp byte [ebx], 0
je 0x41f0d2
push ebx
call sub.MSVCR120.dll_strlen
add esp, 4
lea ecx, [esp + 0x18]
lea edi, [eax + 1]
push edi
push 1
call fcn.0040a6d0
mov esi, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
push edi
push esi
call dword [sym.imp.MSVCR120.dll_strncpy_s]
add esp, 0x10
test esi, esi
je 0x41f0db
test edi, edi
mov eax, 1
cmove edi, eax
mov dword [esi - 0xc], edi
jmp 0x41f0db
lea ecx, [esp + 0x14]
call fcn.0040aa60
jmp 0x41f044
lea ecx, [esp + 0x18]
call fcn.0040aa60
push str..old
lea ecx, [esp + 0x1c]
call fcn.0040fa90
push 0xa
push 0xa
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.MSVCR120.dll__itoa_s]
add esp, 0x10
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
call fcn.0040fa90
mov esi, dword [esp + 0x14]
cmp ebp, 1
jne 0x41f166
cmp esi, ebx
je 0x41f166
test ebx, ebx
je 0x41f159
cmp byte [ebx], 0
je 0x41f159
push ebx
call sub.MSVCR120.dll_strlen
add esp, 4
lea ecx, [esp + 0x14]
lea edi, [eax + 1]
push edi
push ebp
call fcn.0040a6d0
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
push edi
push esi
call dword [sym.imp.MSVCR120.dll_strncpy_s]
add esp, 0x10
test esi, esi
je 0x41f166
test edi, edi
mov eax, ebp
cmove edi, eax
mov dword [esi - 0xc], edi
jmp 0x41f166
lea ecx, [esp + 0x14]
call fcn.0040aa60
mov esi, dword [esp + 0x14]
push 0x180
push esi
call dword [sym.imp.MSVCR120.dll__chmod]
mov edi, dword [esp + 0x20]
push 0x180
push edi
call dword [sym.imp.MSVCR120.dll__chmod]
add esp, 0x10
cmp ebp, 5
jne 0x41f194
push edi
call dword [sym.imp.MSVCR120.dll__unlink]
add esp, 4
push edi
push esi
call dword [sym.imp.MSVCR120.dll_rename]
mov ebp, dword [esp + 0x28]
add esp, 8
mov dword [esp + 0x20], ebp
test ebp, ebp
jg 0x41eff0
mov byte [esp + 0x3c], 0
mov ebx, 0xffff
test edi, edi
jne 0x41f1e0
cmp dword [0x45b82c], edi
jne 0x41f1d2
lea ecx, [esp + 0x18]
call fcn.0040a9e0
mov edi, eax
jmp 0x41f1d8
mov edi, dword [0x45b82c]
test edi, edi
jne 0x41f1e0
xor eax, eax
jmp 0x41f1ee
mov al, byte [edi - 0xe]
shr al, 3
and al, 1
jne 0x41f21b
movzx eax, word [edi - 0x10]
cmp eax, 1
setg al
test al, al
jne 0x41f20d
test edi, edi
je 0x41f21b
push dword [edi - 8]
add edi, 0xfffffff0
push edi
call fcn.004134a0
add esp, 8
jmp 0x41f21b
test edi, edi
je 0x41f21b
test byte [edi - 0xe], 8
jne 0x41f21b
add word [edi - 0x10], bx
cmp dword [0x45b82c], 0
jne 0x41f22d
lea ecx, [esp + 0x18]
call fcn.0040a9e0
mov dword [esp + 0x3c], 0xffffffff
test esi, esi
jne 0x41f258
cmp dword [0x45b82c], esi
jne 0x41f24e
lea ecx, [esp + 0x14]
call fcn.0040a9e0
mov esi, eax
jmp 0x41f254
mov esi, dword [0x45b82c]
test esi, esi
je 0x41f285
mov al, byte [esi - 0xe]
shr al, 3
and al, 1
jne 0x41f285
movzx eax, word [esi - 0x10]
add esi, 0xfffffff0
cmp eax, 1
jg 0x41f27c
push dword [esi + 8]
push esi
call fcn.004134a0
add esp, 8
jmp 0x41f285
test byte [esi + 2], 8
jne 0x41f285
add word [esi], bx
cmp dword [0x45b82c], 0
jne 0x41f297
lea ecx, [esp + 0x14]
call fcn.0040a9e0
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043bfe6
add esp, 0x2c
ret