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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46acfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
add esp, 0xfffffad0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp dword [ebx + 0xc], 0x2710
jne 0x40d1d2
lea eax, [ebp - 0x1d8]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0xc4], ecx
mov ecx, dword [ebp - 0xc4]
call fcn.0041d6d0
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
mov dword [ebp - 0x34], 0x477804
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0x34]
mov cl, byte [eax]
mov byte [ebp - 0x2e], cl
add dword [ebp - 0x34], 1
cmp byte [ebp - 0x2e], 0
jne 0x40c870
mov edx, dword [ebp - 0x34]
sub edx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0xcc]
push eax
push 0x477804
mov ecx, dword [ebp - 0x60]
call fcn.00419b30
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x34c], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x80]
lea edx, [ebp - 0x1d8]
push edx
call fcn.00412ca0
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x348], eax
mov byte [ebp - 4], 5
mov ecx, dword [0x489514]
mov dword [ebp - 0x304], ecx
mov byte [ebp - 4], 7
mov dword [ebp - 0x24], 0
jmp 0x40c8fd
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0xd4]
jae 0x40cb15
mov eax, dword [0x487b08]
cdq
mov esi, eax
mov edi, edx
add esi, 2
adc edi, 0
mov eax, dword [0x487af0]
cdq
push 0
push 0x1286
push edx
push eax
call fcn.00443dd0
mov ecx, eax
mov eax, edx
add ecx, 0x79
adc eax, 0
mov dword [ebp - 0xd8], eax
mov eax, dword [0x487af0]
cdq
add eax, 2
adc edx, 0
push edx
push eax
mov eax, dword [ebp - 0xd8]
push eax
push ecx
call fcn.00443dd0
add esi, eax
adc edi, edx
add esi, 0x1286
adc edi, 0
push edi
push esi
call fcn.00403600
add esp, 8
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1dc], edx
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x80]
call fcn.00412760
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov cl, byte [eax]
mov byte [ebp - 0x25], cl
movsx eax, byte [ebp - 0x25]
cdq
xor eax, dword [ebp - 0x1e0]
mov edx, dword [ebp - 0x84]
mov byte [edx], al
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x80]
call fcn.00412760
movsx ecx, byte [eax]
test ecx, ecx
jne 0x40c9de
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x80]
call fcn.00412760
mov byte [eax], 0x55
jmp 0x40cb10
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x80]
call fcn.00412760
movsx ecx, byte [eax]
cmp ecx, 0x55
jne 0x40ca06
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x80]
call fcn.00412760
mov byte [eax], 0xff
jmp 0x40cb10
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x80]
call fcn.00412760
movsx ecx, byte [eax]
cmp ecx, 0xffffffff
jne 0x40ca2e
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x80]
call fcn.00412760
mov byte [eax], 0xfd
jmp 0x40cb10
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x80]
call fcn.00412760
movsx ecx, byte [eax]
cmp ecx, 0xfffffffd
jne 0x40ca56
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x80]
call fcn.00412760
mov byte [eax], 0xde
jmp 0x40cb10
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x80]
call fcn.00412760
movsx ecx, byte [eax]
cmp ecx, 0xffffffde
jne 0x40ca7e
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x80]
call fcn.00412760
mov byte [eax], 5
jmp 0x40cb10
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x80]
call fcn.00412760
movsx ecx, byte [eax]
cmp ecx, 5
jne 0x40caa3
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x80]
call fcn.00412760
mov byte [eax], 1
jmp 0x40cb10
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x80]
call fcn.00412760
movsx ecx, byte [eax]
cmp ecx, 1
jne 0x40cac8
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x80]
call fcn.00412760
mov byte [eax], 0xa
jmp 0x40cb10
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x80]
call fcn.00412760
movsx ecx, byte [eax]
cmp ecx, 0xa
jne 0x40caed
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x80]
call fcn.00412760
mov byte [eax], 0x80
jmp 0x40cb10
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x80]
call fcn.00412760
movsx ecx, byte [eax]
cmp ecx, 0xffffff80
jne 0x40cb10
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x80]
call fcn.00412760
mov byte [eax], 0
jmp 0x40c8f4
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x364]
call fcn.004129f0
mov dword [ebp - 0x308], eax
mov ecx, dword [ebp - 0x3c]
or ecx, 1
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x80]
call fcn.00415fd0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x80]
mov dword [ebp - 0x30c], edx
mov byte [ebp - 4], 9
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 6
lea eax, [ebp - 0x364]
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], ecx
mov edx, dword [ebp - 0xe0]
push edx
lea ecx, [ebp - 0x1d8]
call fcn.004129a0
and dword [ebp - 0x3c], 0xfffffffe
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x364]
call fcn.00415fd0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x364]
mov dword [ebp - 0x310], eax
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xe4], ecx
mov ecx, dword [ebp - 0xe4]
call fcn.0041d6d0
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xc0]
call fcn.00416500
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x1c8]
mov dword [ebp - 0xe8], edx
xor eax, eax
mov dword [ebp - 0x148], 0xb364cc
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x144]
xor ecx, 2
xor edx, 0
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x15c], edx
xor eax, eax
mov dword [ebp - 0x150], 2
mov dword [ebp - 0x14c], eax
mov ecx, dword [0x487b10]
xor ecx, 0x1286
mov edx, dword [0x487b14]
xor edx, 0
push 0
push 9
push edx
push ecx
call fcn.00443dd0
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], edx
push 0
push 0x1286
mov eax, dword [0x487b04]
push eax
mov ecx, dword [0x487b00]
push ecx
call fcn.00443dd0
push 0
push 2
push edx
push eax
call fcn.00443ae0
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], edx
mov edx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x154]
add edx, dword [ebp - 0x158]
adc eax, ecx
add edx, 1
adc eax, 0
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x174], eax
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x164]
sub edx, dword [ebp - 0x168]
sbb eax, ecx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x16c], eax
mov edx, dword [ebp - 0x170]
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x178]
mov esi, dword [ebp - 0x174]
push esi
push ecx
push eax
push edx
call fcn.00443ae0
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], edx
mov edx, dword [ebp - 0x180]
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x314], eax
mov ecx, dword [ebp - 0xe8]
add ecx, edx
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x88]
ja 0x40cd4d
mov ecx, dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0xc0]
call fcn.004160a0
jmp 0x40cd64
push 0
mov edx, dword [ebp - 0x64]
sub edx, dword [ebp - 0x88]
push edx
lea ecx, [ebp - 0xc0]
call fcn.00416260
lea ecx, [ebp - 0xc0]
call fcn.00412710
mov dword [eax], 0xabbadaad
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0xf8], ecx
lea ecx, [ebp - 0xc0]
call fcn.00412710
mov esi, eax
mov eax, dword [0x487b08]
cdq
mov edi, eax
mov eax, edx
add edi, 2
adc eax, 0
mov dword [ebp - 0xf4], eax
mov eax, dword [0x487af0]
cdq
push 0
push 0x1286
push edx
push eax
call fcn.00443dd0
mov ecx, eax
mov eax, edx
add ecx, 4
adc eax, 0
mov dword [ebp - 0xf0], eax
mov eax, dword [0x487af0]
cdq
add eax, 2
adc edx, 0
push edx
push eax
mov eax, dword [ebp - 0xf0]
push eax
push ecx
call fcn.00443dd0
add edi, eax
mov eax, dword [ebp - 0xf4]
adc eax, edx
add edi, 0x1286
adc eax, 0
push eax
push edi
call fcn.00403600
add esp, 8
mov edx, dword [ebp - 0xf8]
mov dword [esi + eax], edx
lea ecx, [ebp - 0xc0]
call fcn.00412710
mov esi, eax
mov eax, dword [0x487b10]
xor eax, 0x1286
mov ecx, dword [0x487b14]
xor ecx, 0
push 0
push 8
push ecx
push eax
call fcn.00443dd0
push 0
push 9
push edx
push eax
call fcn.00443dd0
mov edi, eax
mov eax, edx
add edi, 0x10
adc eax, 0
push 0
push 0x1286
mov edx, dword [0x487b04]
push edx
mov ecx, dword [0x487b00]
push ecx
mov dword [ebp - 0xfc], eax
call fcn.00443dd0
push 0
push 2
push edx
push eax
call fcn.00443ae0
add edi, eax
mov eax, dword [ebp - 0xfc]
adc eax, edx
add edi, 8
adc eax, 0
xor edi, 2
xor eax, 0
push eax
push edi
call fcn.004036c0
add esp, 8
mov dword [esi + eax], 0x2711
mov edx, dword [ebp - 0x1c8]
mov dword [ebp - 0x100], edx
cmp dword [ebp - 0x100], 0
je 0x40d024
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0x104], eax
xor ecx, ecx
mov dword [ebp - 0x188], 0xb364cc
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x184]
xor edx, 2
xor eax, 0
mov dword [ebp - 0x1a0], edx
mov dword [ebp - 0x19c], eax
xor ecx, ecx
mov dword [ebp - 0x190], 2
mov dword [ebp - 0x18c], ecx
mov edx, dword [0x487b10]
xor edx, 0x1286
mov eax, dword [0x487b14]
xor eax, 0
push 0
push 9
push eax
push edx
call fcn.00443dd0
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], edx
push 0
push 0x1286
mov ecx, dword [0x487b04]
push ecx
mov edx, dword [0x487b00]
push edx
call fcn.00443dd0
push 0
push 2
push edx
push eax
call fcn.00443ae0
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], edx
mov eax, dword [ebp - 0x190]
mov ecx, dword [ebp - 0x18c]
mov edx, dword [ebp - 0x194]
add eax, dword [ebp - 0x198]
adc ecx, edx
add eax, 1
adc ecx, 0
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1b4], ecx
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 0x19c]
mov edx, dword [ebp - 0x1a4]
sub eax, dword [ebp - 0x1a8]
sbb ecx, edx
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1ac], ecx
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x1b8]
mov esi, dword [ebp - 0x1b4]
push esi
push edx
push ecx
push eax
call fcn.00443ae0
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x1bc], edx
mov eax, dword [ebp - 0x104]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.00412710
push eax
lea ecx, [ebp - 0xc0]
call fcn.00412710
mov ecx, dword [ebp - 0x1c0]
mov edx, dword [ebp - 0x1bc]
mov dword [ebp - 0x318], edx
add eax, ecx
push eax
call fcn.00444a80
add esp, 0xc
mov eax, dword [0x487b08]
cdq
mov esi, eax
mov edi, edx
add esi, 2
adc edi, 0
mov eax, dword [0x487af0]
cdq
push 0
push 0x1286
push edx
push eax
call fcn.00443dd0
mov ecx, eax
mov eax, edx
mov dword [ebp - 0x108], eax
mov eax, dword [0x487af0]
cdq
add eax, 2
adc edx, 0
push edx
push eax
mov eax, dword [ebp - 0x108]
push eax
push ecx
call fcn.00443dd0
add esi, eax
adc edi, edx
add esi, 0x1286
adc edi, 0
push edi
push esi
call fcn.00403600
add esp, 8
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x10c]
jae 0x40d16d
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0x110]
sub edx, dword [ebp - 0x38]
mov dword [ebp - 0x114], edx
lea ecx, [ebp - 0xc0]
call fcn.00412710
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x118], eax
push 0
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0xffffffff
jne 0x40d15c
mov dword [ebp - 0x31c], 0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xc0]
call fcn.00415fd0
mov byte [ebp - 4], 4
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x320], eax
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 4
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1d8]
call fcn.00415fd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x324], ecx
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 1
jmp 0x40d1cd
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x8c]
mov dword [ebp - 0x38], edx
jmp 0x40d087
mov dword [ebp - 0x328], 1
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0xc0]
call fcn.00415fd0
mov byte [ebp - 4], 4
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x32c], eax
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x19
mov byte [ebp - 4], 4
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x1d8]
call fcn.00415fd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x330], ecx
mov byte [ebp - 4], 0x1b
mov byte [ebp - 4], 0x1c
mov byte [ebp - 4], 1
jmp 0x40d330
cmp dword [ebx + 0xc], 0x2711
jne 0x40d1e0
jmp 0x40d330
cmp dword [ebx + 0xc], 0x2715
jne 0x40d203
lea edx, [ebx + 0x10]
push edx
mov ecx, 0x48958c
call fcn.004128c0
mov byte [0x489512], 1
jmp 0x40d330
cmp dword [ebx + 0xc], 0x2717
jne 0x40d226
lea eax, [ebx + 0x10]
push eax
mov ecx, 0x4895a4
call fcn.004128c0
mov byte [0x489510], 1
jmp 0x40d330
cmp dword [ebx + 0xc], 0x2719
jne 0x40d2e6
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0x11c], ecx
cmp dword [ebp - 0x11c], 0
je 0x40d2dd
lea edx, [ebx + 0x10]
push edx
lea eax, [ebp - 0x4f8]
push eax
mov ecx, dword [0x489514]
call fcn.00405940
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 0x1d
cmp dword [ebp - 0x68], 0x48961c
jne 0x40d27d
jmp 0x40d2b2
mov dword [ebp - 0x334], 0x48961c
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x338], edx
mov dword [ebp - 0x33c], 0
mov ecx, 0x48961c
call fcn.00415fd0
mov eax, dword [ebp - 0x68]
push eax
mov ecx, 0x48961c
call fcn.004163e0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x4f8]
call fcn.00415fd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4f8]
mov dword [ebp - 0x340], ecx
mov byte [ebp - 4], 0x1f
mov byte [ebp - 4], 0x20
mov byte [ebp - 4], 1
mov byte [0x489511], 1
jmp 0x40d330
cmp dword [ebx + 0xc], 0x2712
jne 0x40d311
mov edx, dword [ebx + 0x20]
mov dword [ebp - 0x124], edx
cmp dword [ebp - 0x124], 0x18
jne 0x40d30f
lea eax, [ebx + 0x10]
push eax
mov ecx, 0x4895bc
call fcn.004128c0
jmp 0x40d330
cmp dword [ebx + 0xc], 0x2713
jne 0x40d330
lea ecx, [ebx + 0x10]
call fcn.00412710
push eax
call fcn.00451e17
add esp, 4
mov dword [0x487afc], eax
jmp 0x40d9d9
mov dword [ebp - 4], 0
jmp 0x40d9ee
jmp 0x40d9fa
mov dword [ebp - 4], 0x22
lea ecx, [ebx + 0x10]
call fcn.00415fd0
mov dword [ebp - 4], 0xffffffff
lea edx, [ebx + 0x10]
mov dword [ebp - 0x344], edx
mov dword [ebp - 4], 0x23
mov dword [ebp - 4], 0x24
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret