Function at 0x468ed0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9794
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4db06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x4f5864]
cmp eax, dword [esi + 4]
jle 0x468f4c
push 0x4f5864
call fcn.00487731
add esp, 4
cmp dword [0x4f5864], 0xffffffff
jne 0x468f4c
mov ecx, str.wininet.dll
mov dword [ebp - 4], 0
call fcn.00461d50
push 0x4f5864
mov dword [ebp - 4], 0xffffffff
call fcn.004876e7
add esp, 4
push 0x1400000
push 0x8000
lea ecx, [ebp - 0x4c]
call fcn.0045ec10
push 0xffffffffffffffff
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
push ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xffffffff
call fcn.0043e7a0
push 0xffffffffffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
push edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xffffffff
call fcn.0043e7a0
mov byte [ebp - 4], 3
mov ebx, dword [ebp + 0x18]
test ebx, ebx
jne 0x468fc7
mov eax, dword [0x4e042c]
cmp eax, 7
jae 0x468fc2
cmp eax, 6
jne 0x468fbe
cmp dword [0x4e0430], 1
jae 0x468fc2
xor ebx, ebx
jmp 0x468fc7
mov ebx, 4
mov esi, dword [ebp - 0x30]
test bl, 4
mov ecx, 0x1bb
mov eax, 0x50
cmovne eax, ecx
mov edi, 0x4c1430
mov dword [ebp - 0x14], eax
test esi, esi
mov eax, edi
cmovne eax, esi
push 0x4bc304
push eax
call fcn.00489030
add esp, 8
test eax, eax
je 0x46905b
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0
push eax
lea eax, [ebp - 0x14]
test esi, esi
push eax
lea eax, [ebp - 0x38]
mov ecx, edi
cmovne ecx, esi
lea edx, [ebp - 0x30]
push eax
call fcn.00469790
add esp, 0xc
test eax, eax
jne 0x46904a
push 0xffffffffffffffff
call dword [sym.imp.KERNEL30.dll_GetLastError]
push eax
push str.URL_parse_err__d_n
call fcn.004631c0
mov ecx, dword [ebp + 0x14]
add esp, 8
push eax
call fcn.0043e7a0
xor esi, esi
jmp 0x469418
cmp dword [ebp + 0x18], 0
mov esi, dword [ebp - 0x30]
je 0x469058
or ebx, 4
jmp 0x46905b
and ebx, 0xfffffffb
test bl, 0x20
mov dword [ebp - 0x10], 0
mov ecx, str.Content_Type:_application_json
mov dword [ebp - 0x24], 4
mov eax, str.Content_Type:_application_x_www_form_urlencoded
mov dword [ebp - 0x1c], 0
cmove eax, ecx
mov ecx, ebx
mov dword [ebp - 0x20], eax
and ecx, 4
mov eax, ebx
mov dword [ebp + 0x18], ecx
and al, 8
movzx edi, al
mov eax, ecx
neg edi
push 0
sbb edi, edi
or eax, 0xfffffd20
push 0
shl eax, 0x15
and edi, 0x3000
push 0
push 0
or edi, eax
call fcn.004699c0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x46914c
call dword [sym.imp.KERNEL30.dll_GetLastError]
push eax
push str.InternetOpen_err__d_n
call fcn.004631c0
mov ebx, dword [ebp + 0x14]
mov esi, eax
add esp, 8
mov dword [ebp + 0x18], esi
mov dword [ebx + 4], 0xffffffff
test esi, esi
je 0x4690f6
cmp esi, dword [ebx]
je 0x469415
mov eax, dword [ebx]
test eax, eax
je 0x46910b
push eax
call fcn.00487954
add esp, 4
mov dword [ebx], 0
mov dword [ebx + 4], 0xffffffff
test esi, esi
je 0x469415
mov edi, esi
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x469120
sub edi, ecx
lea eax, [edi + 1]
push eax
call fcn.00487989
push edi
push dword [ebp + 0x18]
mov esi, eax
push esi
call fcn.00489a20
mov byte [esi + edi], 0
add esp, 0x10
mov dword [ebx], esi
jmp 0x469415
cmp dword [0x4e042c], 0xa
jb 0x469174
cmp dword [ebp + 0x18], 0
je 0x469174
push 4
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], 2
push ecx
push 0x94
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x14]
test esi, esi
mov eax, 0x4c1430
cmovne eax, esi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, eax
mov dword [ebp - 0x28], edx
test edx, edx
jne 0x4691c4
push 0xffffffffffffffff
call dword [sym.imp.KERNEL30.dll_GetLastError]
push eax
push str.InternetConnect_err__d_n
call fcn.004631c0
mov edi, dword [ebp + 0x14]
add esp, 8
mov ecx, edi
push eax
call fcn.0043e7a0
jmp 0x4693d4
mov ecx, dword [ebp - 0x38]
mov eax, 0x4c1430
push 0
push edi
push 0
test ecx, ecx
push 0
cmovne eax, ecx
test bl, 2
push str.HTTP_1.1
push eax
mov ecx, str.POST
mov eax, 0x4bc334
cmove eax, ecx
push eax
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp + 0x18], edi
test edi, edi
jne 0x469225
push 0xffffffffffffffff
call dword [sym.imp.KERNEL30.dll_GetLastError]
push eax
push str.HttpOpenRequest_err__d_n
call fcn.004631c0
mov edi, dword [ebp + 0x14]
add esp, 8
mov ecx, edi
push eax
call fcn.0043e7a0
jmp 0x4693cb
mov ecx, dword [ebp - 0x38]
mov eax, 0x4c1430
push dword [ebp + 8]
test ecx, ecx
mov edx, eax
cmovne edx, ecx
mov ecx, eax
test esi, esi
mov eax, 0x12c
cmovne ecx, esi
cmp dword [ebp + 0xc], eax
cmovl eax, dword [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push edx
push ecx
push str.host_s_path_s_data_len_d_data_.s_n
call fcn.0045f780
add esp, 0x18
call fcn.00469a60
cmp byte [eax], 0
je 0x469276
push 0xa0000000
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov edx, dword [ebp - 0x20]
mov ecx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x469280
push dword [ebp + 0xc]
sub ecx, edi
mov edi, dword [ebp + 0x18]
push dword [ebp + 8]
push ecx
push edx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4692e2
call dword [sym.imp.KERNEL30.dll_GetLastError]
mov ecx, eax
cmp ecx, 0x2f7d
jne 0x4692c2
mov al, bl
xor edx, edx
and al, 0x14
mov edi, 1
cmp al, 4
cmove edx, edi
mov dword [ebp - 0x1c], edx
push 0xffffffffffffffff
push ecx
push str.HttpSendRequest_err__d_n
call fcn.004631c0
mov edi, dword [ebp + 0x14]
add esp, 8
mov ecx, edi
push eax
call fcn.0043e7a0
jmp 0x4693c2
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
push dword [ebp - 0x10]
push str.status_d_n
call fcn.0045f780
mov esi, dword [ebp - 0x44]
add esp, 8
mov edi, dword [ebp - 0x48]
nop
mov eax, edi
mov dword [ebp - 0x14], 0
sub eax, esi
cmp eax, 0x8000
jae 0x469339
push 0x8000
lea ecx, [ebp - 0x4c]
call fcn.0045ed40
test eax, eax
je 0x46938e
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
lea eax, [ebp - 0x14]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp - 0x4c]
add eax, esi
push eax
push dword [ebp + 0x18]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x46939e
mov ecx, dword [ebp - 0x14]
lea eax, [esi + ecx]
cmp eax, edi
jbe 0x469360
int3
add esi, ecx
mov dword [ebp - 0x44], esi
test ecx, ecx
jne 0x469310
mov edi, dword [ebp + 0x10]
lea eax, [esi + 1]
push eax
push dword [ebp - 0x4c]
mov ecx, edi
call fcn.0040e250
mov eax, dword [edi]
mov byte [esi + eax], 0
cmp esi, dword [edi + 4]
jbe 0x469386
int3
mov dword [edi + 8], esi
mov edi, dword [ebp + 0x14]
jmp 0x4693bf
push 0xffffffffffffffff
call dword [sym.imp.KERNEL30.dll_GetLastError]
push eax
push str.vbuf_grow_err__d_n
jmp 0x4693ac
push 0xffffffffffffffff
call dword [sym.imp.KERNEL30.dll_GetLastError]
push eax
push str.InternetReadFile_err__d_n
call fcn.004631c0
mov edi, dword [ebp + 0x14]
add esp, 8
mov ecx, edi
push eax
call fcn.0043e7a0
mov esi, dword [ebp - 0x30]
push dword [ebp + 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x469415
mov ecx, dword [ebp - 0x38]
and ebx, 0xfffffffb
or ebx, 0x10
mov eax, 0x4c1430
push ebx
test ecx, ecx
mov edx, eax
push edi
push dword [ebp + 0x10]
cmovne edx, ecx
test esi, esi
push dword [ebp + 0xc]
cmovne eax, esi
push dword [ebp + 8]
mov ecx, eax
call fcn.00468ed0
add esp, 0x14
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x469428
push eax
call fcn.00487954
add esp, 4
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x469438
push ecx
call fcn.00487954
add esp, 4
lea ecx, [ebp - 0x4c]
call fcn.0045ec60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret