Function at 0x421100
Capabilities:
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x508068]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esp + 0x20], eax
mov ebx, dword [esi + 0x120]
mov dword [esp + 0x1c], esi
test ebx, ebx
jne 0x421159
xor ebx, ebx
cmp byte [0x5102e0], bl
je 0x421159
push ebx
push 0x4f051c
push str.pieces__0
push ebx
call edi
mov ebx, dword [esi + 0x120]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add ebx, 7
shr ebx, 3
cmp dword [eax + 8], 6
mov dword [esp + 0x2c], ebx
jne 0x421388
lea edi, [ebx + 5]
push edi
mov dword [esp + 0x34], edi
call fcn.004b5cd0
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
test esi, esi
je 0x421355
lea ecx, [ebx + 1]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi], eax
mov byte [esi + 4], 5
mov dword [esp + 0x18], 0
test ebx, ebx
je 0x42130c
mov edi, 2
mov dword [esp + 0x14], edi
lea ebx, [edi + 3]
mov eax, 1
mov dword [esp + 0x24], ebx
lea edx, [edi - 2]
mov ebx, dword [esp + 0x14]
add edi, 4
mov ecx, ebx
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x1c]
and ecx, 0x1f
shl eax, cl
mov dword [esp + 0x10], eax
lea esi, [ebx + 5]
mov ecx, dword [esp + 0x10]
mov eax, ebx
mov ebx, dword [edi + 0x3b4]
shr eax, 5
and ecx, dword [ebx + eax*4]
mov ebx, edi
neg ecx
mov edi, dword [esp + 0x20]
mov eax, 1
sbb cl, cl
and ecx, 0xffffff20
mov dword [esp + 0x10], ecx
mov ecx, edx
and ecx, 0x1f
shr edx, 5
shl eax, cl
mov ecx, dword [ebx + 0x3b4]
and eax, dword [ecx + edx*4]
mov ecx, esi
mov edx, dword [esp + 0x10]
neg eax
sbb al, al
and ecx, 0x1f
and al, 0x80
shr esi, 5
or dl, al
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 0x3b4]
test dword [ecx + esi*4], eax
mov ecx, edi
mov esi, dword [ebx + 0x3b4]
setne al
mov ebx, dword [esp + 0x24]
or dl, al
shr edi, 5
and ecx, 0x1f
mov eax, 1
shl eax, cl
mov ecx, ebx
and eax, dword [esi + edi*4]
mov edi, dword [esp + 0x14]
neg eax
sbb al, al
shr ebx, 5
and al, 2
and ecx, 0x1f
or dl, al
mov eax, 1
shl eax, cl
and eax, dword [esi + ebx*4]
mov ebx, edx
neg eax
mov dword [esp + 0x10], edx
lea edx, [edi + 2]
sbb al, al
mov ecx, edx
and al, 4
shr edx, 5
or bl, al
and ecx, 0x1f
mov eax, 1
shl eax, cl
and eax, dword [esi + edx*4]
neg eax
sbb al, al
and al, 8
or bl, al
lea edx, [edi + 1]
mov eax, 1
mov ecx, edx
shr edx, 5
and ecx, 0x1f
shl eax, cl
and eax, dword [esi + edx*4]
lea edx, [edi - 1]
neg eax
mov ecx, edx
sbb al, al
shr edx, 5
and al, 0x10
and ecx, 0x1f
or bl, al
mov eax, 1
shl eax, cl
and eax, dword [esi + edx*4]
mov esi, dword [esp + 0x28]
neg eax
sbb al, al
add edi, 8
and al, 0x40
mov dword [esp + 0x14], edi
or bl, al
mov eax, dword [esp + 0x18]
mov byte [esi + eax + 5], bl
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x2c]
jb 0x4211b4
mov edi, dword [esp + 0x30]
mov eax, dword [ebp + 0xc]
push 0
push edi
push esi
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_send]
push esi
call fcn.004b5a1c
mov eax, dword [ebp + 0xc]
add esp, 4
mov eax, dword [eax + 0xf8]
add dword [eax + 0xec], edi
mov eax, dword [ebp + 8]
add dword [eax + 0x248], edi
add dword [0x50e4e4], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004ad19c
mov esp, ebp
pop ebp
ret
cmp byte [0x5102e0], 0
je 0x42166a
push 0
push 0x4f0538
push 0x4f0548
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004ad19c
mov esp, ebp
pop ebp
ret
mov cl, byte [esi + 0x1b]
lea eax, [ebx + 5]
xor esi, esi
test cl, cl
cmove esi, ebx
xor ebx, ebx
test cl, cl
mov dword [esp + 0x24], esi
cmove ebx, eax
add ebx, 0x14
push ebx
mov dword [esp + 0x3c], ebx
call fcn.004b5cd0
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x421651
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x1b], 0
jne 0x421558
lea edi, [eax + 0x14]
lea eax, [esi + 1]
mov dword [esp + 0x28], edi
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [edi], eax
mov byte [edi + 4], 5
mov dword [esp + 0x18], 0
test esi, esi
je 0x421558
mov edi, 2
mov dword [esp + 0x14], edi
nop dword [eax]
lea ebx, [edi + 3]
mov eax, 1
mov dword [esp + 0x2c], ebx
lea edx, [edi - 2]
mov ebx, dword [esp + 0x14]
add edi, 4
mov ecx, ebx
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x1c]
and ecx, 0x1f
shl eax, cl
mov dword [esp + 0x10], eax
lea esi, [ebx + 5]
mov ecx, dword [esp + 0x10]
mov eax, ebx
mov ebx, dword [edi + 0x3b4]
shr eax, 5
and ecx, dword [ebx + eax*4]
mov ebx, edi
neg ecx
mov edi, dword [esp + 0x30]
mov eax, 1
sbb cl, cl
and ecx, 0xffffff20
mov dword [esp + 0x10], ecx
mov ecx, edx
and ecx, 0x1f
shr edx, 5
shl eax, cl
mov ecx, dword [ebx + 0x3b4]
and eax, dword [ecx + edx*4]
mov ecx, esi
mov edx, dword [esp + 0x10]
neg eax
sbb al, al
and ecx, 0x1f
and al, 0x80
shr esi, 5
or dl, al
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 0x3b4]
test dword [ecx + esi*4], eax
mov ecx, edi
mov esi, dword [ebx + 0x3b4]
setne al
mov ebx, dword [esp + 0x2c]
or dl, al
shr edi, 5
and ecx, 0x1f
mov eax, 1
shl eax, cl
mov ecx, ebx
and eax, dword [esi + edi*4]
mov edi, dword [esp + 0x14]
neg eax
sbb al, al
shr ebx, 5
and al, 2
and ecx, 0x1f
or dl, al
mov eax, 1
shl eax, cl
and eax, dword [esi + ebx*4]
mov ebx, edx
neg eax
mov dword [esp + 0x10], edx
lea edx, [edi + 2]
sbb al, al
mov ecx, edx
and al, 4
shr edx, 5
or bl, al
and ecx, 0x1f
mov eax, 1
shl eax, cl
and eax, dword [esi + edx*4]
neg eax
sbb al, al
and al, 8
or bl, al
lea edx, [edi + 1]
mov eax, 1
mov ecx, edx
shr edx, 5
and ecx, 0x1f
shl eax, cl
and eax, dword [esi + edx*4]
lea edx, [edi - 1]
neg eax
mov ecx, edx
sbb al, al
and ecx, 0x1f
and al, 0x10
shr edx, 5
or bl, al
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x18]
and eax, dword [esi + edx*4]
neg eax
sbb al, al
add edi, 8
and al, 0x40
mov dword [esp + 0x14], edi
or bl, al
mov eax, dword [esp + 0x28]
mov byte [eax + ecx + 5], bl
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x24]
jb 0x421400
mov ebx, dword [esp + 0x38]
mov esi, dword [ebp + 0xc]
push dword [esi + 0x5a]
mov edi, dword [esi + 0x6a]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esi + 0xf8]
cmp dword [ecx + 0x78], 0x19c8
jne 0x421595
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x421589
test eax, eax
jne 0x421585
xor edi, edi
jmp 0x42159e
sub edi, eax
jmp 0x42159e
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
lea edi, [eax + 1]
jmp 0x42159e
xor ecx, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov word [0x50e5dc], 1
movzx eax, word [eax + 0x14]
push eax
call esi
push edi
mov word [0x50e5de], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [0x50e5e4], eax
mov eax, dword [esp + 0x20]
movzx eax, word [eax + 0x1c]
push eax
call esi
movups xmm0, xmmword [0x50e5dc]
mov edx, dword [esp + 0x34]
mov word [0x50e5ec], ax
mov eax, dword [ebp + 0xc]
mov ax, word [eax + 0x66]
mov word [0x50e5ee], ax
movups xmmword [edx], xmm0
mov eax, dword [0x50e5ec]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + 0xc]
movups xmm0, xmmword [0x50e5dc]
add ecx, 0x2c
push ecx
movups xmmword [ecx], xmm0
mov eax, dword [0x50e5ec]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x4c], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x52], edx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x48], ebx
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + 0xc0]
call fcn.004456b0
mov eax, dword [ebp + 0xc]
inc word [eax + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004ad19c
mov esp, ebp
pop ebp
ret
cmp byte [0x5102e0], 0
je 0x42166a
push 0
push str.send_bitfield__
push 0x4f0570
push 0
call edi
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ad19c
mov esp, ebp
pop ebp
ret