Function at 0x4af5d4
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4af5dd
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4afa4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x25], 1
xor edx, edx
push ebp
push 0x4afa19
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x4171c0]
call fcn.00403e3c
mov dword [ebp - 0x2c], eax
xor edx, edx
push ebp
push 0x4afa08
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4af83a
inc esi
xor edi, edi
lea ecx, [ebp - 0x30]
mov edx, edi
mov eax, dword [ebp - 0x24]
call fcn.0041a494
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 4]
call fcn.00409180
lea ecx, [ebp - 0x34]
mov edx, edi
mov eax, dword [ebp - 0x24]
call fcn.0041b158
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 8]
call fcn.00409180
cmp dword [ebp - 4], 0
je 0x4af832
cmp dword [ebp - 8], 0
je 0x4af832
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404d50
lea ecx, [ebp - 0x38]
lea eax, [ebp - 8]
mov dl, 0x7c
call fcn.00468f08
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x14]
call fcn.00409180
lea ecx, [ebp - 0x40]
lea eax, [ebp - 8]
mov dl, 0x7c
call fcn.00468f08
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00409180
mov eax, dword [ebp - 0x3c]
mov edx, 0x4afa6c
call fcn.004050e0
sete byte [ebp - 0x26]
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0xc]
call fcn.0040a044
mov eax, dword [ebp - 0x44]
mov edx, 0x4afa78
call fcn.00409088
test al, al
je 0x4af707
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x34]
lea eax, [ebp - 0x10]
mov ecx, 0x4afa78
call fcn.00404fd0
jmp 0x4af718
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x34]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
call fcn.00404fd0
cmp dword [ebp - 0xc], 0
je 0x4af832
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4af72e
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x20
jne 0x4af832
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0046a428
test al, al
jne 0x4af832
mov edx, dword [0x4af58c]
mov eax, 0x1c
call fcn.00405b3c
mov ebx, eax
mov edx, ebx
mov eax, dword [ebp - 0x2c]
call fcn.00419510
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.00404d0c
lea eax, [ebx + 4]
mov ecx, 0x4afa8c
mov edx, dword [ebp - 0xc]
call fcn.00404fd0
movzx eax, byte [ebp - 0x26]
mov byte [ebx + 8], al
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
lea eax, [ebx + 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00404d0c
movzx eax, byte [0x4afa94]
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x4afaa0
mov edx, 0x4afaac
mov eax, dword [ebp - 0xc]
call fcn.0040e924
mov ecx, dword [ebp - 0x48]
lea eax, [ebx + 0xc]
mov edx, dword [ebp - 0x20]
call fcn.00404fd0
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0xc]
call fcn.0040a044
mov eax, dword [ebp - 0x4c]
mov edx, 0x4afa78
call fcn.00409088
test al, al
je 0x4af804
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x34]
push 0x4afa78
push 0x4afab8
lea eax, [ebx + 0x14]
mov edx, 3
call fcn.0040504c
jmp 0x4af81f
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x34]
push dword [ebp - 0xc]
push 0x4afab8
lea eax, [ebx + 0x14]
mov edx, 3
call fcn.0040504c
cmp byte [ebp - 0x26], 0
je 0x4af832
lea eax, [ebx + 0xc]
mov edx, 0x4afa8c
call fcn.00404f84
inc edi
dec esi
jne 0x4af646
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 8], 0
jne 0x4af855
call fcn.0040478c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4afa27
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 0x2c]
test al, al
je 0x4af876
call fcn.0040478c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4afa27
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x1c]
call fcn.004aedc0
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x4af9cb
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [ebp - 0x2c]
call fcn.00419668
mov ebx, eax
mov eax, dword [ebx]
push eax
push 0
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.004aee38
test al, al
je 0x4af99d
cmp byte [ebx + 8], 0
je 0x4af965
mov eax, dword [ebx + 0x10]
call fcn.00409c58
test al, al
je 0x4af904
mov edx, dword [ebx + 0x10]
lea eax, [ebp - 0x18]
mov ecx, 0x4afacc
call fcn.00404fd0
mov eax, dword [ebp - 0x18]
call fcn.00468d0c
mov eax, dword [ebp - 0x18]
call fcn.00405148
push eax
mov eax, dword [ebx + 0x10]
call fcn.00405148
push eax
call sub.kernel32.dll_MoveFileA
jmp 0x4af90c
lea eax, [ebp - 0x18]
call fcn.00404cb8
mov edx, dword [ebx + 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.004b06b0
mov eax, dword [ebx + 0x14]
call fcn.00468d0c
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x10]
call fcn.0046a428
test al, al
jne 0x4af95b
mov eax, dword [ebx + 0x10]
call fcn.00468d0c
mov eax, dword [ebp - 0x18]
call fcn.00409c58
test al, al
je 0x4af99d
mov eax, dword [ebx + 0x10]
call fcn.00405148
push eax
mov eax, dword [ebp - 0x18]
call fcn.00405148
push eax
call sub.kernel32.dll_MoveFileA
jmp 0x4af99d
mov eax, dword [ebp - 0x18]
call fcn.00468d0c
jmp 0x4af99d
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
call fcn.0046a428
test al, al
jne 0x4af97e
mov eax, dword [ebx + 0x14]
call fcn.00468d0c
jmp 0x4af99d
mov eax, dword [ebx + 0x10]
call fcn.00468d0c
mov eax, dword [ebx + 0x10]
call fcn.00405148
push eax
mov eax, dword [ebx + 0x14]
call fcn.00405148
push eax
call sub.kernel32.dll_MoveFileA
mov eax, dword [ebx + 0x14]
call fcn.00468d0c
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 0x2c]
test al, al
je 0x4af9c3
call fcn.0040478c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4afa27
inc edi
dec esi
jne 0x4af896
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4afa0f
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x4af9ff
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [ebp - 0x2c]
call fcn.00419668
mov edx, dword [0x4af58c]
call fcn.00405b50
inc edi
dec esi
jne 0x4af9e6
mov eax, dword [ebp - 0x2c]
call fcn.00403e6c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4afa56
lea eax, [ebp - 0x4c]
mov edx, 8
call fcn.00404cdc
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00404cdc
ret