Function at 0xaf4d0
Capabilities:
Check http status code
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x74
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
mov ebp, dword [esp + 0x80]
jne 0xaf54a
mov dword [ebp + 0x644], ebx
mov eax, dword [ebp + 0x644]
xor edx, edx
mov ecx, 0x219
div ecx
mov dword [ebp + 0x644], edx
mov eax, dword [edx*4 + 0x3fa398]
and eax, 0x7fff
add edx, 1
and eax, 0x80000003
mov dword [ebp + 0x644], edx
jns 0xaf522
dec eax
or eax, 0xfffffffc
inc eax
sub eax, ebx
je 0xaf56d
sub eax, 1
je 0xaf566
sub eax, 1
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 3
je 0xaf55c
mov dword [esp + 8], 2
jmp 0xaf57e
cmp eax, 0x14
jb 0xaf4ec
pop ebp
mov eax, 2
pop ebx
add esp, 0x74
ret 8
mov dword [esp + 8], 1
jmp 0xaf57e
mov eax, 2
jmp 0xaf572
mov eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov edx, dword [ebp]
push edx
call fcn.000af3f0
test eax, eax
jne 0xaf598
pop ebp
mov eax, 1
pop ebx
add esp, 0x74
ret 8
push esi
lea esi, [ebp + 4]
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
jmp 0xaf5b0
xor ebx, ebx
lea esp, [esp]
cmp dword [esi], ebx
jne 0xaf85a
mov eax, dword [ebp + 0x644]
xor edx, edx
mov ecx, 0x219
div ecx
mov ecx, 0x5000
mov edi, dword [esp + 0x10]
mov dword [ebp + 0x644], edx
mov eax, dword [edx*4 + 0x3fa398]
add edx, 1
and eax, 0x7fff
mov dword [ebp + 0x644], edx
cdq
idiv ecx
lea ecx, [esp + 0x2c]
mov eax, edx
mov edx, dword [esp + 0x14]
push edx
add eax, 0x19000
push 1
push eax
mov edx, edi
call fcn.000a30e0
mov eax, dword [ebp + 0x644]
xor edx, edx
mov ecx, 0x219
div ecx
mov dword [ebp + 0x644], edx
mov eax, dword [edx*4 + 0x3fa398]
and eax, 0x7fff
add edx, 1
and eax, 0x80000001
mov dword [ebp + 0x644], edx
jns 0xaf63e
dec eax
or eax, 0xfffffffe
inc eax
mov eax, edi
jne 0xaf646
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
push ebx
push ebx
shl eax, 0xa
xor eax, ecx
lea edx, [esp + 0x30]
push edx
push ebx
and eax, 0x3fc00
xor ecx, eax
push ebx
lea eax, [esp + 0x40]
mov dword [esp + 0x8c], ecx
mov ecx, dword [ebp]
push eax
push ecx
xor ebx, ebx
call fcn.000adf40
test eax, eax
mov dword [esi], eax
je 0xaf85a
cmp dword [eax], ebx
je 0xaf96e
mov eax, dword [ebp + 0x644]
xor edx, edx
mov ecx, 0x219
div ecx
mov ecx, 0x1e
mov dword [ebp + 0x644], edx
mov eax, dword [edx*4 + 0x3fa398]
add edx, 1
and eax, 0x7fff
mov dword [ebp + 0x644], edx
cdq
idiv ecx
mov eax, dword [esi]
or byte [eax + 0x19], 8
test edx, edx
je 0xaf6c7
mov dword [eax + 0x38], edx
mov eax, dword [ebp + 0x644]
xor edx, edx
mov ecx, 0x219
div ecx
mov ecx, 0xa
mov dword [ebp + 0x644], edx
mov eax, dword [edx*4 + 0x3fa398]
add edx, 1
and eax, 0x7fff
mov dword [ebp + 0x644], edx
cdq
idiv ecx
add edx, ecx
test edx, edx
jle 0xaf852
mov dword [esp + 0x1c], edx
jmp 0xaf710
mov eax, dword [0x4e73e0]
mov edx, dword [eax + 0x94]
add eax, 8
mov dword [edx], 0
add dword [eax + 0x8c], 4
mov ecx, dword [eax + 0x8c]
cmp ecx, dword [eax + 0xa4]
jb 0xaf73e
call fcn.000b5d70
mov edi, dword [esi]
push 0
push 1
mov eax, 1
call fcn.000abaf0
mov ebx, dword [esi]
call fcn.000abde0
mov eax, dword [esi]
or byte [eax + 0x19], 1
mov edi, 1
add dword [eax + 0x1c], edi
mov ebx, dword [esi]
call fcn.000abe90
mov eax, dword [ebp + 0x644]
xor edx, edx
mov ecx, 0x219
div ecx
mov dword [ebp + 0x644], edx
mov eax, dword [edx*4 + 0x3fa398]
and eax, 0x7fff
add edx, edi
and eax, 0x80000003
mov dword [ebp + 0x644], edx
jns 0xaf79f
dec eax
or eax, 0xfffffffc
inc eax
jne 0xaf848
mov ebx, dword [0x4e73e0]
mov eax, dword [ebx + 0x370]
mov edx, dword [eax + 0x8c]
add ebx, 0x370
cmp edx, dword [ebx + 0x30]
jne 0xaf7cd
mov eax, dword [eax + 0xa8]
cmp eax, dword [ebx + 0x34]
je 0xaf848
mov eax, dword [ebx + 0x38]
test eax, eax
je 0xaf7dc
add eax, 0xffffffff
mov dword [ebx + 0x38], eax
jmp 0xaf848
add dword [ebx + 0x18], edi
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 0x38], ecx
adc dword [ebx + 0x1c], 0
cmp dword [ebx + 0x18], 0xfffffff0
jbe 0xaf81c
add dword [ebx + 0x1c], edi
mov edx, dword [ebx + 0x1c]
push edx
mov eax, edi
push eax
mov esi, ebx
mov dword [ebx + 0x18], edi
call fcn.0014b830
mov edi, dword [ebx]
mov ecx, dword [edi + 0x8c]
mov dword [ebx + 0x30], ecx
mov edx, dword [edi + 0xa8]
mov dword [ebx + 0x34], edx
call fcn.000b57c0
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push eax
push ecx
mov esi, ebx
call fcn.0014b830
mov eax, dword [ebx]
mov edx, dword [eax + 0x8c]
mov esi, dword [esp + 0x24]
mov dword [ebx + 0x30], edx
mov eax, dword [eax + 0xa8]
mov dword [ebx + 0x34], eax
mov edi, 1
sub dword [esp + 0x1c], edi
jne 0xaf710
mov ecx, dword [esi]
push ecx
call fcn.000ab580
mov eax, dword [esp + 0x20]
add eax, 1
add esi, 4
cmp eax, 0x190
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
jl 0xaf5a7
mov edi, dword [0x4e73e0]
add edi, 8
call fcn.000b57c0
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp]
push edx
mov esi, 0x1b800
call fcn.000ad100
mov eax, dword [ebp]
push eax
call fcn.000af3f0
test eax, eax
je 0xaf96e
lea edi, [ebp + 4]
mov ebx, 0x190
mov eax, dword [ebp + 0x644]
xor edx, edx
mov ecx, 0x219
div ecx
mov dword [ebp + 0x644], edx
mov eax, dword [edx*4 + 0x3fa398]
and eax, 0x7fff
add edx, 1
and eax, 0x80000003
mov dword [ebp + 0x644], edx
jns 0xaf8e6
dec eax
or eax, 0xfffffffc
inc eax
jne 0xaf913
mov eax, dword [edi]
test eax, eax
je 0xaf913
mov edx, dword [ebp]
push eax
push edx
call fcn.000adb00
mov eax, dword [edi]
test eax, eax
je 0xaf90d
call fcn.000ac290
mov esi, 0x527e10
call fcn.000b7610
mov dword [edi], 0
add edi, 4
sub ebx, 1
jne 0xaf8b0
mov eax, dword [ebp]
mov edi, dword [eax + 0x1c]
test edi, edi
je 0xaf961
mov esi, 0x200
lea ebx, [ebx]
mov eax, dword [edi]
test eax, eax
je 0xaf95a
test dword [edi + 0x18], esi
je 0xaf95a
mov cl, byte [esp + 0x10]
test byte [edi + 0x88], cl
je 0xaf95a
cmp dword [eax + 0x40], 0
jbe 0xaf95a
cmp dword [edi + 0x34], 1
jbe 0xaf95a
push 1
call fcn.000ac360
mov edi, dword [edi + 0xc]
test edi, edi
jne 0xaf930
mov edx, dword [ebp]
push edx
call fcn.000af3f0
test eax, eax
jne 0xaf97d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x74
ret 8
cmp dword [esp + 0x8c], 0x13
jne 0xaf9c3
lea edi, [ebp + 4]
mov ebx, 0x190
nop
mov eax, dword [edi]
test eax, eax
je 0xaf9bb
push eax
mov eax, dword [ebp]
push eax
call fcn.000adb00
mov eax, dword [edi]
test eax, eax
je 0xaf9b5
call fcn.000ac290
mov esi, 0x527e10
call fcn.000b7610
mov dword [edi], 0
add edi, 4
sub ebx, 1
jne 0xaf990
mov ecx, dword [ebp]
push ecx
call fcn.000af3f0
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
add eax, 1
pop ebx
add esp, 0x74
ret 8