Function at 0x519c9c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x519ca5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 0xd], cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x519fc0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xe], 1
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405f20
mov byte [ebp - 0x15], 0
cmp byte [ebp + 8], 0
jne 0x519d0b
cmp dword [0x67d328], 0
jne 0x519d02
mov dl, 1
mov eax, dword [0x439048]
call fcn.004394b0
mov dword [0x67d328], eax
mov eax, dword [0x67d328]
mov edx, dword [eax]
call dword [edx]
xor eax, eax
push ebp
push 0x519f81
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x519f34
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0xc], 0
jle 0x519eaf
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00405938
mov edx, dword [ebp - 0x1c]
mov eax, 0x519fdc
call fcn.0040cac4
mov edi, eax
test edi, edi
jg 0x519ea5
mov eax, dword [ebp - 8]
call fcn.004060c4
mov edi, eax
jmp 0x519ea5
mov eax, dword [ebp - 4]
call fcn.0047ff1c
test al, al
je 0x519e3c
push 2
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x47c388]
call fcn.0047d2ec
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp + 0xc]
cdq
cmp edx, dword [esp + 4]
jne 0x519da5
cmp eax, dword [esp]
seta bl
jmp 0x519da8
setg bl
add esp, 8
test bl, bl
jne 0x519ea5
lea eax, [ebp - 0x14]
call fcn.004124a0
test esi, esi
jne 0x519dfc
inc esi
lea edx, [ebp - 4]
mov ecx, edi
mov eax, 0x519fe4
call fcn.00406348
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00405938
mov eax, dword [ebp - 0x20]
call fcn.00405b74
push eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 8]
call fcn.00405938
mov eax, dword [ebp - 0x24]
call fcn.00405b74
push eax
call sub.kernel32.dll_MoveFileA
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405f20
inc esi
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.0040c1d4
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x519ff4
call fcn.004059c0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.004060a4
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 4]
mov ecx, edi
call fcn.00406348
jmp 0x519ea5
test esi, esi
jne 0x519e88
lea edx, [ebp - 4]
mov ecx, edi
mov eax, 0x519fe4
call fcn.00406348
mov eax, dword [ebp - 4]
call fcn.0047ff1c
test al, al
je 0x519e69
mov eax, dword [ebp - 4]
mov word [eax + edi*2], 0x32
add esi, 2
jmp 0x519ea5
mov bl, 1
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x47c388]
call fcn.0047d2ec
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x15], 1
jmp 0x519ea5
mov bl, 1
push 0xffff
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x47c388]
call fcn.0047d2ec
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x15], 1
test bl, bl
je 0x519d66
jmp 0x519ede
mov eax, dword [ebp - 4]
call fcn.0047ff1c
test al, al
je 0x519ec2
mov ebx, 2
jmp 0x519ecb
mov ebx, 0xffff
mov byte [ebp - 0x15], 1
push ebx
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x47c388]
call fcn.0047d2ec
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0xd], 0
je 0x519efc
cmp byte [ebp - 0x15], 0
je 0x519efc
mov ecx, 3
mov edx, 0x51a000
mov eax, dword [ebp - 0x14]
call fcn.00422068
mov cx, 2
xor edx, edx
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x519f16
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 0xc]
call fcn.00405b74
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00422068
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x519f5b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519f88
mov eax, dword [ebp - 0x14]
call fcn.00404748
cmp byte [ebp + 8], 0
jne 0x519f80
mov eax, dword [0x67d328]
mov edx, dword [eax]
call dword [edx + 4]
ret