Function at 0x5a4db0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405944
mov eax, dword [ebp - 8]
call fcn.00405944
xor eax, eax
push ebp
push 0x5a506e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x5a4dfa
mov byte [ebp - 0x11], 0
jmp 0x5a5046
mov byte [ebp - 0x11], 1
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00405528
cmp dword [0x5bf188], 0
jne 0x5a4e28
mov dl, 1
mov eax, dword [0x437aec]
call fcn.00438030
mov dword [0x5bf188], eax
mov eax, dword [0x5bf188]
mov edx, dword [eax]
call dword [edx]
xor edx, edx
push ebp
push 0x5a503f
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x5a500b
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0x10], 0
jle 0x5a4fa8
xor ebx, ebx
xor esi, esi
mov edx, dword [ebp - 4]
mov eax, 0x5a5088
call fcn.0040afec
mov edi, eax
test edi, edi
jg 0x5a4f9e
mov eax, dword [ebp - 4]
test eax, eax
je 0x5a4e7e
sub eax, 4
mov eax, dword [eax]
mov edi, eax
jmp 0x5a4f9e
mov eax, dword [ebp - 0xc]
call fcn.0040ac10
test al, al
je 0x5a4f3a
push 2
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x41bd8c]
call fcn.00421c20
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0x10]
cdq
cmp edx, dword [esp + 4]
jne 0x5a4ec4
cmp eax, dword [esp]
seta bl
jmp 0x5a4ec7
setg bl
add esp, 8
test bl, bl
jne 0x5a4f9e
mov eax, dword [ebp - 0x18]
call fcn.00404574
test esi, esi
jne 0x5a4f05
inc esi
lea edx, [ebp - 0xc]
mov ecx, edi
mov eax, 0x5a5094
call fcn.00405a3c
mov eax, dword [ebp - 0xc]
call fcn.00405954
push eax
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
call sub.kernel32.dll_MoveFileA
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00405528
inc esi
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.0040a634
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x5a50a0
call fcn.004057a0
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0xc]
mov ecx, edi
call fcn.00405a3c
jmp 0x5a4f9e
test esi, esi
jne 0x5a4f85
lea edx, [ebp - 0xc]
mov ecx, edi
mov eax, 0x5a5094
call fcn.00405a3c
mov eax, dword [ebp - 0xc]
call fcn.0040ac10
test al, al
je 0x5a4f6a
lea eax, [ebp - 0xc]
call fcn.004059ac
mov byte [eax + edi], 0x32
add esi, 2
jmp 0x5a4f9e
mov bl, 1
push 0xffff
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x41bd8c]
call fcn.00421c20
mov dword [ebp - 0x18], eax
jmp 0x5a4f9e
mov bl, 1
push 0xffff
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x41bd8c]
call fcn.00421c20
mov dword [ebp - 0x18], eax
test bl, bl
je 0x5a4e85
jmp 0x5a4fd3
mov eax, dword [ebp - 0xc]
call fcn.0040ac10
test al, al
je 0x5a4fbb
mov eax, 2
jmp 0x5a4fc0
mov eax, 0xffff
push eax
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x41bd8c]
call fcn.00421c20
mov dword [ebp - 0x18], eax
mov cx, 2
xor edx, edx
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x5a4fed
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 8]
call fcn.00405954
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 0x18]
call fcn.00421938
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a5019
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a5046
cmp dword [ebp - 0x18], 0
je 0x5a5034
mov eax, dword [ebp - 0x18]
call fcn.00404574
mov eax, dword [0x5bf188]
mov edx, dword [eax]
call dword [edx + 4]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a5075
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004054b4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004054b4
ret