Function at 0x40b020
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d56b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x47b06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0xc1], 1
call fcn.00424400
push esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0
call fcn.00401b10
mov byte [ebp - 4], 1
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 0x10
push ecx
cmovae eax, dword [ebp - 0x74]
lea ecx, [ebp - 0xa4]
push eax
call fcn.004245c0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0xc2], al
call fcn.00424e00
cmp byte [ebp - 0xc2], 0
jne 0x40b0c9
mov byte [ebp - 0xc1], 0
jmp 0x40b3ca
mov eax, 0xf
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x2c], 0
mov ecx, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x78], 0
je 0x40b335
nop word [eax + eax]
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00424ed0
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x40b183
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40b14f
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b145
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b43f
push edx
push ecx
call fcn.0042736a
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0xac]
cmp edx, 0x10
jb 0x40b1bd
mov ecx, dword [ebp - 0xc0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b1b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b43f
push edx
push ecx
call fcn.0042736a
add esp, 8
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.00412450
mov byte [ebp - 4], 5
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x40b1d6
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
push 0
mov ecx, eax
call fcn.00401e00
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x30]
movq qword [ebp - 0xd0], xmm1
movups xmmword [ebp - 0xb8], xmm0
cmp edx, 0x10
jb 0x40b24e
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b235
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b43f
push edx
push ecx
call fcn.0042736a
movups xmm0, xmmword [ebp - 0xb8]
add esp, 8
movq xmm1, qword [ebp - 0xd0]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x48]
movq qword [ebp - 0x34], xmm1
movups xmmword [ebp - 0x44], xmm0
cmp edx, 0x10
jb 0x40b28f
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b285
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b43f
push edx
push ecx
call fcn.0042736a
add esp, 8
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 0x10
push 0
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call esi
test eax, eax
jne 0x40b30f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40b30f
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push 0x80
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x44]
push 0
cmovae ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call esi
neg eax
sbb al, al
and byte [ebp - 0xc1], al
lea ecx, [ebp - 0xa4]
call fcn.00424840
lea ecx, [ebp - 0xa4]
call fcn.00424e00
cmp dword [ebp - 0x78], 0
jne 0x40b100
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 3
cmp ecx, 0x10
jb 0x40b36f
lea edx, [ecx + 1]
mov ecx, dword [ebp - 0x44]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b362
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b43f
push edx
push ecx
call fcn.0042736a
mov eax, dword [ebp - 0x18]
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x40b3b8
mov ecx, dword [ebp - 0x2c]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b3ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b444
push edx
push ecx
call fcn.0042736a
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
jb 0x40b3fe
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b3f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b449
push edx
push ecx
call fcn.0042736a
add esp, 8
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 6
call fcn.00424760
lea ecx, [ebp - 0xa4]
call fcn.004244a0
mov al, byte [ebp - 0xc1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00427329
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004421bc
call fcn.004421bc
call fcn.004421bc
int3