Function at 0x473594
Capabilities:
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ecx
push edx
push esi
push edi
lea edi, [ebp - 0x2c]
mov ecx, 0xb
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [0x4050f4], 0
mov dword [ebp - 0x2c], 0x4050f4
push 0x3000
push 8
push dword [0x4012e4]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
add eax, 0x1000
mov dword [ebp - 8], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x28]
cmp word [esi], 0
je 0x473773
cmp word [esi], 0x68
je 0x4734c9
cmp word [esi], 0x48
jne 0x473508
cmp word [esi + 2], 0x74
je 0x4734d7
cmp word [esi + 2], 0x54
jne 0x473508
cmp word [esi + 4], 0x74
je 0x4734e5
cmp word [esi + 4], 0x54
jne 0x473508
cmp word [esi + 6], 0x70
je 0x4734f3
cmp word [esi + 6], 0x54
jne 0x473508
add esi, 8
cmp word [esi], 0x73
je 0x473502
cmp word [esi], 0x53
jne 0x473505
add esi, 2
add esi, 6
cmp word [esi], 0
je 0x473520
cmp word [esi], 0x2f
je 0x473520
cmp word [esi], 0x5c
je 0x473520
lodsw ax, word [esi]
stosw word es:[edi], ax
jmp 0x473508
push esi
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_lstrcpyW]
mov word [edi], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0
push 0
push 0
push 0
nop
call 0x47356a
dec ecx
add byte [esi], ch
add byte gs:[eax + eax + 0x55], dh
add byte [edx], dl
dec esp
add byte [edi], ch
add byte [ecx], dh
add byte [esi], ch
add byte [eax], dh
add byte [eax], al
add bh, bh
adc eax, sym.imp.wininet.dll_InternetOpenW
test eax, eax
je 0x473773
mov dword [ebp - 0x20], eax
push 0
push 0
push 3
call 0x47358a
and byte [eax], al
add byte [eax], al
nop
call 0x473594
and byte [eax], al
add byte [eax], al
push 0x50
push dword [ebp - 0x28]
push eax
call dword [sym.imp.wininet.dll_InternetConnectW]
test eax, eax
je 0x473773
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x1770
push 4
lea edx, [ebp - 0x14]
push edx
push 6
push dword [ebp - 0x20]
call dword [sym.imp.wininet.dll_InternetSetOptionW]
test eax, eax
je 0x473773
push 0
push 0x400000
add byte [eax], al
push 0
push 0
push 0
push dword [ebp - 8]
call 0x4735e8
inc edi
add byte [ebp], al
push esp
add byte [eax], al
add bh, bh
jne 0x4735cf
call dword [sym.imp.wininet.dll_HttpOpenRequestW]
test eax, eax
je 0x473773
mov dword [ebp - 0x24], eax
push 0
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.wininet.dll_HttpSendRequestW]
test eax, eax
je 0x473773
push 0x20
push 8
push dword [0x4012e4]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x2c], eax
push 0x5000
push 8
push dword [0x4012e4]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
add eax, 0x2000
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
cmp eax, 1
jl 0x47365c
cmp eax, 0xfff
jle 0x473663
mov dword [ebp + 0xc], 0xfff
cmp dword [ebp - 4], 0
je 0x473745
cmp dword [ebp + 0xc], 0
jle 0x473745
push 0x5000
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_RtlZeroMemory]
lea edx, [ebp - 4]
push edx
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.wininet.dll_InternetReadFile]
cmp eax, 0
je 0x473740
cmp dword [ebp - 4], 0
je 0x473740
push 0x100000
push dword [ebp - 4]
push 0
push dword [ebp - 0x10]
call dword [sym.imp.shlwapi.dll_UrlUnescapeA]
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push eax
push dword [ebp - 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_lstrlenW]
mov ecx, eax
add ecx, 1
add ecx, ecx
push ecx
push dword [ebp - 0x2c]
push 0
push dword [0x4012e4]
call dword [sym.imp.kernel32.dll_HeapSize]
pop ecx
add ecx, eax
push ecx
push dword [ebp - 0x2c]
push 8
push dword [0x4012e4]
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0xc]
push eax
call dword [sym.imp.kernel32.dll_lstrcatW]
mov ecx, dword [ebp - 4]
add dword [ebp - 0x18], ecx
cmp dword [ebp + 0xc], 0xfff
and al, 0x40
add byte [ebx + 0x4d01fc4d], cl
call 0xff53b4b9
sldt word [eax]
je 0x473740
sub dword [ebp + 0xc], ecx
jmp 0x473663
call 0x473754
or dword [eax], eax
and byte [eax], al
or eax, 0xa00
add bh, bh
jne 0x47372b
call dword [sym.imp.shlwapi.dll_StrTrimW]
push dword [ebp - 0x10]
push 0
push dword [0x4012e4]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, 1
cmp eax, 0
jne 0x47377e
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, dword [0x405044]
push eax
pop dword [edx + 0x44]
add edx, 0x58
push dword [ebp - 0x18]
pop dword [edx + 0x44]
add edx, 0x58
cmp dword [ebp - 0x28], 0
je 0x4737ab
push dword [ebp - 0x28]
push 0
push dword [0x4012e4]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [ebp - 0x24], 0
je 0x4737ba
push dword [ebp - 0x24]
call dword [sym.imp.wininet.dll_InternetCloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x4737c9
push dword [ebp - 0x1c]
call dword [sym.imp.wininet.dll_InternetCloseHandle]
cmp dword [ebp - 0x20], 0
je 0x4737d8
push dword [ebp - 0x20]
call dword [sym.imp.wininet.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop edx
pop ecx
leave
ret 8