Function at 0x40bbf0
Capabilities:
Copy file

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 0x4335a0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x445008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], edx
mov esi, ecx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp dword [edx + 0x10], eax
je 0x40bfb1
mov dword [ebp - 4], eax
push 0x210
movups xmmword [ebp - 0x2c], xmm0
call fcn.00420581
mov edx, eax
mov dword [ebp - 0x1c], 0x104
xor eax, eax
mov dword [ebp - 0x2c], edx
add esp, 4
mov dword [ebp - 0x18], 0x107
mov edi, edx
mov ecx, 0x82
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov edi, eax
test edi, edi
je 0x40bd1e
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x34], ecx
cmp edi, ecx
ja 0x40bccb
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
cmovae ecx, dword [ebp - 0x2c]
xor eax, eax
mov word [ecx + edi*2], ax
jmp 0x40bd35
mov eax, dword [ebp - 0x18]
mov edx, edi
sub edx, ecx
sub eax, ecx
cmp edx, eax
ja 0x40bd0e
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
lea edi, [eax + ecx*2]
test edx, edx
je 0x40bd00
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp - 0x34]
lea eax, [edx + ecx]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x40bd35
push ecx
push edx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
push edx
call fcn.00402c90
jmp 0x40bd35
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x1c]
test edi, edi
sete al
test edi, edi
je 0x40bf7b
mov dword [ebp - 4], 1
xorps xmm0, xmm0
xor ecx, ecx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
movups xmmword [ebp - 0x68], xmm0
mov word [ebp - 0x68], cx
test al, al
jne 0x40bde9
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
push 1
cmovae ecx, dword [ebp - 0x2c]
mov edx, edi
push 0x43b324
push ecx
call fcn.00408180
mov edx, eax
add esp, 0xc
cmp edx, 0xffffffff
je 0x40bde9
inc edx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
cmp edi, edx
jb 0x40bfd1
sub edi, edx
lea eax, [ebp - 0x2c]
or ecx, 0xffffffff
cmp edi, 0xffffffff
cmovb ecx, edi
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x50]
lea eax, [eax + edx*2]
push eax
call fcn.004083a0
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [ebp - 0x68], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [ebp - 0x58], xmm0
mov ecx, dword [ebp - 0x30]
mov eax, SysReAllocString
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 1
jb 0x40bfd6
cmp dword [ecx + 0x14], 8
jb 0x40be0e
mov ecx, dword [ecx]
push 1
push 0x43b324
push edx
push ecx
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x50]
call fcn.004087d0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x80]
call fcn.0040e240
lea eax, [ebp - 0x80]
cmp esi, eax
je 0x40be94
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x40be76
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40be6c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bfdb
mov eax, edx
push ecx
push eax
call fcn.004205b6
add esp, 8
movups xmm0, xmmword [ebp - 0x80]
xor eax, eax
mov ecx, 7
mov word [ebp - 0x80], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x70]
movq qword [esi + 0x10], xmm0
jmp 0x40be97
mov ecx, dword [ebp - 0x6c]
cmp ecx, 8
jb 0x40bece
mov edx, dword [ebp - 0x80]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bec4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bfdb
push ecx
push edx
call fcn.004205b6
add esp, 8
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x40bf08
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40befe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bfdb
push ecx
push edx
call fcn.004205b6
add esp, 8
mov ecx, dword [ebp - 0x54]
cmp ecx, 8
jb 0x40bf42
mov edx, dword [ebp - 0x68]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bf38
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bfdb
push ecx
push edx
call fcn.004205b6
add esp, 8
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x40bf4c
mov ecx, dword [esi]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x40bf7b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40bf6f
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x40bfb1
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bfa7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bfdb
push ecx
push edx
call fcn.004205b6
add esp, 8
mov eax, esi
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.00420573
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00407bb0
call fcn.00401640
call fcn.0042552f
int3