Function at 0x10020ba0
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004e7dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x50cc
call fcn.10036fa0
mov eax, dword [0x1005d330]
push ebx
mov dword [esp + 0x50cc], eax
mov dword [esp + 0x20], ecx
push esi
push edi
xor eax, eax
mov byte [esp + 0x30c0], 0
mov ecx, 0x802
lea edi, [esp + 0x30c1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0x10b1]
mov byte [esp + 0x10b0], 0
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
test eax, eax
mov dword [esp + 0x40], 0
jg 0x10020c22
call fcn.100450f9
mov eax, dword [edi + 4]
mov eax, dword [eax]
push 0x10050c04
push eax
call fcn.10036fe0
add esp, 8
test eax, eax
je 0x100217b0
inc eax
lea edx, [esp + 0x10b0]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10020c47
lea eax, [esp + 0x10b0]
push 0x10050c04
push eax
call fcn.10036fe0
add esp, 8
test eax, eax
je 0x100217b0
mov byte [eax], 0
mov dword [esp + 0x20], 1
call fcn.10045d33
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x24], ebx
mov eax, dword [edi + 8]
xor esi, esi
test eax, eax
mov dword [esp + 0x50e4], esi
jle 0x10020d0d
lea esp, [esp]
test esi, esi
jl 0x10020c1d
cmp esi, eax
jge 0x10020c1d
mov eax, dword [edi + 4]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
lea eax, [eax + esi*4]
mov eax, dword [eax]
push str.Pragma
push eax
call fcn.100208e0
test eax, eax
je 0x10020d69
lea ecx, [esp + 0x24]
call fcn.1001eec0
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx - 0xc]
test eax, eax
jl 0x10020d6d
push str.no_cache
push ebx
call fcn.10038222
add esp, 8
test eax, eax
je 0x10020d6d
sub eax, ebx
cmp eax, 0xffffffff
je 0x10020d6d
mov dword [esp + 0x20], 0
mov eax, dword [0x1005ffd4]
test eax, eax
je 0x10020d1e
mov dword [esp + 0x20], 1
xor eax, eax
mov ecx, 0x400
lea edi, [esp + 0x20b9]
mov byte [esp + 0x20b8], 0
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
cmp eax, 0x50
lea edx, [esp + 0x10b0]
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x20b8]
push edx
jne 0x10020d7b
mov eax, dword [ebp + 0x10]
push eax
push str.http:___s_s
push ecx
call fcn.10036e11
add esp, 0x10
jmp 0x10020d8e
mov ebx, dword [esp + 0x24]
mov eax, dword [edi + 8]
inc esi
cmp esi, eax
jl 0x10020ca0
jmp 0x10020d0d
push eax
mov eax, dword [ebp + 0x10]
push eax
push str.http:___s:_d_s
push ecx
call fcn.10036e11
add esp, 0x14
push str.GETCache
lea ecx, [esp + 0x88]
call fcn.100047c0
lea edx, [esp + 0x20b8]
push edx
push eax
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x50f0], 1
call fcn.1000d420
push 0x10050c04
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x50fc], 2
call fcn.1000d420
add esp, 0x18
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
mov byte [esp + 0x50e4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10020e01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
mov byte [esp + 0x50e4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10020e2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoA]
lea eax, [esp + 0x44]
push eax
push 0
lea ecx, [esp + 0x20c0]
push ecx
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10021464
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10021464
mov edx, dword [esp + 0x44]
push edx
call fcn.10045c41
mov ebx, eax
add esp, 4
lea eax, [esp + 0x44]
push eax
push ebx
lea ecx, [esp + 0x20c0]
push ecx
mov dword [esp + 0x24], ebx
mov dword [ebx], 0x50
call esi
test eax, eax
je 0x10021457
mov ecx, dword [ebx + 0x38]
test ecx, ecx
lea eax, [ebx + 0x38]
je 0x10021457
lea edx, [esp + 0x88]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0xffffffffffffffff
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x7c]
call fcn.1001cf50
push 0xffffffffffffffff
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x3c]
call fcn.1001cf50
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x78]
push 0
sub eax, esi
push 0x3c
sbb ecx, edx
push ecx
push eax
call fcn.10039330
mov esi, eax
mov eax, dword [0x1005ffd8]
mov ecx, edx
cdq
cmp ecx, edx
jg 0x10020f1b
jl 0x10020f11
cmp esi, eax
jae 0x10020f1b
mov dword [esp + 0x20], 1
jmp 0x10020f23
mov dword [esp + 0x20], 0
mov edi, dword [ebx + 0x40]
cmp byte [edi], 0
je 0x10021046
mov bl, 6
push 0x100506d0
push edi
call fcn.10036fe0
mov esi, eax
add esp, 8
test esi, esi
je 0x10021042
push edi
lea ecx, [esp + 0x14]
call fcn.100047c0
mov eax, esi
sub eax, edi
add eax, 2
push eax
push 0
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50f0], bl
call fcn.1000c890
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x50e8], 7
call fcn.10008ec0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x50e4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10020fa9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea edi, [esi + 2]
call fcn.10045d33
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push str.Pragma
push ecx
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x50f0], 8
call fcn.100208e0
test eax, eax
je 0x1002115c
lea ecx, [esp + 0x14]
call fcn.1001eec0
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x10021160
push str.no_cache
push esi
call fcn.10038222
add esp, 8
test eax, eax
je 0x10021160
sub eax, esi
cmp eax, 0xffffffff
je 0x10021160
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x14]
call fcn.10002590
lea ecx, [esp + 0x10]
mov byte [esp + 0x50e4], 4
call fcn.10002590
mov ebx, dword [esp + 0x18]
mov eax, dword [0x1005ffd4]
test eax, eax
jne 0x1002105b
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10021457
mov edi, dword [ebx + 0x40]
cmp byte [edi], 0
je 0x10021263
mov bl, 9
lea esp, [esp]
push 0x100506d0
push edi
call fcn.10036fe0
mov esi, eax
add esp, 8
test esi, esi
je 0x10021263
push edi
lea ecx, [esp + 0x14]
call fcn.100047c0
mov eax, esi
sub eax, edi
add eax, 2
push eax
push 0
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50f0], bl
call fcn.1000c890
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x50e8], 0xa
call fcn.10008ec0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x50e4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100210e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea edi, [esi + 2]
call fcn.10045d33
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push str.Transfer_Encoding
push ecx
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x50f0], 0xb
call fcn.100208e0
test eax, eax
mov esi, dword [esp + 0x14]
je 0x100211cf
push str.Chunked
push esi
call fcn.100380d7
add esp, 8
test eax, eax
jne 0x100211cf
lea eax, [esi - 0x10]
mov byte [esp + 0x50e4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x1002120e
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0x100506d0
push edx
call fcn.10038043
add esp, 8
test eax, eax
je 0x10021028
add esi, 0xfffffff0
mov byte [esp + 0x50e4], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002119b
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x50e4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100211c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp byte [edi], 0
jne 0x10020f31
jmp 0x10021042
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.10017670
mov edx, dword [esp + 0x10]
push 0x100506d0
push edx
call fcn.10038043
add esp, 8
test eax, eax
je 0x10021249
lea eax, [esi - 0x10]
mov byte [esp + 0x50e4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021218
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x50e4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002123e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp byte [edi], 0
jne 0x10021070
jmp 0x10021263
lea ecx, [esp + 0x14]
call fcn.10002590
lea ecx, [esp + 0x10]
mov byte [esp + 0x50e4], 4
call fcn.10002590
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 8]
push 0x100506d8
push eax
call fcn.10037995
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
jne 0x100212a2
push esi
call fcn.10045c46
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.10002590
lea ecx, [esp + 0x24]
call fcn.10002590
xor eax, eax
jmp 0x10021fd1
test byte [eax + 0xc], 0x10
jne 0x1002140c
mov ebx, dword [ebp + 0x18]
nop
mov edi, dword [esp + 0x14]
push edi
push 0x1000
lea ecx, [esp + 0x30c8]
push 1
push ecx
call fcn.10037672
mov esi, eax
add esp, 0x10
test esi, esi
jbe 0x1002143f
push ecx
lea edx, [esp + 0x30c4]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + esi + 0x30c8], 0
call fcn.100047c0
push ebx
mov ecx, 0x1005ed60
call fcn.10011a70
test eax, eax
jne 0x1002140c
mov ecx, dword [ebp + 0xc]
push esi
lea eax, [esp + 0x30c4]
push eax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.10017640
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 0xc]
test eax, eax
jle 0x100213fe
call fcn.10045d33
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30c4]
push ecx
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x50ec], 0xc
call fcn.10020a10
test eax, eax
mov edi, dword [esp + 0x20]
je 0x10021371
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.10003080
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.10008e60
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov dword [esp + 0x38], esp
push str.HTTP
mov byte [esp + 0x50f0], 0xd
call fcn.100047c0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x10050713
mov byte [esp + 0x50f4], 0xe
call fcn.100047c0
push ebx
mov ecx, 0x1005ed60
mov byte [esp + 0x50f4], 0xc
call fcn.1000cbb0
push 0x10050713
lea ecx, [esp + 0x20]
call fcn.10003940
lea eax, [edi - 0x10]
mov byte [esp + 0x50e4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100213fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
test byte [eax + 0xc], 0x10
je 0x100212b0
mov edx, dword [esp + 0x14]
push edx
call fcn.10037538
mov eax, dword [esp + 0x1c]
push eax
call fcn.10045c46
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.10002590
lea ecx, [esp + 0x24]
call fcn.10002590
mov eax, 1
jmp 0x10021fd1
push edi
call fcn.10037538
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10045c46
add esp, 8
jmp 0x10021289
push ebx
call fcn.10045c46
mov ebx, dword [esp + 0x28]
add esp, 4
lea ecx, [esp + 0x48]
call fcn.1001b740
lea ecx, [esp + 0x48]
push ecx
push 0
mov ecx, 0x1005ff80
mov byte [esp + 0x50ec], 0xf
call fcn.10030070
mov eax, dword [esp + 0x48]
test eax, eax
je 0x100215cb
call fcn.10045d33
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x54]
push str.HTTP
push eax
mov byte [esp + 0x50ec], 0x10
call fcn.100380d7
add esp, 8
test eax, eax
je 0x100214d9
mov ecx, dword [esp + 0x54]
push str.HTTPS
push ecx
call fcn.100380d7
add esp, 8
test eax, eax
jne 0x100214f9
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x1c]
push str.httphttp:___s:_d
push ecx
call fcn.1000d400
mov esi, dword [esp + 0x24]
add esp, 0x10
mov edx, dword [esp + 0x54]
push str.SOCKS5
push edx
call fcn.100380d7
add esp, 8
test eax, eax
jne 0x10021594
mov eax, dword [esp + 0x58]
test eax, eax
je 0x10021574
add esi, 0xfffffff0
mov byte [esp + 0x50e4], 0xf
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002153d
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
lea ecx, [esp + 0x48]
call fcn.1001b6e0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x50e4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002156c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
jmp 0x1002178e
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.socks_s:_d
push edx
call fcn.1000d400
mov esi, dword [esp + 0x24]
add esp, 0x10
push 0
push 0
push esi
push 3
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
add esi, 0xfffffff0
mov dword [esp + 0x14], eax
mov byte [esp + 0x50e4], 0xf
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100215df
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
jmp 0x100215df
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x14]
push 0
push 0
push 3
push 0
push 0
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
push 0
push 0x4068f500
push 0
push 0
mov edi, eax
push 0
lea eax, [esp + 0x10c4]
push eax
push 0x10052428
push edi
mov dword [esp + 0x50], edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ecx, dword [ebp + 8]
mov ebx, eax
mov eax, dword [ecx + 8]
mov esi, 1
cmp eax, esi
mov dword [esp + 0x20], ebx
jle 0x1002167b
test esi, esi
jl 0x10020c1d
cmp esi, eax
jge 0x10020c1d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
lea ecx, [eax + esi*4]
mov eax, dword [ecx]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10021656
mov ecx, dword [ecx]
push 0
sub eax, edi
push eax
push ecx
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
inc esi
cmp esi, eax
jl 0x10021638
mov edi, dword [esp + 0x30]
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x100217b7
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov byte [esp + 0x50e4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100216cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100216e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021707
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021725
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021743
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021761
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x50e4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021787
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x50e4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100217b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x10021fd1
push 0
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x78]
push ecx
push 0x20000013
push ebx
mov dword [esp + 0x84], 0
mov dword [esp + 0x90], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [esp + 0x70], 0x197
jne 0x10021837
mov eax, dword [esp + 0x60]
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0x2b
push ebx
call esi
mov eax, dword [esp + 0x64]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x18]
inc eax
push eax
push edx
push 0x2c
push ebx
call esi
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30c8]
push ecx
push 0x16
push ebx
mov dword [esp + 0x54], 0x1000
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10021eae
mov edx, dword [esp + 0x40]
mov byte [esp + edx + 0x30c0], 0
mov al, byte [esp + 0x30c0]
test al, al
lea esi, [esp + 0x30c0]
je 0x10021a00
push 0x100506d0
push esi
call fcn.10036fe0
mov edi, eax
add esp, 8
test edi, edi
je 0x10021a00
push esi
lea ecx, [esp + 0x14]
call fcn.100047c0
mov eax, edi
sub eax, esi
add eax, 2
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50f0], 0x11
call fcn.1000c890
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x50e4], 0x12
je 0x10021927
mov edx, dword [esi + 0xc]
test edx, edx
jl 0x10021919
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10021919
push eax
call fcn.10008e60
mov dword [esp + 0x1c], eax
add esp, 4
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002190c
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0x10
mov dword [esp + 0x10], eax
jmp 0x10021927
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.10002bf0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x50e4], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002194d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea esi, [edi + 2]
call fcn.10045d33
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push str.Transfer_Encoding
push ecx
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x50f0], 0x13
call fcn.100208e0
test eax, eax
mov edi, dword [esp + 0x18]
je 0x1002199d
push str.Chunked
push edi
call fcn.100380d7
add esp, 8
test eax, eax
je 0x100219af
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.10017670
lea eax, [edi - 0x10]
mov byte [esp + 0x50e4], 0x11
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100219d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x50e4], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100219f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp byte [esi], 0
jne 0x10021881
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
xor eax, eax
push eax
mov byte [esp + 0xac], 0
mov ecx, 0x400
lea edi, [esp + 0xad]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xb0]
push ecx
push 0x13
mov edi, 0x1000
push ebx
mov dword [esp + 0x40], 1
mov dword [esp + 0x50], edi
call esi
test eax, eax
je 0x10021a7c
lea edx, [esp + 0xa8]
push edx
call fcn.10036ef1
add esp, 4
cmp eax, 0xc8
jl 0x10021a74
lea eax, [esp + 0xa8]
push eax
call fcn.10036ef1
add esp, 4
cmp eax, 0x12c
jl 0x10021a7c
mov dword [esp + 0x2c], 0
push 0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0xb0]
push edx
push 5
push ebx
mov dword [esp + 0x50], edi
call esi
test eax, eax
je 0x10021aac
lea eax, [esp + 0xa8]
push eax
call fcn.10036e69
add esp, 4
mov dword [esp + 0x2c], eax
push 0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0xb0]
push edx
push 0x3f
push ebx
call esi
test eax, eax
mov edi, dword [ebp + 0x18]
je 0x10021aed
lea eax, [esp + 0xa8]
push str.Chunked
push eax
call fcn.1003ebdf
add esp, 8
test eax, eax
jne 0x10021aed
mov dword [esp + 0x2c], 1
jmp 0x10021b62
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x10021b62
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.10008e60
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov dword [esp + 0x20], esp
push str.HTTP
mov byte [esp + 0x50f0], 0x14
call fcn.100047c0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x10050713
mov byte [esp + 0x50f4], 0x15
call fcn.100047c0
push edi
mov ecx, 0x1005ed60
mov byte [esp + 0x50f4], 0xf
call fcn.1000cbb0
push 0
push 0x10050713
lea ecx, [esp + 0x24]
call fcn.10002bf0
cmp dword [edi], 2
jne 0x10021d79
jmp 0x10021b70
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x110]
test eax, eax
je 0x10021d79
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10021d79
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
push 0x1000
lea eax, [esp + 0x30c8]
push eax
push ecx
mov dword [esp + 0x3c], 0x1000
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10021d79
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10021d79
push ecx
lea edx, [esp + 0x30c4]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + eax + 0x30c8], 0
call fcn.100047c0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, 0x1005ed60
call fcn.10011a70
test eax, eax
jne 0x10021d79
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x30c4]
push edx
push eax
call fcn.10017640
test eax, eax
je 0x10021d79
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x18]
push 1
push ecx
push edx
call fcn.1000b5f0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0xc]
add esp, 0xc
test ecx, ecx
jle 0x10021d6d
call fcn.10045d33
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30c4]
push ecx
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x50ec], 0x16
call fcn.10020a10
test eax, eax
mov edi, dword [esp + 0x18]
je 0x10021c84
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.10003080
mov esi, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
add esi, 0xfffffff0
mov dword [esp + 0x38], esp
mov ebx, esp
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x10021cb5
cmp eax, dword [esi]
jne 0x10021cb5
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x10021ceb
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x10021ea9
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
add eax, 0x10
mov dword [ebx], eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.HTTP
mov byte [esp + 0x50f0], 0x17
call fcn.100047c0
push ecx
mov ecx, esp
mov dword [esp + 0x80], esp
push 0x10050713
mov byte [esp + 0x50f4], 0x18
call fcn.100047c0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, 0x1005ed60
mov byte [esp + 0x50f4], 0x16
call fcn.1000cbb0
push 0
push 0x10050713
lea ecx, [esp + 0x24]
call fcn.10002bf0
lea eax, [edi - 0x10]
mov byte [esp + 0x50e4], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021d6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 0x18]
cmp dword [eax], 2
je 0x10021b70
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x30]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov byte [esp + 0x50e4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021dba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021dd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021df6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021e14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021e32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021e50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x50e4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021e76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x50e4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021e9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x10021fd1
call fcn.10001d00
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov byte [esp + 0x50e4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021ee7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021f05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021f23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021f41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021f5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021f7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x50e4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021fa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x50e4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10021fcc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 0xd
mov ecx, dword [esp + 0x50dc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x50d4]
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14