Function at 0x1005c150
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xb4
push ebp
mov ebp, dword [esp + 0xbc]
push edi
xor edi, edi
cmp ebp, edi
lea eax, [esp + 0x6c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edi
je 0x1005c789
cmp dword [ebp], 0xbab1e
jne 0x1005c789
cmp dword [ebp + 0xf4], edi
je 0x1005c19a
lea eax, [edi + 8]
pop edi
pop ebp
add esp, 0xb4
ret
cmp dword [esp + 0xcc], edi
jge 0x1005c1b1
pop edi
mov eax, 0xa
pop ebp
add esp, 0xb4
ret
push ebx
mov ebx, dword [ebp + 4]
cmp ebx, edi
push esi
je 0x1005c225
lea ebx, [ebx]
lea edx, [esp + 0x34]
mov ecx, ebx
call fcn.1005af40
xor edx, edx
lea ecx, [ecx]
mov ebp, 1
mov ecx, edx
shl ebp, cl
or esi, 0xffffffff
test eax, ebp
je 0x1005c1ee
mov ecx, dword [esp + edx*4 + 0x34]
cmp ecx, 0xffffffff
jae 0x1005c1ee
add edi, 1
mov esi, ecx
lea ecx, [edx + 0x10]
mov ebp, 1
shl ebp, cl
test eax, ebp
je 0x1005c20a
mov ecx, dword [esp + edx*4 + 0x34]
cmp ecx, 0xffffffff
jae 0x1005c20a
add edi, 1
mov esi, ecx
cmp esi, 0xffffffff
je 0x1005c217
add edx, 1
cmp edx, 5
jb 0x1005c1d0
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x1005c1c0
mov ebp, dword [esp + 0xc8]
lea ecx, [esp + 0x24]
push ecx
mov eax, ebp
call fcn.1005b850
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
jl 0x1005c24c
cmp eax, dword [esp + 0xd4]
jge 0x1005c24c
mov dword [esp + 0xd4], eax
mov esi, edi
add edi, dword [esp + 0xd0]
cmp dword [esp + 0xe0], 0
mov dword [esp + 0x24], esi
je 0x1005c266
add edi, 1
cmp edi, 0xa
jbe 0x1005c29c
lea edx, [edi*8]
push edx
call dword [section..data]
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
jne 0x1005c294
pop esi
pop ebx
pop edi
mov eax, 3
pop ebp
add esp, 0xb4
ret
mov dword [esp + 0x2c], 1
xor ebx, ebx
test esi, esi
mov dword [esp + 0x20], ebx
je 0x1005c3c0
mov eax, dword [ebp + 4]
test eax, eax
mov dword [esp + 0x10], eax
je 0x1005c3c0
lea esp, [esp]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x34]
call fcn.1005af40
mov dword [esp + 0x14], eax
xor ebp, ebp
mov edx, dword [esp + 0x14]
mov eax, 1
mov ecx, ebp
shl eax, cl
or esi, 0xffffffff
xor edi, edi
test edx, eax
je 0x1005c30e
mov eax, dword [esp + ebp*4 + 0x34]
cmp eax, 0xffffffff
jae 0x1005c30e
mov esi, eax
mov eax, dword [esp + 0x18]
mov dword [eax + ebx*8], esi
mov word [eax + ebx*8 + 4], 1
add ebx, 1
mov edi, 0x29
mov dword [esp + 0x20], ebx
lea ecx, [ebp + 0x10]
mov eax, 1
shl eax, cl
test edx, eax
je 0x1005c377
mov eax, dword [esp + ebp*4 + 0x34]
cmp eax, 0xffffffff
jae 0x1005c377
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
push 0x1008
mov esi, eax
push 0xffff
push esi
or edi, 0x32
mov dword [esp + 0x30], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1005c362
cmp dword [esp + 0x30], 1
jne 0x1005c362
push eax
push eax
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x18]
mov dword [eax + ebx*8], esi
mov word [eax + ebx*8 + 4], 4
add ebx, 1
mov dword [esp + 0x20], ebx
cmp esi, 0xffffffff
je 0x1005c3a6
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax + 0xe4]
push edi
push ecx
push esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x1005c72b
add ebp, 1
cmp ebp, 5
jb 0x1005c2d3
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x1005c2c0
mov ebp, dword [esp + 0xc8]
cmp dword [esp + 0xd0], 0
mov dword [esp + 0x14], 0
jbe 0x1005c4bb
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0xcc]
lea ebx, [edx + ecx*8 + 4]
add esi, 4
lea esp, [esp]
movzx eax, word [esi]
xor ebp, ebp
test al, 1
je 0x1005c3fe
mov ebp, 0x29
test al, 2
je 0x1005c405
or ebp, 4
test al, 4
je 0x1005c447
mov edi, dword [esi - 4]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x1008
push 0xffff
push edi
or ebp, 0x32
mov dword [esp + 0x44], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1005c447
cmp dword [esp + 0x1c], 1
jne 0x1005c447
push eax
push eax
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [esp + 0xc8]
mov eax, dword [edx + 0xe4]
mov ecx, dword [esi - 4]
push ebp
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x1005c72b
mov edx, dword [esi - 4]
mov dword [ebx - 4], edx
mov word [ebx], ax
test byte [esi], 1
je 0x1005c47b
mov word [ebx], 1
test byte [esi], 2
je 0x1005c484
or word [ebx], 2
test byte [esi], 4
je 0x1005c48d
or word [ebx], 4
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], 1
add eax, 1
add ebx, 8
add esi, 8
cmp eax, dword [esp + 0xd0]
mov dword [esp + 0x14], eax
jb 0x1005c3f0
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0xc8]
test ebx, ebx
jne 0x1005c750
cmp dword [esp + 0xe0], ebx
je 0x1005c695
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0xd4]
push 0
push edx
push 0
add ebp, 0xe4
push ebp
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp dword [esp + 0xd0], 0
jbe 0x1005c5c5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0xcc]
lea edx, [eax + ecx*8 + 6]
mov eax, dword [esp + 0xd0]
add ebp, 6
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
mov edi, dword [ebp - 6]
movsx ebx, word [ecx]
lea edx, [esp + 0x48]
push edx
xor esi, esi
push esi
push edi
mov dword [esp + 0x54], esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x1005c578
mov eax, dword [esp + 0x48]
test al, 0x29
je 0x1005c550
mov esi, 1
test al, 0x32
je 0x1005c557
or esi, 4
test al, 4
je 0x1005c55e
or esi, 2
cmp dword [esp + 0xd8], 0
je 0x1005c578
cmp dword [esp + 0x1c], 0
jne 0x1005c578
test eax, eax
je 0x1005c578
add dword [esp + 0x28], 1
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax + 0xe4]
push 0
push ecx
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp dword [esp + 0x1c], 0
je 0x1005c5ae
test bl, 1
je 0x1005c59e
or esi, 1
test bl, 4
je 0x1005c5a6
or esi, 4
test bl, 2
je 0x1005c5ae
or esi, 2
add dword [esp + 0x10], 8
mov word [ebp], si
add ebp, 8
sub dword [esp + 0x14], 1
jne 0x1005c522
mov edi, dword [esp + 0xc8]
xor ebx, ebx
cmp dword [esp + 0x24], ebx
je 0x1005c67d
mov eax, dword [edi + 4]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x1005c67d
mov ebp, dword [sym.imp.WS2_32.dll_WSAEventSelect]
lea ecx, [ecx]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x34]
call fcn.1005af40
mov dword [esp + 0x14], eax
xor esi, esi
lea ecx, [esi + 0x10]
mov edx, 1
shl edx, cl
mov ecx, esi
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x14]
or edx, eax
test ecx, edx
je 0x1005c66a
mov eax, dword [esp + esi*4 + 0x34]
lea edx, [esp + 0x48]
push edx
push ebx
push eax
mov dword [esp + 0x54], ebx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x1005c653
cmp dword [esp + 0xd8], ebx
je 0x1005c653
cmp dword [esp + 0x1c], ebx
jne 0x1005c653
cmp dword [esp + 0x48], ebx
je 0x1005c653
add dword [esp + 0x28], 1
mov ecx, dword [edi + 0xe4]
mov edx, dword [esp + esi*4 + 0x34]
push ebx
push ecx
push edx
call ebp
add esi, 1
cmp esi, 5
jb 0x1005c603
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x1005c5f0
mov ecx, dword [edi + 0xe4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0xc8]
cmp dword [esp + 0x2c], 0
je 0x1005c6aa
mov edx, dword [esp + 0x18]
push edx
call dword [0x10279004]
add esp, 4
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x1005c6bb
mov ecx, dword [esp + 0x28]
mov dword [eax], ecx
cmp dword [esp + 0xdc], 0
je 0x1005c71e
test ebx, ebx
jne 0x1005c71e
cmp dword [esp + 0xe0], ebx
jne 0x1005c71e
cmp dword [ebp], 0xbab1e
mov dword [esp + 0x24], ebx
jne 0x1005c71e
cmp dword [ebp + 0xf4], ebx
jne 0x1005c71e
lea edx, [esp + 0x24]
push edx
mov eax, ebp
call fcn.1005b850
add esp, 4
test eax, eax
jne 0x1005c71e
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1005c71e
mov ecx, dword [esp + 0xd4]
cmp eax, ecx
jg 0x1005c711
test eax, eax
jge 0x1005c713
mov eax, ecx
cdq
push edx
push eax
call fcn.1008bb90
add esp, 8
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0xb4
ret
cmp dword [esp + 0x2c], 0
je 0x1005c740
mov eax, dword [esp + 0x18]
push eax
call dword [0x10279004]
add esp, 4
pop esi
pop ebx
pop edi
mov eax, 4
pop ebp
add esp, 0xb4
ret
mov ecx, dword [esp + 0x18]
push 0
push 0
push ebx
push ecx
call fcn.1008bc70
add esp, 0x10
test eax, eax
mov dword [esp + 0x1c], eax
jge 0x1005c77a
pop esi
pop ebx
pop edi
mov eax, 0xc
pop ebp
add esp, 0xb4
ret
jle 0x1005c4d4
mov dword [esp + 0x28], eax
jmp 0x1005c4ef
pop edi
mov eax, 1
pop ebp
add esp, 0xb4
ret