Function at 0x404480
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x2c
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 4]
test edx, edx
je 0x404400
mov esi, dword [sym.imp.msvcrt.dll___mb_cur_max]
mov edi, dword [eax]
cmp dword [esi], 1
movsx eax, byte [edi]
jne 0x404398
mov edx, dword [sym.imp.msvcrt.dll__pctype]
mov edx, dword [edx]
movzx eax, word [edx + eax*2]
lea edx, [ebx + 0x9c]
mov dword [esp + 0x1c], edx
and eax, 8
movzx eax, ax
test eax, eax
je 0x4043ba
movsx eax, byte [edi + 1]
lea ebp, [edi + 1]
test al, al
je 0x40431c
mov edi, dword [sym.imp.msvcrt.dll__pctype]
jmp 0x404303
mov ecx, dword [edi]
movzx eax, word [ecx + eax*2]
and eax, 8
movzx eax, ax
test eax, eax
je 0x40431c
movsx eax, byte [ebp + 1]
add ebp, 1
test al, al
je 0x40431c
cmp dword [esi], 1
je 0x4042e8
mov dword [esp + 4], 8
mov dword [esp], eax
call sub.msvcrt.dll__isctype
test eax, eax
jne 0x4042f8
mov esi, dword [ebx + 0xa0]
mov eax, dword [ebx + 0x9c]
lea ecx, [ebx + 0xa4]
lea edi, [esi + 1]
cmp eax, ecx
je 0x404468
mov ecx, dword [ebx + 0xa4]
cmp edi, ecx
ja 0x404430
mov byte [eax + esi], 0x20
mov eax, dword [ebx + 0x9c]
mov dword [ebx + 0xa0], edi
mov byte [eax + esi + 1], 0
mov dword [esp], ebp
call sub.msvcrt.dll_strlen
mov ecx, 0x3fffffff
sub ecx, dword [ebx + 0xa0]
cmp eax, ecx
ja 0x404472
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp], ebp
call fcn.004a5820
sub esp, 8
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 4], 8
mov dword [esp], eax
call sub.msvcrt.dll__isctype
lea edx, [ebx + 0x9c]
mov dword [esp + 0x1c], edx
test eax, eax
jne 0x4042d0
mov ecx, ebx
call fcn.00403fe0
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov dword [esp + 8], edi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xa0]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004a36d0
sub esp, 0x10
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
call fcn.00403fe0
cmp dword [ebx + 0x3c], 0x64
jne 0x404420
mov dword [ebx + 4], 0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov ecx, ebx
call fcn.00402f50
jmp 0x40438a
mov dword [esp + 0xc], 1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.004a5a00
mov eax, dword [ebx + 0x9c]
sub esp, 0x10
jmp 0x404347
mov ecx, 0xf
jmp 0x40433f
mov dword [esp], 0x4c48d9
call fcn.004b98e8
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
test ebx, ebx
je 0x40468e
jle 0x404681
lea edi, [ecx + 0x8c]
mov ebp, dword [esp + 0x44]
mov eax, dword [ecx + 4]
mov esi, ecx
mov dword [esp + 0x14], edi
cmp eax, 6
je 0x4044fa
lea ecx, [eax - 3]
cmp ecx, 2
jbe 0x404510
cmp eax, 1
jbe 0x404510
cmp eax, 2
jne 0x4044b0
cmp byte [esi + 0x74], 0
mov dword [esp + 0x40], edx
mov ecx, esi
mov dword [esp + 4], ebp
mov dword [esp], edx
je 0x404670
call fcn.00402a20
sub esp, 8
mov edx, dword [esp + 0x40]
add edx, eax
sub ebp, eax
test ebp, ebp
jle 0x4044fa
mov eax, dword [esi + 4]
cmp eax, 6
jne 0x4044b5
sub dword [esp + 0x44], ebp
mov eax, dword [esp + 0x44]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 8
lea eax, [esi + 0x84]
mov edi, edx
mov dword [esp + 0x1c], eax
jmp 0x40453c
mov byte [edx + eax], bl
mov edx, dword [esp + 0x10]
mov dword [esi + 0x88], edx
mov edx, dword [esi + 0x84]
mov byte [edx + eax + 1], 0
test ebp, ebp
je 0x4044fe
movzx ebx, byte [edi]
add edi, 1
sub ebp, 1
cmp bl, 0xa
je 0x4045c0
cmp bl, 0xd
je 0x404538
mov eax, dword [esi + 0x88]
mov edx, dword [esi + 0x84]
lea ecx, [eax + 1]
mov dword [esp + 0x10], ecx
cmp edx, dword [esp + 0x14]
je 0x4045b0
mov ecx, dword [esi + 0x8c]
cmp dword [esp + 0x10], ecx
jbe 0x404520
mov dword [esp], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x18], eax
call fcn.004a5a00
mov edx, dword [esi + 0x84]
sub esp, 0x10
mov eax, dword [esp + 0x18]
jmp 0x404520
mov ecx, 0xf
jmp 0x40456e
cmp dword [esi + 4], 5
mov edx, edi
ja case.0x4045cb.2
mov eax, dword [esi + 4]
jmp dword [eax*4 + 0x4c49d8]
mov eax, dword [esi + 0x88]
test eax, eax
jne case.0x4045cb.2
mov ecx, esi
mov dword [esp + 0x40], edi
call fcn.00401410
mov edx, dword [esp + 0x40]
jmp case.0x4045cb.2
cmp byte [esi + 0x74], 0
je 0x4046aa
mov dword [esi + 4], 3
nop
mov dword [esi + 0x88], 0
mov eax, dword [esi + 0x84]
mov byte [eax], 0
jmp 0x4044ee
lea eax, [esi + 0x84]
mov ecx, esi
mov dword [esp + 0x40], edi
mov dword [esp], eax
call fcn.00402ba0
sub esp, 4
mov edx, dword [esp + 0x40]
jmp case.0x4045cb.2
lea eax, [esi + 0x84]
mov ecx, esi
mov dword [esp + 0x40], edi
mov dword [esp], eax
call fcn.004029c0
sub esp, 4
mov edx, dword [esp + 0x40]
jmp case.0x4045cb.2
lea eax, [esi + 0x84]
mov ecx, esi
mov dword [esp + 0x40], edi
mov dword [esp], eax
call fcn.00404280
sub esp, 4
mov edx, dword [esp + 0x40]
jmp case.0x4045cb.2
call fcn.00402ac0
sub esp, 8
mov edx, dword [esp + 0x40]
jmp 0x4044ea
mov dword [esp + 0x44], 0
jmp 0x4044fe
mov dword [esp + 8], 0x42a
mov dword [esp + 4], str.D:projCBTSFhappyhttp.cpp
mov dword [esp], str.datasize___0
call sub.msvcrt.dll__assert
mov dword [esp + 8], 0x450
mov dword [esp + 4], str.D:projCBTSFhappyhttp.cpp
mov dword [esp], str.m_Chunked__true
call sub.msvcrt.dll__assert
lea esi, [esi]
lea esi, [esi]