Function at 0x10007f20
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f8db
mov eax, dword fs:[0]
push eax
mov eax, 0x2894
call fcn.1015ebd0
mov eax, dword [0x101ebe94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28a0], edx
mov dword [ebp - 0x2898], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x287c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2894], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2884], eax
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
xor ebx, ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x289c], edi
test edi, edi
je 0x1000880e
mov dword [ebp - 0x2868], ebx
call fcn.10016c17
push eax
lea ecx, [ebp - 0x2868]
call fcn.100050be
mov byte [ebp - 4], 2
mov dword [ebp - 0x2864], ebx
call fcn.10016c17
push eax
lea ecx, [ebp - 0x2864]
call fcn.100050be
mov byte [ebp - 4], 3
mov dword [ebp - 0x2860], ebx
call fcn.10016c17
push eax
lea ecx, [ebp - 0x2860]
call fcn.100050be
push 0x101c7e60
push esi
push 0x2f
push ecx
mov byte [ebp - 4], 4
mov esi, esp
mov dword [ebp - 0x2888], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.1000511f
pop ecx
add eax, 0x10
lea ecx, [ebp - 0x2890]
mov edx, ebx
mov dword [esi], eax
call fcn.100072ef
add esp, 0xc
push eax
lea eax, [ebp - 0x2878]
mov byte [ebp - 4], 5
push eax
call fcn.10004c89
add esp, 0xc
push eax
lea ecx, [ebp - 0x2868]
mov byte [ebp - 4], 6
call fcn.1000506e
mov ecx, dword [ebp - 0x2878]
lea ecx, [ecx - 0x10]
call fcn.10003bf1
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2890]
add ecx, 0xfffffff0
call fcn.10003bf1
push 1
push 0x2f
push ecx
mov esi, esp
mov dword [ebp - 0x2888], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.1000511f
pop ecx
add eax, 0x10
lea ecx, [ebp - 0x2878]
push 2
pop edx
mov dword [esi], eax
call fcn.100072ef
add esp, 0xc
push eax
lea ecx, [ebp - 0x2864]
mov byte [ebp - 4], 7
call fcn.1000506e
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2878]
lea ecx, [ecx - 0x10]
call fcn.10003bf1
mov eax, dword [ebp - 0x2868]
mov esi, dword [ebp - 0x2864]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
add ecx, dword [esi - 0xc]
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x2878]
push eax
lea ecx, [ebp + 8]
call fcn.10004ee0
lea eax, [ebp - 0x2878]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x2860]
call fcn.1000506e
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2878]
lea ecx, [ecx - 0x10]
call fcn.10003bf1
push ebx
push 0x4400000
push 3
mov eax, 0x101c76a6
push eax
push eax
push 0x1bb
push esi
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, dword [ebp - 0x2860]
mov dword [ebp - 0x2890], eax
test eax, eax
je 0x100087e4
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x100087e4
push ebx
lea eax, [ebp - 0x2870]
mov dword [ebp - 0x2870], 0x2a2f2a
mov dword [ebp - 0x2858], eax
mov eax, 0x803000
push eax
mov dword [ebp - 0x2880], eax
lea eax, [ebp - 0x2858]
push eax
push ebx
push str.HTTP_1.0
push edi
push str.POST
push dword [ebp - 0x2890]
mov dword [ebp - 0x2854], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x288c], eax
test eax, eax
jne 0x100081c0
push dword [ebp - 0x2890]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push dword [ebp - 0x289c]
call ebx
xor ebx, ebx
jmp 0x100087f0
push 4
lea ecx, [ebp - 0x2880]
mov dword [ebp - 0x2880], 0xf180
push ecx
push 0x1f
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov dword [ebp - 0x285c], ebx
call fcn.10016c17
push eax
lea ecx, [ebp - 0x285c]
call fcn.100050be
mov eax, dword [ebp - 0x2898]
mov byte [ebp - 4], 9
cmp dword [ebp - 0x2894], 0
jne 0x10008333
test eax, eax
je 0x10008245
push 0x101c7e54
push eax
lea eax, [ebp - 0x2894]
push eax
call fcn.10004c89
add esp, 0xc
push eax
lea ecx, [ebp - 0x285c]
mov byte [ebp - 4], 0xa
call fcn.1000506e
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2894]
add ecx, 0xfffffff0
call fcn.10003bf1
push ecx
mov ecx, esp
mov dword [ebp - 0x2888], esp
push str.content_type:
call fcn.10004ddb
push ecx
mov byte [ebp - 4], 0xb
mov esi, esp
mov dword [ebp - 0x2894], esi
mov eax, dword [ebp - 0x285c]
add eax, 0xfffffff0
push eax
call fcn.1000511f
pop ecx
add eax, 0x10
mov edx, ebx
mov dword [esi], eax
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.10007c8e
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x100082a7
mov esi, str.Content_Type:_application_x_www_form_urlencoded_charseteuc_kr_r_n
push esi
call fcn.10005054
pop ecx
push eax
push esi
lea ecx, [ebp - 0x285c]
call fcn.10005440
mov esi, 0x101c7e54
push esi
call fcn.10005054
pop ecx
push eax
push esi
lea ecx, [ebp - 0x285c]
call fcn.10005440
mov esi, dword [ebp - 0x285c]
xor ecx, ecx
mov eax, dword [esi - 0xc]
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.10166eab
mov dword [ebp - 0x2884], eax
mov edx, esi
pop ecx
sub eax, esi
mov cl, byte [edx]
mov byte [eax + edx], cl
inc edx
test cl, cl
jne 0x100082e6
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov eax, dword [eax - 0xc]
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.10166eab
mov edx, eax
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [ebp - 0x2878], edx
mov ebx, edx
mov cl, byte [eax]
inc eax
mov byte [ebx], cl
inc ebx
test cl, cl
jne 0x10008316
mov ebx, edx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10008325
sub ebx, ecx
jmp 0x10008512
test eax, eax
je 0x1000836e
push 0x101c7e54
push eax
lea eax, [ebp - 0x2878]
push eax
call fcn.10004c89
add esp, 0xc
push eax
lea ecx, [ebp - 0x285c]
mov byte [ebp - 4], 0xc
call fcn.1000506e
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2878]
add ecx, 0xfffffff0
call fcn.10003bf1
push ecx
mov ecx, esp
mov dword [ebp - 0x2888], esp
push str.content_type:
call fcn.10004ddb
push ecx
mov byte [ebp - 4], 0xd
mov ebx, esp
mov dword [ebp - 0x2878], ebx
mov esi, dword [ebp - 0x285c]
lea eax, [esi - 0x10]
push eax
call fcn.1000511f
pop ecx
add eax, 0x10
xor ecx, ecx
mov dword [ebx], eax
mov edx, ecx
mov byte [ebp - 4], 9
call fcn.10007c8e
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x100083d6
mov esi, str.Content_Type:_application_x_www_form_urlencoded__Accept:_text_plain_r_n
push esi
call fcn.10005054
pop ecx
push eax
push esi
lea ecx, [ebp - 0x285c]
call fcn.10005440
mov esi, dword [ebp - 0x285c]
push ecx
mov ecx, esp
mov dword [ebp - 0x2888], esp
push 0x101c7f18
call fcn.10004ddb
push ecx
mov ebx, esp
mov byte [ebp - 4], 0xe
add esi, 0xfffffff0
mov dword [ebp - 0x2878], ebx
push esi
call fcn.1000511f
add eax, 0x10
mov dword [ebx], eax
xor eax, eax
pop ecx
mov edx, eax
mov byte [ebp - 4], 9
mov ecx, eax
call fcn.10007c8e
mov ebx, dword [ebp - 0x2884]
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x100084a5
push ecx
mov edx, ebx
lea ecx, [ebp - 0x2888]
call fcn.10007471
push eax
lea eax, [ebp - 0x2884]
mov byte [ebp - 4], 0xf
push str.Content_length:
push eax
call fcn.10004c30
push str._r_n_r_n
push eax
lea eax, [ebp - 0x2878]
mov byte [ebp - 4], 0x10
push eax
call fcn.10004c89
add esp, 0x1c
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x285c]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.10005440
mov ecx, dword [ebp - 0x2878]
lea ecx, [ecx - 0x10]
call fcn.10003bf1
mov ecx, dword [ebp - 0x2884]
lea ecx, [ecx - 0x10]
call fcn.10003bf1
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2888]
lea ecx, [ecx - 0x10]
call fcn.10003bf1
mov esi, 0x101c7e54
push esi
call fcn.10005054
pop ecx
push eax
push esi
lea ecx, [ebp - 0x285c]
call fcn.10005440
mov esi, dword [ebp - 0x285c]
xor ecx, ecx
mov eax, dword [esi - 0xc]
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.10166eab
pop ecx
mov edx, eax
mov dword [ebp - 0x2884], eax
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x100084e6
push ebx
call fcn.10166eab
push ebx
push dword [ebp - 0x2894]
mov dword [ebp - 0x2878], eax
push eax
call fcn.1015ff80
mov edx, dword [ebp - 0x2878]
add esp, 0x10
mov ecx, dword [ebp - 0x2884]
lea eax, [ecx + 1]
mov dword [ebp - 0x2888], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008521
sub ecx, dword [ebp - 0x2888]
push ebx
push edx
push ecx
push dword [ebp - 0x2884]
push dword [ebp - 0x288c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push dword [ebp - 0x2884]
mov ebx, eax
call fcn.1016302f
mov eax, dword [ebp - 0x2878]
push eax
call fcn.1016302f
pop ecx
pop ecx
test ebx, ebx
jne 0x1000859b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x288c]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push dword [ebp - 0x2890]
call ebx
push dword [ebp - 0x289c]
call ebx
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.10003bf1
mov esi, dword [ebp - 0x2864]
jmp 0x100087f0
xor ebx, ebx
mov dword [ebp - 0x2874], 0x40
push ebx
lea eax, [ebp - 0x2874]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x13
push dword [ebp - 0x288c]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10008568
lea edx, [ebp - 0x50]
mov ecx, ebx
movzx eax, byte [edx + ecx]
mov edx, 0x101c7f44
cmp al, byte [edx + ecx]
lea edx, [ebp - 0x50]
jne 0x10008568
inc ecx
cmp ecx, 4
jne 0x100085ca
cmp dword [ebp - 0x287c], ebx
je 0x100086b6
mov esi, 0x101c76a6
push esi
call fcn.10005054
pop ecx
push eax
push esi
mov esi, dword [ebp - 0x287c]
mov ecx, esi
call fcn.10005241
mov edi, dword [ebp - 0x288c]
push ebx
push ebx
lea eax, [ebp - 0x2878]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov eax, dword [ebp - 0x2878]
xor ecx, ecx
add eax, 2
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.10166eab
mov ecx, dword [ebp - 0x2878]
add ecx, 2
mov dword [ebp - 0x2884], eax
push ecx
push ebx
push eax
call fcn.1015fe20
add esp, 0x10
lea eax, [ebp - 0x287c]
push eax
push dword [ebp - 0x2878]
push dword [ebp - 0x2884]
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100086aa
mov ecx, dword [ebp - 0x2884]
mov eax, dword [ebp - 0x287c]
push ecx
mov byte [eax + ecx], bl
call fcn.10005054
pop ecx
push eax
push dword [ebp - 0x2884]
mov ecx, esi
call fcn.10005440
push dword [ebp - 0x2884]
call fcn.1016302f
pop ecx
cmp dword [ebp - 0x287c], ebx
jne 0x1000860e
mov esi, dword [ebp - 0x285c]
mov edi, dword [ebp - 0x2860]
push 0x2800
lea eax, [ebp - 0x2850]
push ebx
push eax
call fcn.1015fe20
add esp, 0xc
mov dword [ebp - 0x286c], 0x2800
cmp dword [ebp - 0x2898], ebx
je 0x1000873d
push 0x101c76a6
call fcn.10005054
pop ecx
mov ecx, dword [ebp - 0x2898]
push eax
push 0x101c76a6
call fcn.10005241
push ebx
lea eax, [ebp - 0x286c]
push eax
lea eax, [ebp - 0x2850]
push eax
push 0x80000016
push dword [ebp - 0x288c]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1000873d
lea eax, [ebp - 0x2850]
push eax
call fcn.10005054
pop ecx
mov ecx, dword [ebp - 0x2898]
push eax
lea eax, [ebp - 0x2850]
push eax
call fcn.10005440
cmp dword [ebp - 0x28a0], ebx
je 0x100087be
push 0x101c76a6
call fcn.10005054
pop ecx
mov ecx, dword [ebp - 0x28a0]
push eax
push 0x101c76a6
call fcn.10005241
mov eax, 0x2800
push eax
mov dword [ebp - 0x286c], eax
lea eax, [ebp - 0x2850]
push ebx
push eax
call fcn.1015fe20
add esp, 0xc
lea eax, [ebp - 0x286c]
push ebx
push eax
lea eax, [ebp - 0x2850]
push eax
push 0x16
push dword [ebp - 0x288c]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x100087be
lea eax, [ebp - 0x2850]
push eax
call fcn.10005054
pop ecx
mov ecx, dword [ebp - 0x28a0]
push eax
lea eax, [ebp - 0x2850]
push eax
call fcn.10005440
push dword [ebp - 0x288c]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push dword [ebp - 0x2890]
call ebx
push dword [ebp - 0x289c]
call ebx
xor ebx, ebx
inc ebx
jmp 0x10008588
push dword [ebp - 0x289c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [edi - 0x10]
call fcn.10003bf1
lea ecx, [esi - 0x10]
call fcn.10003bf1
mov ecx, dword [ebp - 0x2868]
lea ecx, [ecx - 0x10]
call fcn.10003bf1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10003bf1
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10003bf1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015dd7a
leave
ret