Function at 0x10002738
Capabilities:
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push 0xff
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.10001000
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
add esp, 0xc
cmp byte [0x10005ae8], 0
mov edx, 0x4080000
mov ebx, str.HEAD
je 0x10002970
xor ecx, ecx
xor eax, eax
cmp byte [0x10005add], al
push ecx
cmovne eax, edx
or eax, 0x80400000
push eax
push ecx
push ecx
push ecx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x10002964
cmp byte [0x10005bb0], 0
je 0x100027e0
push 0x10005bb0
lea eax, [ebp - 0x108]
push str.Proxy_authorization:_basic__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push 0xa0000000
push 0xffffffffffffffff
push eax
push esi
call edi
cmp byte [0x10005b30], 0
je 0x10002814
push 0x10005b30
lea eax, [ebp - 0x108]
push str.Authorization:_basic__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push 0xa0000000
push 0xffffffffffffffff
push eax
push esi
call edi
xor eax, eax
push eax
push eax
push eax
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x10002958
push esi
call fcn.10002e7c
pop ecx
lea eax, [ebp - 4]
push eax
push 0x100
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10002851
cmp dword [ebp - 4], 0
ja 0x10002830
cmp byte [0x10005ad8], 0
mov eax, dword [0x10005ab4]
jne 0x100028a0
cmp eax, 0x15
je 0x10002869
cmp eax, 0x1a
jne 0x100028a0
push 0
push 7
push 0x2eee
push esi
push dword [0x10005ae4]
call dword [sym.imp.WININET.dll_InternetErrorDlg]
mov dword [ebp - 4], eax
cmp eax, 0x2f00
jne 0x10002898
mov dword [0x10005ab4], 4
jmp 0x10002814
push 3
pop eax
mov dword [0x10005ab4], eax
cmp eax, 0x13
je 0x100028af
cmp eax, 0x16
je 0x100028af
cmp eax, 0x17
jne 0x100028b7
push 4
pop eax
mov dword [0x10005ab4], eax
cmp eax, 4
jne 0x1000294f
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x1c
push esi
mov byte [ebp - 0x108], 0
mov dword [ebp - 4], 0x100
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
test eax, eax
je 0x10002908
cmp byte [ebp - 0x108], 0
je 0x10002908
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push eax
push 0x10005b30
call ebx
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x3d
push esi
mov byte [ebp - 0x108], 0
mov dword [ebp - 4], 0x100
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1000294a
cmp byte [ebp - 0x108], 0
je 0x1000294a
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push eax
push 0x10005bb0
call ebx
mov ebx, str.HEAD
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x10002973
mov dword [0x10005ab4], 0x11
jmp 0x1000294f
mov dword [0x10005ab4], 0x10
jmp 0x10002973
mov esi, dword [ebp - 8]
cmp dword [0x10005ab4], 4
jne 0x10002c20
xor edx, edx
cmp dword [ebp + 0xc], 4
mov eax, 0x80c000
cmove edx, eax
cmp byte [0x10005adf], 0
mov eax, 0x180
je 0x1000299e
or edx, eax
xor ecx, ecx
cmp byte [0x10005add], cl
mov eax, 0x4080000
cmovne ecx, eax
xor esi, esi
cmp dword [0x10005ab8], esi
mov eax, 0x80000000
cmovne eax, esi
or eax, ecx
or eax, edx
or eax, 0x400000
push 0
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x10]
xor ecx, ecx
cmp dword [0x100057e4], ecx
mov eax, str.POST
cmove eax, ecx
cmp byte [0x10005ae9], cl
cmove ebx, eax
cmp byte [0x10005ae8], cl
mov eax, 0x10004200
cmove eax, ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x10002c16
cmp byte [0x10005bb0], 0
je 0x10002a44
push 0x10005bb0
lea eax, [ebp - 0x108]
push str.Proxy_authorization:_basic__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ebx, 0xa0000000
push ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push esi
call edi
jmp 0x10002a49
mov ebx, 0xa0000000
cmp dword [0x100057e4], 0
je 0x10002a5d
push ebx
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded
push esi
call edi
cmp byte [0x100059a8], 0
je 0x10002a71
push ebx
push 0xffffffffffffffff
push 0x100059a8
push esi
call edi
mov eax, dword [0x100057d8]
test eax, eax
je 0x10002a81
push ebx
push 0xffffffffffffffff
push eax
push esi
call edi
cmp byte [0x10005b30], 0
je 0x10002ab1
push 0x10005b30
lea eax, [ebp - 0x108]
push str.Authorization:_basic__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push ebx
push 0xffffffffffffffff
push eax
push esi
call edi
cmp byte [0x10005ae8], 0
je 0x10002ae2
push dword [0x10005ac0]
lea eax, [ebp - 0x108]
push str.Content_Type:_octet_stream_nContent_Length:__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push ebx
push 0xffffffffffffffff
push eax
push esi
call edi
push 4
xor ebx, ebx
pop edi
cmp dword [ebp + 0xc], edi
jne 0x10002b2c
push esi
call fcn.10001dfa
pop ecx
test eax, eax
jne 0x10002b3b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x1f
push esi
mov dword [ebp - 8], edi
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
xor eax, eax
cmp byte [0x10005adf], al
mov ecx, 0x180
cmovne eax, ecx
or dword [ebp - 4], eax
push edi
lea eax, [ebp - 4]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push esi
call fcn.10001dfa
pop ecx
test eax, eax
je 0x10002bff
cmp byte [0x10005ae8], bl
jne 0x10002c20
push esi
call fcn.10002e7c
mov eax, dword [0x10005ab4]
pop ecx
cmp byte [0x10005ad8], bl
jne 0x10002b97
cmp eax, 0x15
je 0x10002b65
cmp eax, 0x1a
jne 0x10002b97
push ebx
push 7
push 0x2eee
push esi
push dword [0x10005ae4]
call dword [sym.imp.WININET.dll_InternetErrorDlg]
mov dword [ebp - 4], eax
cmp eax, 0x2f00
jne 0x10002b8f
mov dword [0x10005ab4], edi
jmp 0x10002ae7
push 3
pop eax
mov dword [0x10005ab4], eax
cmp eax, edi
jne 0x10002c20
mov eax, dword [0x10005ab8]
push ebx
test eax, eax
jne 0x10002be4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
push 5
push esi
mov dword [ebp - 4], 0x100
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10002bdb
lea eax, [ebp - 0x108]
push eax
call fcn.10003ba8
mov dword [0x10005ac0], eax
jmp 0x10002c20
or dword [0x10005ac0], 0xffffffff
jmp 0x10002c20
push ebx
push ebx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
cmp eax, 0xffffffff
jne 0x10002c20
mov dword [0x10005ab4], 0xe
jmp 0x10002c20
push esi
call fcn.10002e7c
pop ecx
test al, al
jne 0x10002c20
mov dword [0x10005ab4], 0x11
jmp 0x10002c20
mov dword [0x10005ab4], 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret