Function at 0x40254a
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x4048e7
call fcn.004043c0
sub esp, 0xf0c
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0xd88]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], edi
call fcn.004015d1
lea eax, [ebp - 0xf18]
mov dword [ebp - 4], edi
push eax
push 2
mov byte [ebp - 4], 1
call sub.WSOCK32.dll_WSAStartup
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_1
push dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_1
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push edi
push eax
lea ecx, [ebp - 0xd88]
push dword [ebp - 0x1c]
mov byte [ebp - 4], 3
push dword [ebp - 0x18]
call fcn.00401777
lea ecx, [ebp - 0xd88]
call fcn.0040166d
push dword [ebp + 0x14]
lea ecx, [ebp - 0xd88]
push dword [ebp - 0x18]
call fcn.004016b0
push edi
push edi
lea ecx, [ebp - 0xd88]
call fcn.004018f1
push edi
push 0x2710
lea ecx, [ebp - 0xd88]
call fcn.004019b1
lea ecx, [ebp - 0xd88]
call fcn.00401b36
cmp eax, 0xc8
jne 0x402858
push 0x1e
lea eax, [ebp - 0x64]
push edi
push eax
mov dword [ebp + 0x10], edi
xor bl, bl
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0xd88]
push 0x1e
push eax
push str.Content_Length
call fcn.00401a7b
mov esi, eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
cmp esi, 0xffffffff
pop ecx
mov dword [ebp + 0x14], eax
jne 0x40269b
lea eax, [ebp - 0x64]
push 0x32
push eax
push str.Transfer_Encoding
lea ecx, [ebp - 0xd88]
call fcn.00401a7b
lea eax, [ebp - 0x64]
lea ecx, [ebp + 0xc]
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::MakeLower
push str.chunked
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x40268f
inc bl
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
cmp dword [ebp + 0x14], edi
jle 0x402712
push 0x401
lea eax, [ebp - 0x468]
push edi
push eax
call sub.MSVCRT.dll_memset
mov ebx, dword [ebp + 8]
add esp, 0xc
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 0x10], eax
jge 0x4027b4
lea eax, [ebp - 0x468]
push 0x400
push eax
lea ecx, [ebp - 0xd88]
call fcn.00401948
mov esi, eax
cmp esi, edi
je 0x4027b4
cmp esi, 0xffffffff
jne 0x4026f3
or dword [ebp - 0x14], 0xffffffff
jmp 0x4027b4
mov eax, dword [ebx + 8]
lea ecx, [ebp + esi - 0x468]
push ecx
lea ecx, [ebp - 0x468]
push ecx
push eax
mov ecx, ebx
call fcn.00403e4d
add dword [ebp + 0x10], esi
jmp 0x4026b8
test bl, bl
je 0x4026ea
xor ebx, ebx
push 0x1a
lea eax, [ebp - 0x44]
push ebx
push eax
or edi, 0xffffffff
xor esi, esi
call sub.MSVCRT.dll_memset
add esp, 0xc
test ebx, ebx
jne 0x4027db
cmp esi, 0x19
jge 0x4027db
lea eax, [ebp + 0xf]
push 1
push eax
lea ecx, [ebp - 0xd88]
call fcn.00401948
test eax, eax
jg 0x402764
or dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 0x20]
push 0x405b50
push eax
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [ebp + 0xf]
mov byte [ebp + esi - 0x44], al
inc esi
cmp esi, 3
jl 0x40272c
cmp byte [ebp + esi - 0x46], 0xd
jne 0x40272c
cmp byte [ebp + esi - 0x45], 0xa
jne 0x40272c
and byte [ebp + esi - 0x43], 0
push 1
pop ebx
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString_2
push 0x10
lea eax, [ebp - 0x44]
push 0
push eax
call dword [sym.imp.MSVCRT.dll_strtoul]
mov edi, eax
add esp, 0xc
test edi, edi
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x10]
jne 0x4027d1
call sub.MFC42.DLL_CString::CString
xor edi, edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
jmp 0x40286c
call sub.MFC42.DLL_CString::CString
jmp 0x40272c
test edi, edi
je 0x4027b2
xor ebx, ebx
cmp ebx, edi
jae 0x402716
push 0x401
lea eax, [ebp - 0x468]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, edi
mov ecx, 0x400
sub eax, ebx
add esp, 0xc
cmp eax, ecx
jbe 0x40280e
mov eax, ecx
push eax
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0xd88]
call fcn.00401948
mov esi, eax
test esi, esi
jg 0x402839
or dword [ebp - 0x24], 0xffffffff
lea eax, [ebp - 0x24]
push 0x405b50
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp + 8]
lea edx, [ebp + esi - 0x468]
push edx
lea edx, [ebp - 0x468]
mov eax, dword [ecx + 8]
push edx
push eax
call fcn.00403e4d
add ebx, esi
jmp 0x4027e1
mov dword [ebp - 0x14], eax
jmp 0x4027b4
mov dword [ebp - 4], edi
call sub.WSOCK32.dll_WSACleanup
lea ecx, [ebp - 0xd88]
call fcn.00401982
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd88]
call fcn.00401662
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret