Function at 0x40cd20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cd7cb
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x500770]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
push edi
mov eax, dword [0x500770]
xor eax, esp
push eax
lea eax, [esp + 0x468]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
lea eax, [ebx + 0x811c]
push eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 0
mov dword [ebx + 0x8114], esi
mov word [ebx + 0x8118], si
call fcn.0040d110
mov eax, dword [ebx + 0x8110]
cmp eax, esi
je 0x40cda4
push eax
call fcn.004a76a9
add esp, 4
mov dword [ebx + 0x8110], esi
push ebx
lea edi, [esp + 0x60]
call fcn.0040ee30
mov dword [esp + 0x1c], eax
mov edi, 0x4d97fe
lea esi, [esp + 0x5c]
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40cdd6
cmp byte [esp + 0x16], al
je 0x40cf76
mov byte [esp + 0x16], al
jmp 0x40cda4
cmp word [ebx + 0x8118], 0
jne 0x40ce0f
lea ecx, [esp + 0x5c]
push 0x20
push ecx
call fcn.004a7a40
add esp, 8
test eax, eax
je 0x40cee1
add eax, 1
push eax
call fcn.004a7b0f
add esp, 4
mov word [ebx + 0x8118], ax
jmp 0x40cee1
sub esp, 0x1c
mov esi, esp
lea eax, [esp + 0x78]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov dword [esp + 0x3c], esp
mov byte [esi + 4], 0
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40ce31
sub eax, edi
push eax
lea edx, [esp + 0x7c]
push edx
mov ecx, esi
call fcn.00406990
lea eax, [esp + 0x40]
push eax
call fcn.0040c750
add esp, 0x20
mov dword [esp + 0x470], 0
mov esi, dword [ebx + 0x8120]
mov ecx, dword [esi + 4]
push eax
push ecx
push esi
call fcn.0040d280
lea ecx, [ebx + 0x811c]
mov edi, eax
call fcn.0040d320
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov esi, 0x10
mov dword [eax], edi
mov dword [esp + 0x470], 0xffffffff
cmp dword [esp + 0x58], esi
jb 0x40ceaa
mov edx, dword [esp + 0x44]
push edx
call fcn.00488fd0
add esp, 4
xor edi, edi
cmp dword [esp + 0x3c], esi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
jb 0x40ced0
mov eax, dword [esp + 0x28]
push eax
call fcn.00488fd0
add esp, 4
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], edi
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x5c]
push str.HTTP_1.1_100_Continue
push ecx
call fcn.004a94d0
add esp, 8
test eax, eax
je 0x40cefc
mov byte [esp + 0x16], 1
lea edx, [esp + 0x5c]
push str.Transfer_Encoding:_chunked
push edx
call fcn.004a94d0
add esp, 8
test eax, eax
je 0x40cf17
mov byte [esp + 0x17], 1
lea eax, [esp + 0x5c]
push str.Content_Length:
push eax
call fcn.004a94d0
add esp, 8
test eax, eax
je 0x40cf69
lea ecx, [esp + 0x6c]
push ecx
call fcn.004a7b0f
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
mov dword [ebx + 0x8114], eax
je 0x40cda4
mov edx, eax
add edx, 0x400
push edx
call fcn.004a75e6
mov dword [ebx + 0x8110], eax
add esp, 4
mov dword [eax], 0
cmp dword [esp + 0x1c], 0
jge 0x40cda4
jmp 0x40cfe4
cmp byte [esp + 0x17], 0
jne 0x40cfd5
mov esi, dword [esp + 0x18]
test esi, esi
jle 0x40cfe4
mov ecx, dword [ebx + 0x8110]
mov eax, dword [ebx]
mov edx, dword [eax + 8]
push esi
push ecx
mov ecx, ebx
call edx
cmp eax, esi
jl 0x40cfb6
mov ecx, dword [ebx + 0x8110]
test ecx, ecx
je 0x40cfb6
mov byte [ecx + esi], 0
mov dword [ebx + 0x8114], eax
mov eax, dword [ebx + 0x8110]
jmp 0x40cfe6
test eax, eax
jg 0x40cfa8
mov eax, dword [ebx + 0x8110]
push eax
call fcn.004a76a9
add esp, 4
mov dword [ebx + 0x8110], 0
jmp 0x40cfe4
call fcn.0040cbd0
test eax, eax
mov dword [ebx + 0x8114], eax
jne 0x40cfae
xor eax, eax
mov ecx, dword [esp + 0x468]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.004a74b2
mov esp, ebp
pop ebp
ret