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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a5f1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1164
call fcn.0044b9a0
mov eax, dword [0x479548]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
push 0xf
pop esi
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x1070]
mov dword [ebp - 0x1058], esi
call fcn.00414e57
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x1038]
mov dword [ebp - 0x1020], esi
call fcn.00414e57
push ebx
lea ecx, [ebp - 0x1054]
mov dword [ebp - 0x103c], esi
call fcn.00414e57
push ebx
lea ecx, [ebp - 0x108c]
mov dword [ebp - 0x1074], esi
call fcn.00414e57
push 6
push ebx
push edi
lea esi, [ebp - 0x10bc]
mov byte [ebp - 4], 3
call fcn.00416752
push str.https:
mov esi, eax
mov byte [ebp - 4], 4
call fcn.0040b573
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x10bc]
mov byte [ebp - 0x108d], al
mov byte [ebp - 4], 3
call fcn.00414e73
cmp byte [ebp - 0x108d], bl
je 0x415553
mov byte [ebp - 0x108d], 1
jmp 0x41559f
push 5
push ebx
push edi
lea esi, [ebp - 0x10bc]
call fcn.00416752
push str.http:
mov esi, eax
mov byte [ebp - 4], 5
call fcn.0040b573
pop ecx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x10bc]
mov byte [ebp - 0x108d], al
mov byte [ebp - 4], 3
call fcn.00414e73
cmp byte [ebp - 0x108d], bl
je 0x415ac1
mov byte [ebp - 0x108d], bl
push 0x4699f4
push edi
call fcn.00416735
cmp eax, 0xffffffff
je 0x415abe
push 0xffffffffffffffff
add eax, 2
push eax
push edi
lea esi, [ebp - 0x10bc]
call fcn.00416752
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x1070]
mov byte [ebp - 4], 6
call fcn.00414cef
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00414e73
mov esi, 0x46929c
push esi
lea eax, [ebp - 0x1070]
push eax
call fcn.00416735
mov dword [ebp - 0x1094], eax
cmp eax, 0xffffffff
je 0x41570f
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x1070]
push eax
lea esi, [ebp - 0x10bc]
call fcn.00416752
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x1038]
mov byte [ebp - 4], 7
call fcn.00414cef
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00414e73
push dword [ebp - 0x1094]
lea eax, [ebp - 0x1070]
push ebx
push eax
lea esi, [ebp - 0x10bc]
call fcn.00416752
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x1070]
mov byte [ebp - 4], 8
call fcn.00414cef
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00414e73
push 0x4699f8
lea eax, [ebp - 0x1038]
push eax
call fcn.00416735
mov dword [ebp - 0x1094], eax
cmp eax, 0xffffffff
je 0x415702
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp - 0x1038]
push eax
lea esi, [ebp - 0x10bc]
call fcn.00416752
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x1054]
mov byte [ebp - 4], 9
call fcn.00414cef
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00414e73
push dword [ebp - 0x1094]
lea eax, [ebp - 0x1038]
push ebx
push eax
lea esi, [ebp - 0x10bc]
call fcn.00416752
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x1038]
mov byte [ebp - 4], 0xa
call fcn.00414cef
push ebx
push 1
mov ecx, esi
call fcn.00414e73
jmp 0x41571b
push 0x468bc4
lea ecx, [ebp - 0x1054]
jmp 0x415716
push esi
lea ecx, [ebp - 0x1038]
call fcn.00414a0f
push ebx
push ebx
push ebx
push ebx
push str.HTTP_Request
mov dword [ebp - 0x1094], ebx
mov dword [ebp - 0x1098], ebx
mov byte [ebp - 4], 0xb
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x10a0], eax
cmp eax, ebx
jne 0x41575f
mov dword [ebp - 0x10d8], str.InternetOpen_Error
push 0x471e80
lea eax, [ebp - 0x10d8]
push eax
call fcn.0043f0fc
mov eax, dword [ebp - 0x106c]
xor ecx, ecx
cmp byte [ebp - 0x108d], bl
push 0x10
sete cl
pop esi
dec ecx
and ecx, 0x16b
add ecx, 0x50
cmp dword [ebp - 0x1058], esi
jae 0x41578b
lea eax, [ebp - 0x106c]
push ebx
push ebx
push 3
push ebx
push ebx
push ecx
push eax
push dword [ebp - 0x10a0]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x1094], eax
cmp eax, ebx
jne 0x4157c0
mov dword [ebp - 0x10e4], str.InternetConnect_Error
push 0x471e80
lea eax, [ebp - 0x10e4]
jmp 0x415759
movzx eax, byte [ebp - 0x108d]
mov ecx, dword [ebp - 0x1034]
neg eax
sbb eax, eax
and eax, 0x800000
cmp dword [ebp - 0x1020], esi
jae 0x4157e4
lea ecx, [ebp - 0x1034]
push ebx
push eax
push ebx
push ebx
push ebx
push ecx
push str.POST
push dword [ebp - 0x1094]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x1098], eax
cmp eax, ebx
jne 0x41581f
mov dword [ebp - 0x10dc], str.HttpOpenRequest_Error
push 0x471e80
lea eax, [ebp - 0x10dc]
jmp 0x415759
cmp dword [ebp - 0x1040], ebx
je 0x415991
push dword [ebp - 0x1040]
lea eax, [ebp - 0x10b0]
push eax
call fcn.00406cba
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x1050]
cmp dword [ebp - 0x103c], esi
jae 0x415855
lea eax, [ebp - 0x1050]
push dword [ebp - 0x1040]
push eax
push dword [ebp - 0x10ac]
call fcn.0043cbf0
mov eax, dword [ebp - 0x10a8]
sub eax, dword [ebp - 0x10ac]
mov ecx, dword [edi + 0x30]
add esp, 0xc
cmp dword [edi + 0x34], esi
jb 0x415883
mov edx, dword [edi + 0x20]
jmp 0x415886
lea edx, [edi + 0x20]
push eax
push dword [ebp - 0x10ac]
push ecx
push edx
push dword [ebp - 0x1098]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4158b9
mov dword [ebp - 0x10ec], str.HttpSendRequest_Error
push 0x471e80
lea eax, [ebp - 0x10ec]
jmp 0x415759
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x10ac], ebx
je 0x4158d1
push dword [ebp - 0x10ac]
call fcn.0043c790
pop ecx
push ebx
lea eax, [ebp - 0x10d0]
push eax
lea eax, [ebp - 0x101c]
push eax
push 5
push dword [ebp - 0x1098]
mov dword [ebp - 0x10d0], 0x1000
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x101c]
push eax
lea ecx, [ebp - 0x10bc]
call fcn.00414a2c
lea eax, [ebp - 0x1174]
push eax
lea ecx, [ebp - 0x10bc]
mov byte [ebp - 4], 0xd
call fcn.00416961
push ebx
push 1
lea ecx, [ebp - 0x10bc]
mov byte [ebp - 4], 0xf
call fcn.00414e73
lea eax, [ebp - 0x109c]
push eax
lea eax, [ebp - 0x1174]
push eax
call fcn.00416780
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 8], 6
je 0x415957
mov dword [ebp - 0x109c], ebx
mov eax, dword [ebp - 0x109c]
inc eax
push eax
lea eax, [ebp - 0x10cc]
push eax
call fcn.00406cba
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x109c], ebx
jne 0x4159d3
mov dword [ebp - 0x10e0], str.dwContentSize_is_zero
push 0x471e80
lea eax, [ebp - 0x10e0]
jmp 0x415759
mov ecx, dword [edi + 0x30]
cmp dword [edi + 0x34], esi
jb 0x41599e
mov eax, dword [edi + 0x20]
jmp 0x4159a1
lea eax, [edi + 0x20]
push ebx
push ebx
push ecx
push eax
push dword [ebp - 0x1098]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4158d1
mov dword [ebp - 0x10d4], str.HttpSendRequest_Error
push 0x471e80
lea eax, [ebp - 0x10d4]
jmp 0x415759
lea eax, [ebp - 0x10e8]
push eax
push dword [ebp - 0x109c]
push dword [ebp - 0x10c8]
push dword [ebp - 0x1098]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebp - 0x10e8]
mov eax, dword [ebp - 0x10c8]
mov byte [eax + ecx], bl
push dword [ebp - 0x10c8]
lea ecx, [ebp - 0x108c]
call fcn.00414a0f
cmp dword [ebp - 0x10c8], ebx
je 0x415a26
push dword [ebp - 0x10c8]
call fcn.0043c790
pop ecx
lea eax, [ebp - 0x1174]
mov dword [ebp - 0x10c8], ebx
mov dword [ebp - 0x10c4], ebx
mov dword [ebp - 0x10c0], ebx
mov byte [ebp - 4], 0xb
call fcn.00403bdf
push dword [ebp - 0x1098]
mov dword [ebp - 4], 3
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1094]
call esi
push dword [ebp - 0x10a0]
call esi
push 0xffffffffffffffff
lea eax, [ebp - 0x108c]
push ebx
push eax
cmp byte [edi + 0x38], bl
je 0x415a8e
mov ecx, 0x47b530
call fcn.00414cef
mov esi, edi
call fcn.00415450
jmp 0x415abe
lea ecx, [edi + 0x3c]
call fcn.00414cef
jmp 0x415abe
xor esi, esi
inc esi
push ebx
push esi
lea ecx, [ebp - 0x108c]
call fcn.00414e73
push ebx
push esi
lea ecx, [ebp - 0x1054]
call fcn.00414e73
push ebx
push esi
lea ecx, [ebp - 0x1038]
call fcn.00414e73
push ebx
push esi
lea ecx, [ebp - 0x1070]
call fcn.00414e73
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0043c781
leave
ret 4