Function at 0x41b810
Capabilities:
Check os version
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x49a6e9
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba700]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
call edx
test al, al
je 0x41b868
cmp dword [esi + 0x178], 0
jne 0x41b868
cmp dword [esi + 0x18], 0
jne 0x41b868
cmp dword [esi + 0x180], 0
je 0x41bd2e
lea eax, [esp + 0x44]
push eax
call fcn.0041c000
xor ebx, ebx
mov dword [esp + 0xb0], ebx
mov edx, dword [edi]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
mov ecx, edi
call edx
cmp dword [esi + 0x18], ebx
je 0x41b9c7
mov edi, dword [esi + 0xec]
mov eax, dword [edi + 0x2394]
cmp eax, ebx
je 0x41b8c1
mov ecx, dword [edi + 4]
push ebx
push eax
lea eax, [edi + 0x6c]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
mov dword [edi + 0x2394], ebx
cmp dword [esi + 0x168], ebx
je 0x41b9c7
mov ecx, dword [esi + 0x170]
mov edi, dword [esi + 0xec]
xor edx, edx
mov word [esp + 0x24], dx
mov dx, word [esi + 0x170]
sar ecx, 8
xor eax, eax
and ecx, 0xff
mov word [esp + 0x26], ax
mov eax, dword [esi + 0x174]
shl dx, 8
or cx, dx
mov word [esp + 0x28], cx
mov cx, word [esi + 0x174]
sar eax, 8
and eax, 0xff
shl cx, 8
or ax, cx
mov edx, 0x100
mov word [esp + 0x2a], ax
mov dword [esp + 0x2c], 0x21ffffff
mov word [esp + 0x22], dx
mov byte [esp + 0x20], bl
cmp byte [edi + 0x10], bl
je 0x41b959
mov eax, dword [edi + 8]
cmp byte [eax + 0x21], bl
je 0x41b959
mov ecx, 1
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], bl
call fcn.00453a00
mov ecx, 4
lea eax, [esp + 0x20]
call fcn.00453a00
mov edi, dword [esi + 0xec]
mov ecx, 0xc
lea eax, [esp + 0x24]
call fcn.00453a00
mov eax, dword [esi + 0xc8]
lea edi, [esp + 0x98]
mov dword [esi + 0x18], ebx
call fcn.00411ab0
mov ecx, dword [eax]
mov dword [esi + 0x47c], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x480], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x484], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0xc8]
mov dword [esi + 0x488], edx
mov eax, dword [eax + 0x18]
mov dword [esi + 0x48c], eax
jmp 0x41bfca
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x68]
mov eax, dword [esi + 0xbc]
sar ecx, 4
mov dword [esp + 0x1c], ecx
cmp eax, ebx
je 0x41b9f9
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x50]
sar eax, 4
cmp eax, 5
jbe 0x41b9f3
inc ecx
jmp 0x41b9f5
add ecx, eax
mov dword [esp + 0x1c], ecx
cmp ecx, 0xffff
je 0x41baf3
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
cmp edi, eax
jbe 0x41ba23
call fcn.0047d091
mov eax, dword [esp + 0x8c]
mov ebp, dword [esp + 0x7c]
jmp 0x41ba30
mov ebx, eax
cmp dword [esp + 0x88], eax
jbe 0x41ba40
call fcn.0047d091
test ebp, ebp
je 0x41ba4a
cmp ebp, dword [esp + 0x7c]
je 0x41ba4f
call fcn.0047d091
cmp edi, ebx
je 0x41baf3
test ebp, ebp
jne 0x41ba8b
call fcn.0047d091
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41ba6c
call fcn.0047d091
cmp byte [esi + 0x8c], 0
jne 0x41ba90
cmp byte [esi + 0x84], 0
jne 0x41ba90
mov ecx, dword [esi + 0x6c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push edi
call eax
jmp 0x41baba
mov eax, dword [ebp]
jmp 0x41ba62
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x24]
push eax
call edx
test eax, eax
je 0x41baeb
add dword [esp + 0x1c], eax
test ebp, ebp
jne 0x41bae6
call fcn.0047d091
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41bad7
call fcn.0047d091
mov eax, dword [esp + 0x8c]
add edi, 0x10
jmp 0x41ba30
mov eax, dword [ebp]
jmp 0x41bacd
mov dword [esp + 0x1c], 0xffff
cmp dword [esi + 0xbc], 0
jne 0x41bbda
cmp dword [esp + 0x1c], 0xffff
je 0x41bbda
mov edi, dword [esp + 0x50]
cmp edi, dword [esp + 0x54]
jbe 0x41bb1d
call fcn.0047d091
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x54]
cmp dword [esp + 0x50], ebx
jbe 0x41bb30
call fcn.0047d091
test ebp, ebp
je 0x41bb3a
cmp ebp, dword [esp + 0x44]
je 0x41bb3f
call fcn.0047d091
cmp edi, ebx
je 0x41bbda
test ebp, ebp
jne 0x41bb79
call fcn.0047d091
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41bb5c
call fcn.0047d091
cmp byte [esi + 0x8c], 0
jne 0x41bb7e
cmp byte [esi + 0x84], 0
jne 0x41bb7e
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push edi
jmp 0x41bba6
mov eax, dword [ebp]
jmp 0x41bb52
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x24]
push eax
call edx
test eax, eax
je 0x41bbd2
add dword [esp + 0x1c], eax
test ebp, ebp
jne 0x41bbcd
call fcn.0047d091
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41bbc5
call fcn.0047d091
add edi, 0x10
jmp 0x41bb21
mov eax, dword [ebp]
jmp 0x41bbbb
mov dword [esp + 0x1c], 0xffff
mov eax, dword [esi + 0x6c]
cmp dword [eax + 0x68], 0
jne 0x41bbf3
cmp dword [eax + 0x6c], 0
jne 0x41bbf3
mov dword [esi + 0x178], 0
mov eax, dword [esp + 0x1c]
cmp eax, 0xffff
je 0x41bc22
cmp dword [esi + 0x178], 0
je 0x41bc0c
inc eax
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x180], 0
je 0x41bc1a
inc eax
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41bf7b
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
mov ebp, eax
push ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar ecx, 8
mov byte [esp + 0xb0], 1
mov edi, dword [esi + 0xec]
and ecx, 0xff
shl eax, 8
or ecx, eax
mov word [esp + 0x36], cx
mov byte [esp + 0x34], 0
cmp byte [edi + 0x10], 0
je 0x41bc86
mov edx, dword [edi + 8]
cmp byte [edx + 0x21], 0
je 0x41bc86
mov ecx, 1
lea eax, [esp + 0x1b]
mov byte [esp + 0x1b], 0
call fcn.00453a00
mov ecx, 4
lea eax, [esp + 0x34]
call fcn.00453a00
xor ebx, ebx
cmp dword [esi + 0x178], ebx
je 0x41bd3f
mov eax, dword [esi + 0xec]
mov dword [esi + 0x178], ebx
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx + 0x54]
push edx
push eax
mov eax, dword [esi + 0x6c]
push eax
call fcn.0042ab60
test eax, eax
jne 0x41bd35
mov eax, dword [esi + 0x6c]
mov edi, dword [esi + 0xec]
xor ecx, ecx
mov dword [esi + 0x17c], ebx
mov eax, dword [eax + 0x68]
xor edx, edx
neg eax
sbb eax, eax
and eax, 0xff000000
add eax, 0x11ffffff
mov word [esp + 0x24], cx
mov word [esp + 0x28], cx
mov dword [esp + 0x2c], eax
lea ecx, [ebx + 0xc]
lea eax, [esp + 0x24]
mov word [esp + 0x26], dx
mov word [esp + 0x2a], dx
call fcn.00453a80
cmp eax, ebx
jne 0x41bd3f
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0xb4], 0xffffffff
call fcn.0041c070
xor eax, eax
jmp 0x41bfe4
mov dword [esi + 0x17c], 1
cmp dword [esi + 0x180], ebx
je 0x41bd75
mov edx, esi
call fcn.0041c7b0
test eax, eax
jne 0x41bd75
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0xb4], 0xffffffff
call fcn.0041c070
xor eax, eax
jmp 0x41bfe4
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, eax
sub edx, ecx
test edx, 0xfffffff0
je 0x41beb3
mov edx, dword [esp + 0x78]
neg edx
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x74]
neg edx
mov dword [esp + 0x24], edx
mov edi, ecx
cmp ecx, eax
jbe 0x41bdb7
call fcn.0047d091
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x5c]
jmp 0x41bdc0
mov ebp, eax
cmp ecx, eax
jbe 0x41bdcb
call fcn.0047d091
test ebx, ebx
je 0x41bdd5
cmp ebx, dword [esp + 0x5c]
je 0x41bdda
call fcn.0047d091
cmp edi, ebp
je 0x41beb3
test ebx, ebx
jne 0x41be59
call fcn.0047d091
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41bdf7
call fcn.0047d091
mov eax, dword [edi + 4]
mov ecx, dword [edi]
add eax, dword [esp + 0x94]
add ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
test ebx, ebx
jne 0x41be5d
call fcn.0047d091
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41be24
call fcn.0047d091
lea edx, [esp + 0x38]
push edx
mov eax, edi
call fcn.0041c340
test eax, eax
je 0x41be65
test ebx, ebx
jne 0x41be61
call fcn.0047d091
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41be49
call fcn.0047d091
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
add edi, 0x10
jmp 0x41bdc0
mov eax, dword [ebx]
jmp 0x41bded
mov eax, dword [ebx]
jmp 0x41be1a
mov eax, dword [ebx]
jmp 0x41be3f
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0xb4], 5
call fcn.00422dd0
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0xb4], 4
call fcn.00422dd0
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0xb4], 0xffffffff
call fcn.00422dd0
xor eax, eax
jmp 0x41bfe4
cmp dword [esi + 0xbc], 0
lea edx, [esp + 0x44]
push edx
je 0x41befa
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x54]
sar ecx, 4
cmp ecx, 5
jbe 0x41bee6
mov ebx, esi
call fcn.0041c840
test eax, eax
jne 0x41bf0e
mov eax, dword [esp + 0x20]
push eax
jmp 0x41bd13
push esi
call fcn.0041c5f0
test eax, eax
jne 0x41bf0e
mov eax, dword [esp + 0x20]
push eax
jmp 0x41bd13
push esi
call fcn.0041c0e0
test eax, eax
jne 0x41bf0e
mov eax, dword [esp + 0x20]
push eax
jmp 0x41bd13
lea edx, [esp + 0x7c]
push edx
push esi
call fcn.0041c0e0
test eax, eax
je 0x41bedc
cmp dword [esp + 0x1c], 0xffff
jne 0x41bf94
mov eax, dword [esi + 0xec]
mov ecx, dword [esi + 0x6c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x28]
call eax
mov edi, dword [esi + 0xec]
xor ecx, ecx
xor eax, eax
xor edx, edx
mov word [esp + 0x38], cx
mov word [esp + 0x3c], ax
mov word [esp + 0x3e], cx
lea ecx, [edx + 0xc]
lea eax, [esp + 0x38]
mov word [esp + 0x3a], dx
mov dword [esp + 0x40], 0x20ffffff
call fcn.00453a80
test eax, eax
jne 0x41bf94
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0xb4], 0xffffffff
call fcn.0041c070
xor eax, eax
jmp 0x41bfe4
mov esi, dword [esi + 0xec]
mov eax, dword [esi + 0x2394]
test eax, eax
je 0x41bfbf
mov edx, dword [esi + 4]
push 0
push eax
lea ecx, [esi + 0x6c]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov dword [esi + 0x2394], 0
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0xb4], 0xffffffff
call fcn.0041c070
mov eax, 1
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret