Function at 0x100026fb
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]
mov byte [ebp - 0x108], 0
push 0
push eax
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 0x10002933
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 0x10002927
cmp byte [0x10005bb0], 0
je 0x100027a3
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 0x100027d7
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 0x1000291b
push esi
call fcn.10002e3f
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 0x10002814
cmp dword [ebp - 4], 0
ja 0x100027f3
cmp byte [0x10005ad8], 0
mov eax, dword [0x10005ab4]
jne 0x10002863
cmp eax, 0x15
je 0x1000282c
cmp eax, 0x1a
jne 0x10002863
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 0x1000285b
mov dword [0x10005ab4], 4
jmp 0x100027d7
push 3
pop eax
mov dword [0x10005ab4], eax
cmp eax, 0x13
je 0x10002872
cmp eax, 0x16
je 0x10002872
cmp eax, 0x17
jne 0x1000287a
push 4
pop eax
mov dword [0x10005ab4], eax
cmp eax, 4
jne 0x10002912
push 0
lea eax, [ebp - 4]
mov byte [ebp - 0x108], 0
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 4], 0x100
push eax
push 0x1c
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
test eax, eax
je 0x100028cb
cmp byte [ebp - 0x108], 0
je 0x100028cb
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push eax
push 0x10005b30
call ebx
push 0
lea eax, [ebp - 4]
mov byte [ebp - 0x108], 0
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 4], 0x100
push eax
push 0x3d
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1000290d
cmp byte [ebp - 0x108], 0
je 0x1000290d
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 0x10002936
mov dword [0x10005ab4], 0x11
jmp 0x10002912
mov dword [0x10005ab4], 0x10
jmp 0x10002936
mov esi, dword [ebp - 8]
cmp dword [0x10005ab4], 4
jne 0x10002be3
xor edx, edx
mov eax, 0x80c000
cmp dword [ebp + 0xc], 4
cmove edx, eax
cmp byte [0x10005adf], 0
mov eax, 0x180
je 0x10002961
or edx, eax
xor ecx, ecx
mov eax, 0x4080000
cmp byte [0x10005add], cl
push 0
cmovne ecx, eax
xor esi, esi
cmp dword [0x10005ab8], esi
mov eax, 0x80000000
cmovne eax, esi
or eax, ecx
xor ecx, ecx
or eax, edx
or eax, 0x400000
push eax
xor eax, eax
cmp dword [0x100057e4], ecx
push eax
push eax
push eax
push dword [ebp + 0x10]
mov eax, str.POST
cmove eax, ecx
cmp byte [0x10005ae9], cl
cmove ebx, eax
cmp byte [0x10005ae8], cl
mov eax, 0x100041e0
cmove eax, ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x10002bd9
cmp byte [0x10005bb0], 0
je 0x10002a07
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]
mov ebx, 0xa0000000
push ebx
push 0xffffffffffffffff
push eax
push esi
call edi
jmp 0x10002a0c
mov ebx, 0xa0000000
cmp dword [0x100057e4], 0
je 0x10002a20
push ebx
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded
push esi
call edi
cmp byte [0x100059a8], 0
je 0x10002a34
push ebx
push 0xffffffffffffffff
push 0x100059a8
push esi
call edi
mov eax, dword [0x100057d8]
test eax, eax
je 0x10002a44
push ebx
push 0xffffffffffffffff
push eax
push esi
call edi
cmp byte [0x10005b30], 0
je 0x10002a74
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 0x10002aa5
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 0x10002aef
push esi
call fcn.10001e0a
pop ecx
test eax, eax
jne 0x10002afe
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 4]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
xor eax, eax
mov ecx, 0x180
cmp byte [0x10005adf], al
push edi
cmovne eax, ecx
or dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push esi
call fcn.10001e0a
pop ecx
test eax, eax
je 0x10002bc2
cmp byte [0x10005ae8], bl
jne 0x10002be3
push esi
call fcn.10002e3f
mov eax, dword [0x10005ab4]
pop ecx
cmp byte [0x10005ad8], bl
jne 0x10002b5a
cmp eax, 0x15
je 0x10002b28
cmp eax, 0x1a
jne 0x10002b5a
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 0x10002b52
mov dword [0x10005ab4], edi
jmp 0x10002aaa
push 3
pop eax
mov dword [0x10005ab4], eax
cmp eax, edi
jne 0x10002be3
mov eax, dword [0x10005ab8]
push ebx
test eax, eax
jne 0x10002ba7
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
lea eax, [ebp - 0x108]
push eax
push 5
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10002b9e
lea eax, [ebp - 0x108]
push eax
call fcn.10003b6f
mov dword [0x10005ac0], eax
jmp 0x10002be3
or dword [0x10005ac0], 0xffffffff
jmp 0x10002be3
push ebx
push ebx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
cmp eax, 0xffffffff
jne 0x10002be3
mov dword [0x10005ab4], 0xe
jmp 0x10002be3
push esi
call fcn.10002e3f
pop ecx
test al, al
jne 0x10002be3
mov dword [0x10005ab4], 0x11
jmp 0x10002be3
mov dword [0x10005ab4], 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret