Function at 0x401fe2
Capabilities:
Move file

Disassembly:
push 0x44
mov eax, 0x464935
call fcn.00460433
mov eax, dword [ebp + 8]
lea edi, [ecx + 8]
mov dword [ebp - 0x14], edi
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401ffa
mov ecx, dword [ecx]
sub eax, esi
mov dword [ebp - 0x20], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
jbe 0x402043
mov dword [ebp - 0x18], edi
mov ecx, dword [ebp - 0x18]
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp - 0x20]
sub edx, edi
cmp ecx, edx
jne 0x402039
mov esi, dword [ebp + 8]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x402035
sbb edx, edx
sbb edx, 0xffffffff
cmp edx, ebx
je 0x402059
add dword [ebp - 0x18], 0x10
inc eax
cmp eax, dword [ebp - 0x1c]
jb 0x402016
mov dword [ebp - 0x14], ebx
mov edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x402064
mov eax, 0x10000
xor edx, edx
jmp 0x4022d1
shl eax, 4
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x402046
mov esi, dword [ebp + 0xc]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40206c
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
mov dword [ebp - 0x20], 0x46c12a
je 0x40208a
mov dword [ebp - 0x20], 0x46b72c
xor esi, esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
cmp dword [edi + 8], ebx
jbe 0x4022a1
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x18]
push ebx
push ebx
mov edi, dword [ebp - 0x28]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ecx + eax]
lea eax, [ebp - 0x50]
push dword [ebp - 0x20]
and esi, 0xfffffffd
push dword [ebp + 0xc]
mov dword [ebp - 0x2c], esi
push eax
mov dword [ebp - 0x28], edi
call fcn.0040554d
add esp, 0x34
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x50], ebx
je 0x4022d9
mov ebx, dword [ebp - 0x4c]
call fcn.00405944
mov ecx, eax
and ecx, 2
push 0
mov dword [ebp - 0x44], ecx
pop ecx
jne 0x4020fa
test ecx, ecx
je 0x4022f9
push 0
push dword [ebp - 0x4c]
call fcn.0045900a
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
pop ecx
pop ecx
je 0x402119
or esi, 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
push 0x46b81c
push dword [ebp - 0x4c]
call fcn.00450b6d
pop ecx
pop ecx
mov dword [ebp + 8], eax
test bl, bl
je 0x402139
xor ebx, ebx
cmp eax, ebx
jne 0x40213b
mov al, 1
jmp 0x40213d
xor ebx, ebx
xor al, al
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 2
test al, al
je 0x4021d8
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str..XXXXXX
push dword [ebp - 0x4c]
lea eax, [ebp - 0x3c]
or esi, 4
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
call fcn.004054e9
add esp, 0x24
mov ecx, eax
lea edi, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0040138b
mov byte [ebp - 4], 2
cmp dword [ebp - 0x38], ebx
je 0x402194
mov esi, dword [ebp - 0x38]
call fcn.00401000
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x34], ebx
je 0x402317
push dword [ebp - 0x34]
call fcn.0045fafa
pop ecx
test eax, eax
je 0x402317
push 0x46b81c
push dword [ebp - 0x34]
call fcn.00450b6d
mov edi, eax
pop ecx
pop ecx
cmp edi, dword [ebp + 8]
je 0x4021d5
cmp dword [ebp + 8], ebx
je 0x4021d2
push dword [ebp + 8]
call fcn.00451328
pop ecx
mov dword [ebp + 8], edi
mov edi, dword [ebp - 0x28]
cmp dword [ebp + 8], ebx
je 0x402354
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov esi, dword [ebp + 8]
push ebx
push dword [eax + ecx + 8]
push dword [eax + ecx + 0xc]
mov eax, dword [eax + ecx + 0x10]
call fcn.00403fd4
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ebp - 0x18]
add esp, 0xc
cmp dword [edx + ecx + 8], eax
jne 0x402386
mov ecx, esi
call fcn.00401c93
push esi
call fcn.00451328
pop ecx
mov dword [ebp + 8], ebx
cmp dword [ebp - 0x34], ebx
je 0x402265
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0xb
push dword [ebp - 0x4c]
push dword [ebp - 0x34]
call esi
test eax, eax
je 0x40224c
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x30]
cmp esi, ebx
je 0x402276
jmp 0x402271
push 5
push dword [ebp - 0x4c]
push dword [ebp - 0x34]
call esi
test eax, eax
je 0x4023ad
or dword [ebp - 0x2c], 8
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], ebx
je 0x402276
mov esi, dword [ebp - 0x30]
call fcn.00401000
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x48]
cmp esi, ebx
je 0x402286
call fcn.00401000
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0x18], 0x14
mov esi, dword [ebp - 0x2c]
xor ebx, ebx
cmp ecx, dword [eax + 8]
jb 0x40209e
mov eax, esi
and eax, 0xf0000
mov dword [ebp - 0x44], eax
mov eax, ebx
jne 0x4022cc
cmp eax, ebx
jne 0x4022cc
mov eax, esi
and eax, 8
mov dword [ebp - 0x44], eax
mov eax, ebx
jne 0x4022cc
cmp eax, ebx
jne 0x4022cc
mov eax, dword [ebp - 0x28]
or esi, 2
mov dword [ebp - 0x28], eax
mov eax, esi
mov edx, dword [ebp - 0x28]
call fcn.004604d2
ret 8
or dword [ebp - 4], 0xffffffff
or esi, 0x80000
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x48]
cmp esi, ebx
je 0x4022f2
call fcn.00401000
mov eax, dword [ebp - 0x34]
mov edx, edi
jmp 0x4022d1
or dword [ebp - 4], 0xffffffff
or eax, esi
mov esi, dword [ebp - 0x48]
or edx, edi
mov edi, eax
mov ebx, edx
test esi, esi
je 0x402311
call fcn.00401000
mov eax, edi
mov edx, ebx
jmp 0x4022d1
or esi, 0x80000
mov edi, esi
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x30]
cmp esi, ebx
je 0x40232f
call fcn.00401000
cmp dword [ebp + 8], ebx
je 0x40233d
push dword [ebp + 8]
call fcn.00451328
pop ecx
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x48]
cmp esi, ebx
je 0x40234d
call fcn.00401000
mov eax, edi
jmp 0x4022ce
or esi, 0x80000
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x30], ebx
je 0x40236e
mov esi, dword [ebp - 0x30]
call fcn.00401000
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x48]
cmp esi, ebx
je 0x40237e
call fcn.00401000
mov eax, dword [ebp - 0x2c]
jmp 0x4022f5
mov eax, dword [ebp - 0x2c]
or eax, 0x40000
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x30], ebx
je 0x4023a2
mov esi, dword [ebp - 0x30]
call fcn.00401000
push dword [ebp + 8]
call fcn.00451328
pop ecx
jmp 0x40236e
or dword [ebp - 0x2c], 0x80000
push 0xb
push ebx
push dword [ebp - 0x34]
call esi
test eax, eax
jne 0x4023d0
push 5
push ebx
push dword [ebp - 0x34]
call esi
test eax, eax
je 0x4023d0
or dword [ebp - 0x2c], 8
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x30]
cmp esi, ebx
je 0x40236e
jmp 0x402369