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

Disassembly:
push 0xffffffffffffffff
push 0x472db9
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48a348]
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 0x417a1d
cmp dword [ebp + 0x15c], 0
jne 0x417a1d
cmp dword [ebp + 0x18], 0
jne 0x417a1d
cmp dword [ebp + 0x164], 0
je 0x417f50
lea eax, [esp + 0x44]
push eax
call fcn.00418220
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 0x417b16
cmp dword [ebp + 0x14c], ebx
je 0x417b16
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, pe_nt_image_headers32
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 0x417ae7
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x21], bl
je 0x417ae7
lea ecx, [ebx + 1]
lea eax, [esp + 0x17]
mov byte [esp + 0x17], bl
call fcn.0044b4f0
mov ecx, 4
lea eax, [esp + 0x20]
call fcn.0044b4f0
mov edi, dword [ebp + 0xec]
mov ecx, 0xc
lea eax, [esp + 0x30]
call fcn.0044b4f0
lea edx, [esp + 0x44]
mov dword [ebp + 0x18], ebx
push edx
jmp 0x4181ee
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 0x417b48
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x50]
sar eax, 4
cmp eax, 5
jbe 0x417b42
inc ecx
jmp 0x417b44
add ecx, eax
mov dword [esp + 0x18], ecx
cmp ecx, 0xffff
je 0x417c3f
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
cmp esi, eax
jbe 0x417b72
call fcn.0045e4f1
mov eax, dword [esp + 0x8c]
mov ebx, dword [esp + 0x7c]
jmp 0x417b80
mov edi, eax
cmp dword [esp + 0x88], eax
jbe 0x417b90
call fcn.0045e4f1
test ebx, ebx
je 0x417b9a
cmp ebx, dword [esp + 0x7c]
je 0x417b9f
call fcn.0045e4f1
cmp esi, edi
je 0x417c3f
test ebx, ebx
jne 0x417bd9
call fcn.0045e4f1
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x417bbc
call fcn.0045e4f1
cmp byte [ebp + 0x8c], 0
jne 0x417bdd
cmp byte [ebp + 0x84], 0
jne 0x417bdd
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push esi
jmp 0x417c05
mov eax, dword [ebx]
jmp 0x417bb2
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 0x417c37
add dword [esp + 0x18], eax
test ebx, ebx
jne 0x417c33
call fcn.0045e4f1
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x417c24
call fcn.0045e4f1
mov eax, dword [esp + 0x8c]
add esi, 0x10
jmp 0x417b80
mov eax, dword [ebx]
jmp 0x417c1a
mov dword [esp + 0x18], 0xffff
cmp dword [ebp + 0xbc], 0
jne 0x417d27
cmp dword [esp + 0x18], 0xffff
je 0x417d27
mov esi, dword [esp + 0x50]
cmp esi, dword [esp + 0x54]
jbe 0x417c69
call fcn.0045e4f1
mov ebx, dword [esp + 0x44]
lea ecx, [ecx]
mov edi, dword [esp + 0x54]
cmp dword [esp + 0x50], edi
jbe 0x417c7f
call fcn.0045e4f1
test ebx, ebx
je 0x417c89
cmp ebx, dword [esp + 0x44]
je 0x417c8e
call fcn.0045e4f1
cmp esi, edi
je 0x417d27
test ebx, ebx
jne 0x417cc8
call fcn.0045e4f1
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x417cab
call fcn.0045e4f1
cmp byte [ebp + 0x8c], 0
jne 0x417ccc
cmp byte [ebp + 0x84], 0
jne 0x417ccc
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push esi
jmp 0x417cf4
mov eax, dword [ebx]
jmp 0x417ca1
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 0x417d1f
add dword [esp + 0x18], eax
test ebx, ebx
jne 0x417d1b
call fcn.0045e4f1
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x417d13
call fcn.0045e4f1
add esi, 0x10
jmp 0x417c70
mov eax, dword [ebx]
jmp 0x417d09
mov dword [esp + 0x18], 0xffff
mov eax, dword [ebp + 0x6c]
cmp dword [eax + 0x68], 0
jne 0x417d40
cmp dword [eax + 0x6c], 0
jne 0x417d40
mov dword [ebp + 0x15c], 0
mov eax, dword [esp + 0x18]
cmp eax, 0xffff
je 0x417d6f
cmp dword [ebp + 0x15c], 0
je 0x417d59
inc eax
mov dword [esp + 0x18], eax
cmp dword [ebp + 0x164], 0
je 0x417d67
inc eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x41819a
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 0x417e63
mov esi, dword [edi + 8]
cmp byte [esi + 0x21], 0
je 0x417e63
xor al, al
mov byte [esp + 0x17], al
mov ecx, 1
cmp byte [esi + 0x21], al
je 0x417e0a
cmp byte [edi + 0x5c], al
je 0x417dec
mov edx, dword [edi + 0x58]
add edx, dword [edi + 0x60]
mov byte [edx], al
add dword [edi + 0x60], ecx
jmp 0x417e16
lea eax, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x1f]
push ecx
mov dword [esp + 0x30], 0
call fcn.00402ad0
mov ecx, dword [esp + 0x24]
jmp 0x417e0e
lea eax, [esp + 0x17]
push ecx
mov esi, edi
call fcn.0044b2f0
cmp byte [edi + 0xc], 0
mov ecx, 4
je 0x417eaa
mov esi, dword [edi + 8]
cmp byte [esi + 0x21], 0
je 0x417eaa
cmp byte [edi + 0x5c], 0
je 0x417e45
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 0x417eb6
lea edx, [esp + 0x30]
push edx
push ecx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x3c], 0
call fcn.00402ad0
mov ecx, dword [esp + 0x30]
jmp 0x417eae
mov ecx, 4
test al, al
je 0x417eaa
mov esi, dword [edi + 8]
cmp byte [esi + 0x21], 0
je 0x417eaa
cmp byte [edi + 0x5c], 0
je 0x417e8c
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 0x417eb6
lea edx, [esp + 0x40]
push edx
push ecx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x4c], 0
call fcn.00402ad0
mov ecx, dword [esp + 0x40]
jmp 0x417eae
lea eax, [esp + 0x1c]
push ecx
mov esi, edi
call fcn.0044b2f0
xor esi, esi
cmp dword [ebp + 0x15c], esi
je 0x417f61
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.00424e30
test eax, eax
jne 0x417f57
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.0044b560
cmp eax, esi
jne 0x417f61
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0xa8], 0xffffffff
call fcn.00418290
xor eax, eax
jmp 0x418203
mov dword [ebp + 0x160], 1
cmp dword [ebp + 0x164], esi
je 0x417f97
mov edx, ebp
call fcn.004189d0
test eax, eax
jne 0x417f97
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0xa8], 0xffffffff
call fcn.00418290
xor eax, eax
jmp 0x418203
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, eax
sub edx, ecx
test edx, 0xfffffff0
je 0x4180d2
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 0x417fd6
call fcn.0045e4f1
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 0x417feb
call fcn.0045e4f1
test ebx, ebx
je 0x417ff5
cmp ebx, dword [esp + 0x5c]
je 0x417ffa
call fcn.0045e4f1
cmp edi, esi
je 0x4180d2
test ebx, ebx
jne 0x418078
call fcn.0045e4f1
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x418017
call fcn.0045e4f1
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 0x41807c
call fcn.0045e4f1
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x418041
call fcn.0045e4f1
lea edx, [esp + 0x30]
push edx
mov eax, edi
mov esi, ebp
call fcn.00418560
test eax, eax
je 0x418084
test ebx, ebx
jne 0x418080
call fcn.0045e4f1
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x418068
call fcn.0045e4f1
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
add edi, 0x10
jmp 0x417fe0
mov eax, dword [ebx]
jmp 0x41800d
mov eax, dword [ebx]
jmp 0x418037
mov eax, dword [ebx]
jmp 0x41805e
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.004103f0
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0xa8], 4
call fcn.004103f0
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0xa8], 0xffffffff
call fcn.004103f0
xor eax, eax
jmp 0x418203
cmp dword [ebp + 0xbc], 0
lea edx, [esp + 0x44]
push edx
je 0x418119
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x54]
sar ecx, 4
cmp ecx, 5
jbe 0x418105
mov ebx, ebp
call fcn.00418a60
test eax, eax
jne 0x41812d
mov eax, dword [esp + 0x20]
push eax
jmp 0x417f35
push ebp
call fcn.00418810
test eax, eax
jne 0x41812d
mov eax, dword [esp + 0x20]
push eax
jmp 0x417f35
push ebp
call fcn.00418300
test eax, eax
jne 0x41812d
mov eax, dword [esp + 0x20]
push eax
jmp 0x417f35
lea edx, [esp + 0x7c]
push edx
push ebp
call fcn.00418300
test eax, eax
je 0x4180fb
cmp dword [esp + 0x18], 0xffff
jne 0x4181b3
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.0044b560
test eax, eax
jne 0x4181b3
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.00418290
xor eax, eax
jmp 0x418203
mov esi, dword [ebp + 0xec]
mov eax, dword [esi + 0x2390]
test eax, eax
je 0x4181de
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.00418290
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