Function at 0x478420
Capabilities:
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x584edb
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5cca0c]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x5cca0c]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], ebx
je 0x478888
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
push edi
push 2
push 2
mov dword [esp + 0xc4], edi
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x3c], esi
jne 0x4784ab
mov eax, dword [esp + 0x18]
cmp eax, edi
jmp 0x47887d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
mov word [esp + 0xb4], 2
push 0x16
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], edi
push str.cspdcollect.xunyou.com
mov byte [ecx + 4], 0
call fcn.0040c1c0
call fcn.00473f30
add esp, 0x1c
push 0x15b3
mov dword [esp + 0xa0], eax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
mov word [esp + 0xb6], ax
push 0xffffffffffffffff
lea eax, [ebx + 8]
push edi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], edi
push eax
mov byte [ecx + 4], 0
call fcn.0040a080
call fcn.00473f30
mov dword [esp + 0x48], eax
mov eax, dword [ebx]
add esp, 0x1c
cmp eax, edi
mov dword [esp + 0x28], eax
jle 0x478870
jmp 0x478544
mov ebx, dword [esp + 0x40]
sub dword [esp + 0x28], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x44], 0xa
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x478589
mov ecx, dword [esp + 0x2c]
push 0xa
push 0x3e8
push 0x1e
lea eax, [esp + 0x54]
push eax
push ecx
lea ecx, [esp + 0x47]
call fcn.004ba3a0
test eax, eax
je 0x4785fd
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x34], edx
jmp 0x4785af
cmp eax, 3
jne 0x4785fd
movzx eax, word [ebx + 0x24]
mov ecx, dword [esp + 0x2c]
push 0x3e8
push eax
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x40]
push edx
call fcn.00471aa0
test al, al
je 0x4785fd
mov esi, dword [esp + 0x18]
test esi, esi
mov edx, dword [esp + 0x1c]
je 0x4785e0
mov ecx, dword [esp + 0x20]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x4785e0
mov ecx, dword [esp + 0x34]
mov eax, edx
add eax, 4
mov dword [edx], ecx
mov dword [esp + 0x1c], eax
jmp 0x47865a
cmp esi, edx
mov edi, edx
jbe 0x4785eb
call fcn.005532de
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x18]
push edi
push eax
lea eax, [esp + 0x64]
push eax
jmp 0x478651
mov esi, dword [esp + 0x18]
test esi, esi
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], 0x3e8
je 0x478636
mov ecx, dword [esp + 0x20]
mov eax, edx
sub eax, esi
sub ecx, esi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x478636
mov eax, edx
add eax, 4
mov dword [edx], 0x3e8
mov dword [esp + 0x1c], eax
jmp 0x47865a
cmp esi, edx
mov edi, edx
jbe 0x478641
call fcn.005532de
lea ecx, [esp + 0x38]
push ecx
push edi
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x24]
call fcn.00477110
push 0x1770
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [esp + 0x44], 1
jne 0x478557
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push 0
add eax, 0x70
push eax
lea ecx, [esp + 0x88]
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], 0
mov byte [esp + 0x8c], 0
call fcn.0040a080
mov esi, dword [esp + 0x80]
mov ebx, 0x10
cmp dword [esp + 0x94], ebx
mov byte [esp + 0xb8], 1
jae 0x4786ca
lea esi, [esp + 0x80]
push str.0000_
push esi
call fcn.005560e0
add esp, 8
cmp eax, esi
jne 0x478733
mov eax, dword [esp + 0x90]
cmp eax, 5
jbe 0x478733
add eax, 0xfffffffb
push eax
push 5
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x88]
call fcn.0040dd40
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0xc4], 2
call fcn.0040a080
cmp dword [esp + 0x78], ebx
mov byte [esp + 0xb8], 1
jb 0x478733
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0055215c
add esp, 4
mov edi, dword [esp + 0x90]
add edi, 0x3c
push edi
call fcn.00551843
push edi
mov esi, eax
push 0
push esi
call fcn.00552500
lea edx, [edi - 2]
push 0
mov word [esi], dx
mov byte [esi + 2], 1
call fcn.005561fd
mov dword [esi + 3], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x2c]
mov dword [esi + 7], ecx
mov dword [esi + 0xb], 0xf4240
mov edx, dword [eax + 0x28]
mov dword [esi + 0xf], edx
mov al, byte [esp + 0xa4]
mov byte [esi + 0x3a], al
mov eax, dword [esp + 0x94]
add esp, 0x14
cmp dword [esp + 0x94], ebx
jae 0x47879d
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x90]
push ecx
push eax
lea edx, [esi + 0x3b]
push edx
call fcn.00552de0
mov eax, dword [esp + 0x38]
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esi + 0x13]
push edx
call fcn.00474180
mov ecx, dword [esp + 0x3c]
push ebx
lea eax, [esp + 0x9c]
push eax
push 0
push edi
push esi
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
push esi
call fcn.0055221b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp ecx, eax
mov esi, eax
jbe 0x478805
call fcn.005532de
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov edi, ecx
jbe 0x478814
call fcn.005532de
mov eax, dword [esp + 0x1c]
cmp edi, esi
je 0x478840
sub eax, esi
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea ebx, [ecx + edi]
jle 0x478837
push ecx
push esi
push ecx
push edi
call fcn.0055239e
add esp, 0x10
mov dword [esp + 0x1c], ebx
mov ebx, 0x10
cmp dword [esp + 0x94], ebx
mov byte [esp + 0xb8], 0
jb 0x478861
mov edx, dword [esp + 0x80]
push edx
call fcn.0055215c
add esp, 4
cmp dword [esp + 0x28], 0
jg 0x478540
mov esi, dword [esp + 0x3c]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x478888
push eax
call fcn.0055215c
add esp, 4
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00552d63
mov esp, ebp
pop ebp
ret 4