Function at 0x410520
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cefc
mov eax, dword fs:[0]
push eax
sub esp, 0xccc
mov eax, dword [0x440068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00404fa0
test al, al
jne 0x4105fe
xor eax, eax
mov dword [ebp - 0xc84], 0
mov dword [ebp - 0xc28], 0
mov dword [ebp - 0xc24], 7
mov word [ebp - 0xc38], ax
lea edx, [ebp - 0xc38]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc84]
call fcn.0040fe80
cmp dword [ebp - 0xc24], 8
lea edx, [ebp - 0xc38]
push ecx
cmovae edx, dword [ebp - 0xc38]
mov ecx, dword [ebp - 0xc84]
call fcn.00413af0
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov edx, dword [ebp - 0xc24]
cmp edx, 8
jb 0x4105fe
mov ecx, dword [ebp - 0xc38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4105f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41096e
push edx
push ecx
call fcn.004152ff
add esp, 8
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00417b20
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0xc50]
call fcn.00404c50
mov dword [ebp - 4], 1
lea eax, [ebp - 0xc50]
cmp dword [ebp - 0xc3c], 8
cmovae eax, dword [ebp - 0xc50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
mov dword [ebp - 0xc70], 0
mov ecx, edx
mov dword [ebp - 0xc6c], 7
xor eax, eax
mov word [ebp - 0xc80], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410677
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xc80]
call fcn.00404280
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x420]
xor eax, eax
mov dword [ebp - 0xc28], 0
mov dword [ebp - 0xc24], 7
lea edx, [ecx + 2]
mov word [ebp - 0xc38], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4106c0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc38]
call fcn.00404280
lea eax, [ebp - 0xc80]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0xc38]
lea ecx, [ebp - 0xc68]
call fcn.00405fa0
mov edx, dword [ebp - 0xc24]
add esp, 4
cmp edx, 8
jb 0x410741
mov ecx, dword [ebp - 0xc38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410737
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410973
push edx
push ecx
call fcn.004152ff
add esp, 8
mov edx, dword [ebp - 0xc6c]
cmp edx, 8
jb 0x410781
mov ecx, dword [ebp - 0xc80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410777
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410978
push edx
push ecx
call fcn.004152ff
add esp, 8
cmp dword [ebp - 0xc54], 8
lea ecx, [ebp - 0xc68]
push 0
cmovae ecx, dword [ebp - 0xc68]
lea eax, [ebp - 0xc50]
cmp dword [ebp - 0xc3c], 8
push ecx
cmovae eax, dword [ebp - 0xc50]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4108b5
push 0x800
lea eax, [ebp - 0xc20]
push 0
push eax
call fcn.00417b20
cmp dword [ebp - 0xc3c], 8
lea esi, [ebp - 0xc50]
lea edx, [ebp - 0xc50]
cmovae esi, dword [ebp - 0xc50]
lea eax, [ebp - 0xc20]
cmovae edx, dword [ebp - 0xc50]
push esi
push str._kill
push edx
push str._s__s__s_
push eax
call fcn.00407910
add esp, 0x20
mov dword [ebp - 0xcc8], 0x44
lea ecx, [ebp - 0xcd8]
mov dword [ebp - 0xc9c], 1
xor eax, eax
xorps xmm0, xmm0
cmp dword [ebp - 0xc54], 8
push ecx
lea ecx, [ebp - 0xcc8]
mov word [ebp - 0xc86], ax
push ecx
lea ecx, [ebp - 0x420]
mov word [ebp - 0xc98], ax
push ecx
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0xc20]
movlpd qword [ebp - 0xcc4], xmm0
lea eax, [ebp - 0xc68]
movlpd qword [ebp - 0xcbc], xmm0
cmovae eax, dword [ebp - 0xc68]
push ecx
push eax
movups xmmword [ebp - 0xcd8], xmm0
movlpd qword [ebp - 0xcb4], xmm0
movlpd qword [ebp - 0xcac], xmm0
movlpd qword [ebp - 0xca4], xmm0
movlpd qword [ebp - 0xc96], xmm0
movlpd qword [ebp - 0xc8e], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4108bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0xc54]
cmp edx, 8
jb 0x4108fb
mov ecx, dword [ebp - 0xc68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4108f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41097d
push edx
push ecx
call fcn.004152ff
add esp, 8
mov edx, dword [ebp - 0xc3c]
xor eax, eax
mov dword [ebp - 0xc58], 0
mov dword [ebp - 0xc54], 7
mov word [ebp - 0xc68], ax
cmp edx, 8
jb 0x410954
mov ecx, dword [ebp - 0xc50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41094a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410982
push edx
push ecx
call fcn.004152ff
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415024
mov esp, ebp
pop ebp
ret
call fcn.0041b091
call fcn.0041b091
call fcn.0041b091
call fcn.0041b091
call fcn.0041b091
int3