Function at 0x414bf0
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 0x436278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x3424
call fcn.004269f0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
mov dword [ebp - 0x10], esp
je 0x414f6a
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x414f6a
mov dx, word [0x442578]
mov ecx, 0x7ff
xor eax, eax
lea edi, [ebp - 0x3432]
mov word [ebp - 0x3434], dx
mov word [ebp - 0x228], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x226]
mov word [ebp - 0x430], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42e]
lea edx, [ebp - 0x228]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x3434]
lea ecx, [ebp - 0x20]
push eax
push ecx
lea eax, [ebp - 0x430]
push edx
push eax
push esi
mov dword [ebp + 0xc], 0
call fcn.004149a0
add esp, 0x14
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
je 0x414f56
mov ecx, dword [ebp - 0x20]
push 0
push 0
push 3
push 0
push 0
lea edx, [ebp - 0x228]
push ecx
push edx
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x414f4f
push 0
push 0x4400040
push 0
push 0
lea ecx, [ebp - 0x3434]
push 0x43e6bc
push ecx
push 0x43e6b0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
test esi, esi
mov dword [ebp - 0x14], esi
je 0x414f45
push 0xa0000000
push 0xd
push 0x43e694
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x414f3e
mov edx, dword [ebp + 0x10]
push edx
push ebx
push 0x31
push 0x43e630
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x414d6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f88
jne 0x414d6e
mov dword [ebp + 0xc], 1
mov ebx, dword [ebp + 0x14]
jmp 0x414d76
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x414f3b
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x1434]
push eax
push 0x1000
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x414f3b
mov edx, dword [0x43e040]
mov byte [ebp + eax - 0x1434], 0
lea eax, [ebp - 0x1434]
mov dword [ebp + 8], edx
test eax, eax
je 0x414e31
lea ecx, [ebp - 0x1434]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x414e31
lea edx, [esi + esi + 0xe]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, edi
je 0x414e31
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], di
mov dword [eax + 4], esi
mov dword [eax + 8], esi
lea ecx, [esi + 1]
add eax, 0xc
cmp ecx, edi
mov dword [ebp + 8], eax
mov esi, eax
jne 0x414e0b
cmp eax, edi
jne 0x414e27
push ecx
push eax
lea eax, [ebp - 0x1434]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jle 0x414e27
mov word [esi + eax*2 - 2], di
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.004144b0
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov esi, dword [ecx - 8]
test esi, esi
je 0x414ec4
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
lea edi, [eax - 0xc]
cmp ecx, 1
jg 0x414e93
mov ecx, dword [eax - 8]
mov edx, dword [eax - 4]
lea ebx, [ecx + esi]
cmp ebx, edx
jg 0x414e90
lea edi, [esi + esi]
lea edx, [edx + edx + 2]
push edi
mov edi, dword [ebp + 8]
push edi
lea eax, [eax + ecx*2]
push edx
push eax
call fcn.004022a0
mov ebx, dword [ebp + 0x14]
add esp, 0x10
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
add ecx, esi
mov dword [eax - 8], ecx
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
mov word [eax + ecx*2], 0
jmp 0x414ec4
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov ecx, ebx
push edx
push esi
push eax
mov eax, dword [eax - 8]
push eax
call fcn.004153c0
test eax, eax
je 0x414ec4
cmp edi, dword [0x43e044]
je 0x414ec4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x414ec4
push edi
call fcn.0042329e
add esp, 4
mov eax, dword [ebp + 8]
mov edx, dword [0x43e044]
mov byte [ebp - 4], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x414d73
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x414d73
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call fcn.0042329e
add esp, 4
jmp 0x414d73
mov edi, dword [ebp - 0x18]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret