Function at 0x100138c0
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 0x1001baf9
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x10025018]
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 esi, ecx
xor edi, edi
mov dword [ebp - 0x468], esi
mov dword [ebp - 0x470], edi
mov dword [ebp - 4], 2
cmp dword [ebp + 0x54], 0x10
mov eax, dword [ebp + 0x40]
jae 0x10013911
lea eax, [ebp + 0x40]
push edi
push edi
push edi
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x470], eax
cmp eax, edi
jne 0x100139c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, str.InternetOpenW_failed_hInternet_:
mov ebx, 0xf
mov dword [esi + 0x10], edi
mov ecx, eax
mov dword [esi + 0x14], ebx
mov byte [esi], 0
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10013950
mov esi, dword [ebp - 0x468]
sub ecx, edi
mov edi, ecx
call fcn.100011b0
cmp dword [ebp + 0x1c], 0x10
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x1001397b
mov eax, dword [ebp + 8]
push eax
call edi
add esp, 4
mov esi, 0x10
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp dword [ebp + 0x38], esi
jb 0x1001399c
mov ecx, dword [ebp + 0x24]
push ecx
call edi
add esp, 4
cmp dword [ebp + 0x54], esi
mov dword [ebp + 0x34], 0
mov byte [ebp + 0x24], 0
mov dword [ebp + 0x38], ebx
jb 0x100139b8
mov edx, dword [ebp + 0x40]
push edx
call edi
add esp, 4
mov eax, dword [ebp - 0x468]
jmp 0x10014017
mov edx, 7
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x434], edx
mov dword [ebp - 0x438], eax
mov word [ebp - 0x448], cx
mov byte [ebp - 4], 3
xor ebx, ebx
cmp dword [ebp + 0x18], edi
jbe 0x10013ad4
mov edi, edi
cmp dword [ebp + 0x1c], 0x10
mov ecx, dword [ebp + 8]
jae 0x100139fc
lea ecx, [ebp + 8]
movsx cx, byte [ecx + ebx]
movzx esi, cx
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x10013ac9
lea edi, [eax + 1]
cmp edi, 0x7ffffffe
ja 0x10013ac9
cmp edx, edi
jae 0x10013a35
push eax
push edi
lea edx, [ebp - 0x448]
push edx
call fcn.100165d0
jmp 0x10013a55
test edi, edi
jne 0x10013a63
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x438], edi
cmp edx, 8
jae 0x10013a50
lea eax, [ebp - 0x448]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x438]
mov edx, dword [ebp - 0x434]
test edi, edi
setne cl
test cl, cl
je 0x10013aac
mov ecx, dword [ebp - 0x448]
cmp edx, 8
jae 0x10013a7b
lea ecx, [ebp - 0x448]
mov word [ecx + eax*2], si
cmp dword [ebp - 0x434], 8
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x438], edi
jae 0x10013a9a
lea eax, [ebp - 0x448]
xor edx, edx
mov word [eax + edi*2], dx
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x438]
inc ebx
cmp ebx, dword [ebp + 0x18]
jb 0x100139f0
cmp edx, 8
jb 0x10013ad4
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x46c], eax
jmp 0x10013ae0
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x46c], ecx
mov edx, 7
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x41c], eax
mov word [ebp - 0x42c], cx
xor ebx, ebx
mov byte [ebp - 4], 4
cmp dword [ebp + 0x34], ebx
jbe 0x10013bd9
jmp 0x10013b10
cmp dword [ebp + 0x38], 0x10
mov ecx, dword [ebp + 0x24]
jae 0x10013b1c
lea ecx, [ebp + 0x24]
movsx cx, byte [ecx + ebx]
movzx esi, cx
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x10013ac9
lea edi, [eax + 1]
cmp edi, 0x7ffffffe
ja 0x10013ac9
cmp edx, edi
jae 0x10013b4d
push eax
push edi
lea edx, [ebp - 0x42c]
push edx
call fcn.100165d0
jmp 0x10013b6d
test edi, edi
jne 0x10013b7b
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x41c], edi
cmp edx, 8
jae 0x10013b68
lea eax, [ebp - 0x42c]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x41c]
mov edx, dword [ebp - 0x418]
test edi, edi
setne cl
test cl, cl
je 0x10013bc4
mov ecx, dword [ebp - 0x42c]
cmp edx, 8
jae 0x10013b93
lea ecx, [ebp - 0x42c]
mov word [ecx + eax*2], si
cmp dword [ebp - 0x418], 8
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x41c], edi
jae 0x10013bb2
lea eax, [ebp - 0x42c]
xor edx, edx
mov word [eax + edi*2], dx
mov edx, dword [ebp - 0x418]
mov eax, dword [ebp - 0x41c]
inc ebx
cmp ebx, dword [ebp + 0x34]
jb 0x10013b10
mov edi, dword [ebp - 0x42c]
cmp edx, 8
jae 0x10013bdf
lea edi, [ebp - 0x42c]
mov eax, dword [ebp - 0x46c]
mov ecx, dword [ebp - 0x470]
push 0
push 0
push 3
push 0
push 0
push 0x50
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
jne 0x10013cde
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x468]
mov ebx, 0xf
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], 0
add eax, str.InternetConnectW_failed_hConnect__NULL_:
mov byte [ecx], 0
mov ecx, eax
lea edi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10013c30
mov esi, dword [ebp - 0x468]
sub ecx, edi
mov edi, ecx
call fcn.100011b0
cmp dword [ebp - 0x418], 8
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x10013c61
mov edx, dword [ebp - 0x42c]
push edx
call edi
add esp, 4
xor esi, esi
xor eax, eax
cmp dword [ebp - 0x434], 8
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], 7
jb 0x10013c91
mov ecx, dword [ebp - 0x448]
push ecx
call edi
add esp, 4
xor edx, edx
cmp dword [ebp + 0x1c], 0x10
mov word [ebp - 0x448], dx
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], 7
jb 0x10013cb9
mov eax, dword [ebp + 8]
push eax
call edi
add esp, 4
cmp dword [ebp + 0x38], 0x10
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x18], esi
mov byte [ebp + 8], 0
jb 0x10013cd2
mov ecx, dword [ebp + 0x24]
push ecx
call edi
add esp, 4
cmp dword [ebp + 0x54], 0x10
mov dword [ebp + 0x34], esi
jmp 0x100139a6
push 0
push 0
lea ecx, [ebp - 0x474]
push ecx
push 0
push 0
push edi
push 0x10020a28
push eax
mov dword [ebp - 0x474], str.text_
mov dword [ebp - 0x470], 0
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
jne 0x10013d44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x468]
mov ebx, 0xf
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], ebx
add eax, str.HttpOpenRequestW_failed_hRequest__NULL_:
mov byte [ecx], 0
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10013d38
jmp 0x10013c37
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x10013e4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x468]
mov ebx, 0xf
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], 0
add eax, str._bRequestSent____HttpSendRequestW_failed_with_error_code
mov byte [ecx], 0
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10013d83
mov esi, dword [ebp - 0x468]
sub ecx, edi
mov edi, ecx
call fcn.100011b0
cmp dword [ebp - 0x418], 8
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x10013db4
mov eax, dword [ebp - 0x42c]
push eax
call edi
add esp, 4
xor esi, esi
xor ecx, ecx
cmp dword [ebp - 0x434], 8
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], esi
mov word [ebp - 0x42c], cx
jb 0x10013de4
mov edx, dword [ebp - 0x448]
push edx
call edi
add esp, 4
xor eax, eax
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], esi
mov word [ebp - 0x448], ax
jb 0x10013e0c
mov ecx, dword [ebp + 8]
push ecx
call edi
add esp, 4
cmp dword [ebp + 0x38], 0x10
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x18], esi
mov byte [ebp + 8], 0
jb 0x10013e25
mov edx, dword [ebp + 0x24]
push edx
call edi
add esp, 4
cmp dword [ebp + 0x54], 0x10
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x34], esi
mov byte [ebp + 0x24], 0
jb 0x100139b8
mov eax, dword [ebp + 0x40]
push eax
call edi
mov eax, dword [ebp - 0x468]
add esp, 4
jmp 0x10014017
mov ebx, 0xf
mov dword [ebp - 0x450], ebx
mov dword [ebp - 0x454], 0
mov byte [ebp - 0x464], 0
lea ecx, [ebp - 0x46c]
push ecx
push 0x400
lea edx, [ebp - 0x410]
push edx
mov byte [ebp - 4], 5
push edi
mov dword [ebp - 0x46c], 0xffffffff
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x46c]
push eax
lea eax, [ebp - 0x410]
lea ecx, [ebp - 0x464]
call fcn.10014c20
mov esi, dword [ebp - 0x468]
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
lea ecx, [ebp - 0x464]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp esi, ecx
je 0x10013f3c
cmp dword [esi + 0x14], 0x10
jb 0x10013eda
mov edx, dword [esi]
push edx
call edi
add esp, 4
xor eax, eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], eax
mov byte [esi], al
cmp dword [ebp - 0x450], 0x10
jae 0x10013f1a
mov eax, dword [ebp - 0x454]
inc eax
push eax
lea ecx, [ebp - 0x464]
push ecx
push esi
call dword [sym.imp.MSVCR100.dll_memmove]
mov eax, dword [ebp - 0x454]
mov ecx, dword [ebp - 0x450]
add esp, 0xc
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x10013f51
mov edx, dword [ebp - 0x464]
mov ecx, dword [ebp - 0x450]
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x454]
mov dword [esi], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
jmp 0x10013f51
cmp dword [ebp - 0x450], 0x10
jb 0x10013f51
mov edx, dword [ebp - 0x464]
push edx
call edi
add esp, 4
cmp dword [ebp - 0x418], 8
mov dword [ebp - 0x450], ebx
mov dword [ebp - 0x454], 0
mov byte [ebp - 0x464], 0
jb 0x10013f7d
mov eax, dword [ebp - 0x42c]
push eax
call edi
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x434], 8
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x42c], cx
jb 0x10013faf
mov edx, dword [ebp - 0x448]
push edx
call edi
add esp, 4
xor eax, eax
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], 0
mov word [ebp - 0x448], ax
jb 0x10013fdb
mov ecx, dword [ebp + 8]
push ecx
call edi
add esp, 4
cmp dword [ebp + 0x38], 0x10
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x10013ff8
mov edx, dword [ebp + 0x24]
push edx
call edi
add esp, 4
cmp dword [ebp + 0x54], 0x10
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x34], 0
mov byte [ebp + 0x24], 0
jb 0x10014015
mov eax, dword [ebp + 0x40]
push eax
call edi
add esp, 4
mov eax, esi
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.10019ba5
mov esp, ebp
pop ebp
ret