Function at 0x5fb5b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x55
push 0
push 0
dec ecx
jne 0x5fb5b8
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004058f8
lea eax, [ebp - 8]
call fcn.004058f8
lea eax, [ebp - 0x280]
mov edx, dword [0x496d0c]
call fcn.00405918
xor eax, eax
push ebp
push 0x5fb866
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4946e0]
call fcn.00495798
mov ebx, eax
mov eax, dword [ebp - 8]
call fcn.004973c0
test al, al
jne 0x5fb61a
mov eax, dword [ebp - 8]
call fcn.00497420
mov eax, dword [ebp - 4]
call fcn.00405548
mov edx, dword [ebp - 4]
cmp word [edx + eax*2 - 2], 0x5c
je 0x5fb63a
lea eax, [ebp - 4]
mov edx, 0x5fb878
call fcn.00405554
mov eax, dword [ebp - 8]
call fcn.00405548
mov edx, dword [ebp - 8]
cmp word [edx + eax*2 - 2], 0x5c
je 0x5fb65a
lea eax, [ebp - 8]
mov edx, 0x5fb878
call fcn.00405554
lea eax, [ebp - 0x284]
mov ecx, 0x5fb880
mov edx, dword [ebp - 4]
call fcn.004055b4
mov eax, dword [ebp - 0x284]
lea ecx, [ebp - 0x280]
mov edx, 0x3f
call fcn.004975a8
test eax, eax
jne 0x5fb6bc
mov eax, dword [ebp - 0x270]
test al, 8
jne 0x5fb6a2
test al, 0x10
jne 0x5fb6a2
mov edx, dword [ebp - 0x26c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x280]
call fcn.004975f4
test eax, eax
je 0x5fb687
lea eax, [ebp - 0x280]
call fcn.00497618
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5fb7ed
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test ax, ax
jb 0x5fb7ed
inc eax
mov word [ebp - 0xa], ax
xor esi, esi
mov eax, dword [0x6e39dc]
cmp byte [eax], 0
je 0x5fb759
push 0
lea ecx, [ebp - 0x28c]
movzx edx, si
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x28c]
lea eax, [ebp - 0x288]
mov edx, dword [ebp - 8]
call fcn.004055b4
mov eax, dword [ebp - 0x288]
call fcn.00405538
push eax
lea ecx, [ebp - 0x294]
movzx edx, si
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x294]
lea eax, [ebp - 0x290]
mov edx, dword [ebp - 4]
call fcn.004055b4
mov eax, dword [ebp - 0x290]
call fcn.00405538
push eax
call sub.kernel32.dll_MoveFileExW
jmp 0x5fb7e2
push 0
lea ecx, [ebp - 0x2a0]
movzx edx, si
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x2a0]
lea eax, [ebp - 0x29c]
mov edx, dword [ebp - 8]
call fcn.004055b4
mov edx, dword [ebp - 0x29c]
lea eax, [ebp - 0x298]
call fcn.00404e54
mov eax, dword [ebp - 0x298]
call fcn.0040508c
push eax
lea ecx, [ebp - 0x2ac]
movzx edx, si
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x2a8]
mov edx, dword [ebp - 4]
call fcn.004055b4
mov edx, dword [ebp - 0x2a8]
lea eax, [ebp - 0x2a4]
call fcn.00404e54
mov eax, dword [ebp - 0x2a4]
call fcn.0040508c
push eax
call sub.kernel32.dll_MoveFileExA
inc esi
dec word [ebp - 0xa]
jne 0x5fb6e3
mov eax, ebx
call fcn.00403c70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fb86d
lea eax, [ebp - 0x2ac]
mov edx, 2
call fcn.004052f0
lea eax, [ebp - 0x2a4]
call fcn.00404ba0
lea eax, [ebp - 0x2a0]
mov edx, 2
call fcn.004052f0
lea eax, [ebp - 0x298]
call fcn.00404ba0
lea eax, [ebp - 0x294]
mov edx, 5
call fcn.004052f0
lea eax, [ebp - 0x280]
mov edx, dword [0x496d0c]
call fcn.004059e8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004052f0
ret