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

Disassembly:
push 0xffffffffffffffff
push 0x471699
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov eax, dword [0x489348]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0xac]
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
call edx
test al, al
je 0x41723d
cmp dword [ebp + 0x15c], 0
jne 0x41723d
cmp dword [ebp + 0x18], 0
jne 0x41723d
cmp dword [ebp + 0x164], 0
je 0x417770
lea eax, [esp + 0x44]
push eax
call fcn.00417a40
xor ebx, ebx
mov dword [esp + 0xa4], ebx
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
cmp dword [ebp + 0x18], ebx
je 0x417336
cmp dword [ebp + 0x14c], ebx
je 0x417336
mov edx, dword [ebp + 0x154]
mov edi, dword [ebp + 0xec]
xor eax, eax
mov word [esp + 0x30], ax
mov ax, word [ebp + 0x154]
sar edx, 8
xor ecx, ecx
and edx, 0xff
mov word [esp + 0x32], cx
mov ecx, dword [ebp + 0x158]
shl ax, 8
or dx, ax
mov word [esp + 0x34], dx
mov dx, word [ebp + 0x158]
sar ecx, 8
and ecx, 0xff
shl dx, 8
or cx, dx
mov eax, 0x100
mov word [esp + 0x36], cx
mov dword [esp + 0x38], 0x21ffffff
mov word [esp + 0x22], ax
mov byte [esp + 0x20], bl
cmp byte [edi + 0xc], bl
je 0x417307
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x21], bl
je 0x417307
lea ecx, [ebx + 1]
lea eax, [esp + 0x17]
mov byte [esp + 0x17], bl
call fcn.0044a300
mov ecx, 4
lea eax, [esp + 0x20]
call fcn.0044a300
mov edi, dword [ebp + 0xec]
mov ecx, 0xc
lea eax, [esp + 0x30]
call fcn.0044a300
lea edx, [esp + 0x44]
mov dword [ebp + 0x18], ebx
push edx
jmp 0x417a0e
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x68]
mov eax, dword [ebp + 0xbc]
sar ecx, 4
mov dword [esp + 0x18], ecx
cmp eax, ebx
je 0x417368
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x50]
sar eax, 4
cmp eax, 5
jbe 0x417362
inc ecx
jmp 0x417364
add ecx, eax
mov dword [esp + 0x18], ecx
cmp ecx, 0xffff
je 0x41745f
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
cmp esi, eax
jbe 0x417392
call fcn.0045d131
mov eax, dword [esp + 0x8c]
mov ebx, dword [esp + 0x7c]
jmp 0x4173a0
mov edi, eax
cmp dword [esp + 0x88], eax
jbe 0x4173b0
call fcn.0045d131
test ebx, ebx
je 0x4173ba
cmp ebx, dword [esp + 0x7c]
je 0x4173bf
call fcn.0045d131
cmp esi, edi
je 0x41745f
test ebx, ebx
jne 0x4173f9
call fcn.0045d131
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4173dc
call fcn.0045d131
cmp byte [ebp + 0x8c], 0
jne 0x4173fd
cmp byte [ebp + 0x84], 0
jne 0x4173fd
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push esi
jmp 0x417425
mov eax, dword [ebx]
jmp 0x4173d2
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x6c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x30]
push eax
call edx
test eax, eax
je 0x417457
add dword [esp + 0x18], eax
test ebx, ebx
jne 0x417453
call fcn.0045d131
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x417444
call fcn.0045d131
mov eax, dword [esp + 0x8c]
add esi, 0x10
jmp 0x4173a0
mov eax, dword [ebx]
jmp 0x41743a
mov dword [esp + 0x18], 0xffff
cmp dword [ebp + 0xbc], 0
jne 0x417547
cmp dword [esp + 0x18], 0xffff
je 0x417547
mov esi, dword [esp + 0x50]
cmp esi, dword [esp + 0x54]
jbe 0x417489
call fcn.0045d131
mov ebx, dword [esp + 0x44]
lea ecx, [ecx]
mov edi, dword [esp + 0x54]
cmp dword [esp + 0x50], edi
jbe 0x41749f
call fcn.0045d131
test ebx, ebx
je 0x4174a9
cmp ebx, dword [esp + 0x44]
je 0x4174ae
call fcn.0045d131
cmp esi, edi
je 0x417547
test ebx, ebx
jne 0x4174e8
call fcn.0045d131
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4174cb
call fcn.0045d131
cmp byte [ebp + 0x8c], 0
jne 0x4174ec
cmp byte [ebp + 0x84], 0
jne 0x4174ec
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push esi
jmp 0x417514
mov eax, dword [ebx]
jmp 0x4174c1
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x6c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x30]
push eax
call edx
test eax, eax
je 0x41753f
add dword [esp + 0x18], eax
test ebx, ebx
jne 0x41753b
call fcn.0045d131
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x417533
call fcn.0045d131
add esi, 0x10
jmp 0x417490
mov eax, dword [ebx]
jmp 0x417529
mov dword [esp + 0x18], 0xffff
mov eax, dword [ebp + 0x6c]
cmp dword [eax + 0x68], 0
jne 0x417560
cmp dword [eax + 0x6c], 0
jne 0x417560
mov dword [ebp + 0x15c], 0
mov eax, dword [esp + 0x18]
cmp eax, 0xffff
je 0x41758f
cmp dword [ebp + 0x15c], 0
je 0x417579
inc eax
mov dword [esp + 0x18], eax
cmp dword [ebp + 0x164], 0
je 0x417587
inc eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x4179ba
mov edx, dword [ebp]
mov eax, dword [edx + 0x24]
mov ecx, ebp
call eax
mov ebx, eax
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x18]
mov ecx, eax
sar ecx, 8
shl eax, 8
mov byte [esp + 0xa4], 1
mov edi, dword [ebp + 0xec]
and ecx, 0xff
or ecx, eax
mov word [esp + 0x1e], cx
mov byte [esp + 0x1c], 0
mov al, byte [edi + 0xc]
test al, al
je 0x417683
mov esi, dword [edi + 8]
cmp byte [esi + 0x21], 0
je 0x417683
xor al, al
mov byte [esp + 0x17], al
mov ecx, 1
cmp byte [esi + 0x21], al
je 0x41762a
cmp byte [edi + 0x5c], al
je 0x41760c
mov edx, dword [edi + 0x58]
add edx, dword [edi + 0x60]
mov byte [edx], al
add dword [edi + 0x60], ecx
jmp 0x417636
lea eax, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x1f]
push ecx
mov dword [esp + 0x30], 0
call fcn.00402a30
mov ecx, dword [esp + 0x24]
jmp 0x41762e
lea eax, [esp + 0x17]
push ecx
mov esi, edi
call fcn.0044a100
cmp byte [edi + 0xc], 0
mov ecx, 4
je 0x4176ca
mov esi, dword [edi + 8]
cmp byte [esi + 0x21], 0
je 0x4176ca
cmp byte [edi + 0x5c], 0
je 0x417665
mov edx, dword [edi + 0x58]
add edx, dword [edi + 0x60]
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
add dword [edi + 0x60], ecx
jmp 0x4176d6
lea edx, [esp + 0x30]
push edx
push ecx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x3c], 0
call fcn.00402a30
mov ecx, dword [esp + 0x30]
jmp 0x4176ce
mov ecx, 4
test al, al
je 0x4176ca
mov esi, dword [edi + 8]
cmp byte [esi + 0x21], 0
je 0x4176ca
cmp byte [edi + 0x5c], 0
je 0x4176ac
mov edx, dword [edi + 0x58]
add edx, dword [edi + 0x60]
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
add dword [edi + 0x60], ecx
jmp 0x4176d6
lea edx, [esp + 0x40]
push edx
push ecx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x4c], 0
call fcn.00402a30
mov ecx, dword [esp + 0x40]
jmp 0x4176ce
lea eax, [esp + 0x1c]
push ecx
mov esi, edi
call fcn.0044a100
xor esi, esi
cmp dword [ebp + 0x15c], esi
je 0x417781
mov eax, dword [ebp + 0xec]
mov dword [ebp + 0x15c], esi
mov ecx, dword [ebp + 0xc8]
mov edx, dword [ecx + 0x54]
push edx
push eax
mov eax, dword [ebp + 0x6c]
push eax
call fcn.00423f40
test eax, eax
jne 0x417777
mov eax, dword [ebp + 0x6c]
mov edi, dword [ebp + 0xec]
xor ecx, ecx
mov dword [ebp + 0x160], esi
mov eax, dword [eax + 0x68]
xor edx, edx
neg eax
sbb eax, eax
and eax, 0xff000000
add eax, 0x11ffffff
mov word [esp + 0x30], cx
mov word [esp + 0x34], cx
mov dword [esp + 0x38], eax
lea ecx, [esi + 0xc]
lea eax, [esp + 0x30]
mov word [esp + 0x32], dx
mov word [esp + 0x36], dx
call fcn.0044a370
cmp eax, esi
jne 0x417781
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0xa8], 0xffffffff
call fcn.00417ab0
xor eax, eax
jmp 0x417a23
mov dword [ebp + 0x160], 1
cmp dword [ebp + 0x164], esi
je 0x4177b7
mov edx, ebp
call fcn.004181f0
test eax, eax
jne 0x4177b7
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0xa8], 0xffffffff
call fcn.00417ab0
xor eax, eax
jmp 0x417a23
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, eax
sub edx, ecx
test edx, 0xfffffff0
je 0x4178f2
mov edx, dword [esp + 0x78]
neg edx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x74]
neg edx
mov dword [esp + 0x24], edx
mov edi, ecx
cmp ecx, eax
jbe 0x4177f6
call fcn.0045d131
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x5c]
lea ebx, [ebx]
mov esi, eax
cmp ecx, eax
jbe 0x41780b
call fcn.0045d131
test ebx, ebx
je 0x417815
cmp ebx, dword [esp + 0x5c]
je 0x41781a
call fcn.0045d131
cmp edi, esi
je 0x4178f2
test ebx, ebx
jne 0x417898
call fcn.0045d131
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x417837
call fcn.0045d131
mov eax, dword [edi + 4]
mov ecx, dword [edi]
add eax, dword [esp + 0x40]
add ecx, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
test ebx, ebx
jne 0x41789c
call fcn.0045d131
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x417861
call fcn.0045d131
lea edx, [esp + 0x30]
push edx
mov eax, edi
mov esi, ebp
call fcn.00417d80
test eax, eax
je 0x4178a4
test ebx, ebx
jne 0x4178a0
call fcn.0045d131
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x417888
call fcn.0045d131
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
add edi, 0x10
jmp 0x417800
mov eax, dword [ebx]
jmp 0x41782d
mov eax, dword [ebx]
jmp 0x417857
mov eax, dword [ebx]
jmp 0x41787e
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0xa8], 5
call fcn.00410090
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0xa8], 4
call fcn.00410090
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0xa8], 0xffffffff
call fcn.00410090
xor eax, eax
jmp 0x417a23
cmp dword [ebp + 0xbc], 0
lea edx, [esp + 0x44]
push edx
je 0x417939
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x54]
sar ecx, 4
cmp ecx, 5
jbe 0x417925
mov ebx, ebp
call fcn.00418280
test eax, eax
jne 0x41794d
mov eax, dword [esp + 0x20]
push eax
jmp 0x417755
push ebp
call fcn.00418030
test eax, eax
jne 0x41794d
mov eax, dword [esp + 0x20]
push eax
jmp 0x417755
push ebp
call fcn.00417b20
test eax, eax
jne 0x41794d
mov eax, dword [esp + 0x20]
push eax
jmp 0x417755
lea edx, [esp + 0x7c]
push edx
push ebp
call fcn.00417b20
test eax, eax
je 0x41791b
cmp dword [esp + 0x18], 0xffff
jne 0x4179d3
mov eax, dword [ebp + 0xec]
mov ecx, dword [ebp + 0x6c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x28]
call eax
mov edi, dword [ebp + 0xec]
xor ecx, ecx
xor eax, eax
xor edx, edx
mov word [esp + 0x24], cx
mov word [esp + 0x28], ax
mov word [esp + 0x2a], cx
lea ecx, [edx + 0xc]
lea eax, [esp + 0x24]
mov word [esp + 0x26], dx
mov dword [esp + 0x2c], 0x20ffffff
call fcn.0044a370
test eax, eax
jne 0x4179d3
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0xa8], 0xffffffff
call fcn.00417ab0
xor eax, eax
jmp 0x417a23
mov esi, dword [ebp + 0xec]
mov eax, dword [esi + 0x2390]
test eax, eax
je 0x4179fe
mov edx, dword [esi + 4]
push 0
push eax
lea ecx, [esi + 0x68]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov dword [esi + 0x2390], 0
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0xa8], 0xffffffff
call fcn.00417ab0
mov eax, 1
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 4