Function at 0x1001634f
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1930
call fcn.10139950
push ebx
push esi
push edi
push 8
pop ecx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp - 0x30]
push str.HebcaP11Client
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
push 4
lea eax, [ebp - 0x10]
push eax
push 2
push edi
mov dword [ebp - 0x10], 0x2710
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
lea eax, [ebp - 0x30]
push 0x84000100
push eax
call fcn.101319ca
pop ecx
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
cmp esi, ebx
jne 0x100163db
push 0xe00b1014
push 0x1018af5c
push 0x1018af9c
mov eax, 0x1018a920
call fcn.10004ead
mov dword [ebp + 8], eax
jmp 0x10016461
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x20000013
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [ebp - 4], 0xc8
jne 0x1001643e
push 0xfff
lea eax, [ebp - 0x192f]
push ebx
push eax
mov byte [ebp - 0x1930], bl
call fcn.10131950
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x1000
lea eax, [ebp - 0x1930]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1001643e
cmp dword [ebp - 8], ebx
ja 0x10016474
push 0xe00b1014
push 0x1018af5c
push 0x1018af9c
mov eax, 0x1018a920
call fcn.10004ead
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp edi, ebx
je 0x1001646c
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp + 8]
jmp 0x100165b5
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
lea eax, [ebp - 0x1930]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.10137040
mov esi, esp
push 0xfde9
push edi
lea eax, [ebp - 0x1930]
push eax
call fcn.10002936
mov esi, 0x1018e450
push esi
push eax
jmp 0x100165a2
push 0xfe
mov word [ebp - 0x130], ax
lea eax, [ebp - 0x12e]
push ebx
push eax
call fcn.10131950
xor eax, eax
push 0x7fe
mov word [ebp - 0x930], ax
lea eax, [ebp - 0x92e]
push ebx
push eax
call fcn.10131950
push 0x3a
push edi
call fcn.101347b8
add esp, 0x20
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x100165ab
sub eax, edi
sar eax, 1
push eax
lea eax, [ebp - 0x130]
push edi
push eax
call fcn.101348dd
push dword [ebp + 8]
call fcn.101319ca
push 0x1018da08
mov edi, eax
call fcn.101319ca
add esp, 0x14
sub edi, eax
push edi
push 0x1018da08
call fcn.101319ca
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x930]
push eax
call fcn.101348dd
lea eax, [ebp - 0x130]
push str.return
push eax
call fcn.10134641
add esp, 0x14
test eax, eax
jne 0x10016578
lea eax, [ebp - 0x930]
push eax
call fcn.101348bc
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x100165a0
lea eax, [ebp - 0x130]
push str.message
push eax
call fcn.10134641
pop ecx
pop ecx
test eax, eax
jne 0x100165a0
lea eax, [ebp - 0x930]
push eax
push dword [ebp + 0x10]
call fcn.10131873
pop ecx
pop ecx
push esi
push ebx
call fcn.101349ec
pop ecx
mov edi, eax
pop ecx
xor eax, eax
cmp edi, ebx
jne 0x100164b8
lea esp, [ebp - 0x193c]
pop edi
pop esi
pop ebx
leave
ret 0xc