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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
mov eax, dword [edx + 0x40]
mov edi, edx
mov esi, ecx
cmp eax, 1
je 0x59835a
cmp eax, 2
mov dword [esp + 8], esi
jne 0x5988a0
lea esi, [edi + 0x48]
lea eax, [edi + 0xa0]
lea ebx, [esp + 0x8c]
mov ecx, ebx
mov edx, esi
push eax
push dword [ebp + 8]
call fcn.005988d8
pop eax
pop ecx
cmp dword [ebx], 0
je 0x5983b2
mov eax, dword [esp + 8]
mov dword [eax], 2
jmp 0x598898
mov eax, dword [edi + 0x58]
mov ecx, dword [edi + 0x5c]
add eax, 0xfffffffe
adc ecx, 0xffffffff
xor edx, edx
push 3
pop ebx
cmp ebx, eax
sbb edx, ecx
jb 0x598395
test eax, eax
jne 0x598395
mov eax, dword [0xa70a24]
test eax, eax
je 0x598415
lea ecx, [edi + 0xb8]
mov edx, str.HTTP_1.1_100_Continue_r_n_r_n
push 0x19
call fcn.0043be28
pop eax
and dword [edi + 0x44], 0
mov dword [edi + 0x40], 2
mov ecx, esi
mov edx, edi
push dword [ebp + 8]
call fcn.005982ff
pop eax
jmp 0x598898
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x30], esi
test ecx, ecx
je 0x598474
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x5984f1
cmp eax, 1
jne 0x59857e
cmp byte [edi + 0x49], 0xb
jne 0x5984fd
jmp 0x598588
mov ecx, 0xa703e4
call fcn.0040e00b
test al, al
je 0x598382
mov ecx, dword [0xa703e4]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x598382
mov ecx, dword [0xa703e4]
mov edx, dword [ecx + 0x20]
lea eax, [ecx + 0x1c]
mov dword [esp + 8], eax
test edx, edx
je 0x598622
mov eax, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
and dword [esp + 0x28], 0
jmp 0x598624
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ebx
mov eax, dword [0xa70a24]
cmp eax, 1
ja 0x598708
mov ecx, 0xa703c0
call fcn.0040e00b
test al, al
je 0x598708
mov ecx, dword [0xa703c0]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x598708
mov ecx, dword [0xa703c0]
mov edx, dword [ecx + 0x20]
lea eax, [ecx + 0x1c]
mov dword [esp + 4], eax
test edx, edx
je 0x59868d
mov eax, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
and dword [esp + 0x28], 0
jmp 0x59868f
mov eax, dword [edi + 0x50]
or eax, dword [edi + 0x54]
je 0x598588
test ebx, ebx
jne 0x5985fd
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ecx
mov eax, dword [0xa70a24]
mov dword [esp + 4], ebx
cmp eax, 4
ja 0x598816
mov ecx, 0xa703d8
call fcn.0040e00b
test al, al
je 0x598816
mov ecx, dword [0xa703d8]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x598816
mov ecx, dword [0xa703d8]
mov edx, dword [ecx + 0x20]
lea eax, [ecx + 0x1c]
mov dword [esp + 0x10], eax
test edx, edx
je 0x5987b0
mov eax, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
and dword [esp + 0x28], 0
jmp 0x5987b2
cmp byte [edi + 0x49], 0
je 0x5984fd
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ecx
mov eax, dword [0xa70a24]
cmp eax, 1
ja 0x59877b
mov ecx, 0xa703cc
call fcn.0040e00b
test al, al
je 0x59877b
mov ecx, dword [0xa703cc]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x59877b
mov ecx, dword [0xa703cc]
mov edx, dword [ecx + 0x20]
lea esi, [ecx + 0x1c]
test edx, edx
je 0x598719
mov eax, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
and dword [esp + 0x28], 0
jmp 0x59871b
movsd xmm0, qword [esp + 0x38]
mov eax, dword [esp + 8]
movsd xmm1, qword [esp + 0x40]
movsd qword [eax + 0xc], xmm1
movsd qword [eax + 4], xmm0
mov dword [eax], 1
jmp 0x598898
xor eax, eax
lea ebx, [esp + 0x18]
lea ecx, [esp + 0x48]
mov dword [ebx], eax
mov edx, ebx
push 0xa0132c
call fcn.0057917a
pop eax
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x48]
xor eax, eax
mov dword [ebx], str.automatically_sending_100_Continue
mov dword [ecx], edx
lea edx, [esp + 0x78]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], 0x9fd8ec
inc eax
mov dword [edx], ecx
mov ecx, dword [esp + 8]
mov dword [edx + 4], eax
mov dword [ebx + 4], eax
and dword [ebx + 0x10], 0
mov dword [ebx + 8], str.dest_is_out_of_bounds
and dword [ebx + 0xc], 0
mov dword [edx + 8], ecx
mov ecx, dword [0xa703e4]
call fcn.00606f01
jmp 0x598382
xor eax, eax
lea esi, [esp + 0x18]
lea ecx, [esp + 0x48]
mov dword [esi], eax
mov edx, esi
push 0xa01290
call fcn.0057917a
pop eax
xor ecx, ecx
lea ebx, [esp + 0x5c]
lea eax, [esp + 0xa0]
mov dword [esi], str.incoming_body_decode_error:
lea edx, [esp + 0x48]
inc ecx
mov dword [eax], ebx
mov dword [eax + 4], fcn.005e2620
mov dword [esi + 4], ecx
and dword [esi + 0x10], 0
mov dword [esi + 8], eax
lea eax, [esp + 0x78]
mov dword [esi + 0xc], ecx
mov dword [eax], edx
lea edx, [esp + 0x38]
mov dword [eax + 4], esi
mov dword [eax + 8], 0x9fd8ec
mov dword [edx], eax
mov dword [edx + 4], ecx
mov ecx, dword [esp + 4]
mov dword [edx + 8], ecx
mov ecx, dword [0xa703c0]
call fcn.00606f01
mov eax, dword [ebx]
mov ebx, dword [ebx + 4]
mov dword [esp + 0xc], eax
xor ecx, ecx
mov dword [esp + 4], ebx
push 4
pop edx
xor ebx, ebx
inc ebx
jmp 0x59884d
xor eax, eax
lea ebx, [esp + 0x18]
lea ecx, [esp + 0x48]
mov dword [ebx], eax
mov edx, ebx
push 0xa012c4
call fcn.0057917a
pop eax
lea ecx, [esp + 0xa0]
lea edx, [esp + 0x48]
xor eax, eax
mov dword [ebx], str.incoming_body_completed
mov dword [ecx], edx
lea edx, [esp + 0x5c]
inc eax
mov dword [ecx + 4], ebx
mov dword [ecx + 8], 0x9fd8ec
mov dword [edx], ecx
mov ecx, dword [0xa703cc]
mov dword [ebx + 4], eax
and dword [ebx + 0x10], 0
mov dword [ebx + 8], str.dest_is_out_of_bounds
and dword [ebx + 0xc], 0
mov dword [edx + 4], eax
mov dword [edx + 8], esi
call fcn.00606f01
xor ecx, ecx
xor ebx, ebx
cmp dword [esp + 4], 0
movsd xmm0, qword [esp + 0x78]
movsd xmm1, qword [esp + 0x80]
setne bl
movsd qword [esp + 0x70], xmm1
movsd qword [esp + 0x68], xmm0
push 3
pop edx
je 0x598838
jmp 0x59884d
xor eax, eax
lea esi, [esp + 0x18]
lea ecx, [esp + 0x48]
mov dword [esi], eax
mov edx, esi
push 0xa012f4
call fcn.0057917a
pop eax
lea ecx, [esp + 0xa0]
lea edx, [esp + 0x48]
xor eax, eax
mov dword [esi], str.incoming_body_unexpectedly_ended
mov dword [ecx], edx
lea edx, [esp + 0x5c]
mov dword [ecx + 4], esi
mov dword [ecx + 8], 0x9fd8ec
inc eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x10]
mov dword [edx + 4], eax
mov dword [esi + 4], eax
and dword [esi + 0x10], 0
mov dword [esi + 8], str.dest_is_out_of_bounds
and dword [esi + 0xc], 0
mov dword [edx + 8], ecx
mov ecx, dword [0xa703d8]
call fcn.00606f01
movsd xmm0, qword [esp + 0x78]
movsd xmm1, qword [esp + 0x80]
xor ecx, ecx
movsd qword [esp + 0x70], xmm1
movsd qword [esp + 0x68], xmm0
push 4
pop edx
xor ebx, ebx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x38]
mov esi, edx
call fcn.00579450
mov ecx, dword [esp + 0x10]
mov edx, esi
movsd xmm0, qword [esp + 0x68]
mov esi, dword [esp + 0x30]
movsd xmm1, qword [esp + 0x70]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov dword [edi + 0x40], edx
mov edx, dword [ebp + 8]
mov dword [edi + 0x44], ecx
mov ecx, edi
call fcn.00595a84
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
mov esi, dword [esp + 0xc]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], esi
mov dword [eax + 0x10], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
add edi, 0x40
xor edx, edx
lea ecx, [esp + 0x18]
lea eax, [esp + 0x48]
inc edx
mov dword [ecx], 0xa01278
mov dword [eax], edi
mov dword [eax + 4], 0x4e874c
mov dword [ecx + 4], edx
and dword [ecx + 0x10], 0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov edx, 0xa01280
call fcn.0063cbf0
ud2