Function at 0x4069a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a7da8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], 0
lea eax, [ebp + 0x80]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
lea ebx, [ebp + 0x84]
lea esi, [esp + 0x24]
mov dword [esp + 0x28], eax
call fcn.004065f0
xor esi, esi
cmp eax, esi
je 0x406bb5
mov eax, dword [ebx]
push 5
push str.HTTP_
push eax
call fcn.00579335
add esp, 0xc
test eax, eax
jne 0x406bb5
mov ebx, dword [ebx]
add ebx, 9
push ebx
mov dword [ebp + 0xa0], esi
mov dword [ebp + 0xa4], esi
call fcn.00579687
add esp, 4
lea ebx, [esp + 0x18]
lea esi, [esp + 0x24]
mov dword [ebp + 0xb0], eax
call fcn.004065f0
test eax, eax
je 0x406b41
jmp 0x406a70
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
jle 0x406b2c
push 0x3a
push esi
call fcn.0057a0c1
add esp, 8
test eax, eax
je 0x406b2c
sub eax, esi
mov edi, eax
cmp edi, 0xffffffff
je 0x406b2c
lea ecx, [edi + 1]
lea esi, [esp + 0x20]
lea edx, [esp + 0x18]
call fcn.00408060
mov esi, eax
mov eax, edi
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.00408080
mov ebx, eax
mov edi, esi
mov byte [esp + 0x38], 2
call fcn.00407fc0
mov ebx, dword [ebx]
mov eax, dword [eax]
push ebx
lea ecx, [ebp + 0x88]
call fcn.00408b60
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x18]
lea esi, [esp + 0x24]
call fcn.004065f0
test eax, eax
jne 0x406a70
push str.Content_Length
lea ebx, [ebp + 0x88]
call fcn.004090f0
test eax, eax
je 0x406b74
mov eax, dword [eax + 4]
push 0xa
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.00579acd
add esp, 0xc
mov dword [ebp + 0xa0], eax
mov dword [ebp + 0xa4], edx
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406b9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push 0x2efb
mov ecx, ebp
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406be8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret