Function at 0x41da80
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x47aade
mov eax, dword fs:[0]
push eax
mov eax, 0x2950
call fcn.0044ebb0
mov eax, dword [0x4985d0]
xor eax, esp
mov dword [esp + 0x2948], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4985d0]
xor eax, esp
push eax
lea eax, [esp + 0x2964]
mov dword fs:[0], eax
mov eax, dword [esp + 0x297c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x296c], 1
call fcn.0042eb29
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41daf1
push 0x80004005
call fcn.00403740
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x296c], 2
call fcn.0042eb29
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41db23
push 0x80004005
call fcn.00403740
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x296c], 3
mov eax, dword [esp + 0x2978]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], eax
call fcn.0040d8b0
lea ebp, [eax + 0x10]
add esp, 4
mov dword [esp + 0x28], ebp
mov byte [esp + 0x296c], 4
lea esp, [esp]
push 0x844
call fcn.00425b4b
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x296c], 5
je 0x41db97
push eax
call fcn.0040e710
mov esi, eax
jmp 0x41db99
xor esi, esi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
push ecx
push ebp
mov byte [esp + 0x2980], 4
call fcn.00431e83
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
mov eax, esi
call fcn.0040e960
cmp dword [esi + 0x34], ebx
jne 0x41dbf3
push 0x485efc
call dword [sym.imp.WS2_32.dll_getprotobyname]
movsx edx, word [eax + 8]
push edx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x38], eax
movzx eax, word [esp + 0x30]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0040e860
lea edx, [esi + 0x40]
mov eax, edx
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41dc10
sub eax, edi
cmp dword [esi + 0x34], ebx
je 0x41dc41
cmp edx, ebx
je 0x41dc41
cmp eax, ebx
je 0x41dc41
mov ecx, dword [esi + 0x38]
push ebx
push eax
push edx
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x41dc41
mov eax, esi
call fcn.0040ebb0
mov eax, dword [esi + 0x38]
push 4
lea edx, [esp + 0x1c]
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x2c], 0x2710
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp dword [esi + 0x840], ebx
je 0x41dfda
mov cl, byte [esi + 0x449]
mov dl, byte [esi + 0x44a]
mov al, byte [esi + 0x44b]
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
mov word [esp + 0x21], bx
push ecx
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], al
call fcn.0044960b
mov edi, eax
lea edx, [edi - 0x12c]
add esp, 4
cmp edx, 0x63
ja 0x41dd3c
push pe_nt_image_headers32
lea eax, [esp + 0x60]
push eax
mov ecx, str.Location
mov edx, esi
call fcn.0040ec90
cmp eax, ebx
jl 0x41dd1e
lea eax, [esp + 0x5c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41dcd2
sub eax, edx
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x30]
call fcn.00403ef0
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x41dd07
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x41dd0a
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], ebx
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
mov ebp, dword [esp + 0x28]
jmp 0x41db70
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x41dd39
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x41dd3c
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], ebx
add edi, 0xffffff38
cmp edi, 0xc7
ja 0x41dfda
push 0x1e
lea ecx, [esp + 0x40]
push ecx
mov ecx, str.Content_Length
mov edx, esi
call fcn.0040ec90
lea edx, [esp + 0x3c]
push edx
call fcn.0044960b
mov edi, dword [esp + 0x38]
add esp, 4
cmp edi, ebx
mov ebp, eax
mov dword [esp + 0x20], ebp
je 0x41ddba
mov eax, dword [esi + 0x24]
add eax, ebp
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fst qword [0x49dc68]
call fcn.0044efb0
mov ecx, dword [edi + 0x20]
movzx eax, ax
movzx eax, ax
shl eax, 0x10
push eax
push ebx
push 0x401
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x2974]
mov edx, dword [edx + 0x20]
push 0
lea edi, [esi + 0x14]
push 0x3042
push eax
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov ecx, edi
call edx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x41ddfd
cdq
push 0
push edx
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
mov ecx, edi
call eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test ebp, ebp
mov dword [esi + 0x28], eax
jle 0x41debd
mov edi, edi
cmp dword [esi + 0x34], 0
je 0x41dfbc
mov edx, dword [esi + 0x38]
push 0
push 0x2800
lea ecx, [esp + 0x164]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
test ebp, ebp
jg 0x41de63
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x41de54
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x41de5b
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0
test ebp, ebp
je 0x41dfbc
cmp ebp, 0xffffffff
je 0x41dfbc
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
push ebp
lea ecx, [esp + 0x160]
push ecx
mov ecx, edi
call edx
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x34]
add eax, ebp
add ebx, ebp
test ecx, ecx
mov dword [esi + 0x24], eax
je 0x41deb3
mov ecx, dword [ecx + 0x20]
add eax, 0xfffffc18
cdq
and edx, 0x3ff
add eax, edx
push 0
sar eax, 0xa
push eax
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp ebx, dword [esp + 0x20]
jl 0x41de10
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
push 0
push 0
push 0
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x4c]
mov ecx, edi
mov dword [esi + 0x24], 0
call eax
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
mov byte [esp + 0x296c], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41df0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x296c], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41df37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x296c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41df5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x296c], 0
mov eax, dword [esp + 0x2974]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41df8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x296c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41dfb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41e0a3
mov byte [esp + 0x296c], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41dff2
lea eax, [ebp - 0x10]
mov byte [esp + 0x296c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41dffe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x296c], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e026
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x296c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e04e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x296c], 0
mov eax, dword [esp + 0x2974]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e079
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x296c], 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e0a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x2964]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2948]
xor ecx, esp
call fcn.00449014
add esp, 0x295c
ret