Function at 0x47335e
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
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 [0x404fdc], 0
mov dword [ebp - 0x2c], 0x404fdc
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 0x473567
cmp word [esi], 0x68
je 0x4732bd
cmp word [esi], 0x48
jne 0x4732fc
cmp word [esi + 2], 0x74
je 0x4732cb
cmp word [esi + 2], 0x54
jne 0x4732fc
cmp word [esi + 4], 0x74
je 0x4732d9
cmp word [esi + 4], 0x54
jne 0x4732fc
cmp word [esi + 6], 0x70
je 0x4732e7
cmp word [esi + 6], 0x54
jne 0x4732fc
add esi, 8
cmp word [esi], 0x73
je 0x4732f6
cmp word [esi], 0x53
jne 0x4732f9
add esi, 2
add esi, 6
cmp word [esi], 0
je 0x473314
cmp word [esi], 0x2f
je 0x473314
cmp word [esi], 0x5c
je 0x473314
lodsw ax, word [esi]
stosw word es:[edi], ax
jmp 0x4732fc
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 0x47335e
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 0x473567
mov dword [ebp - 0x20], eax
push 0
push 0
push 3
call 0x47337e
and byte [eax], al
add byte [eax], al
nop
call 0x473388
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 0x473567
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 0x473567
push 0
push 0x400000
add byte [eax], al
push 0
push 0
push 0
push dword [ebp - 8]
call 0x4733dc
inc edi
add byte [ebp], al
push esp
add byte [eax], al
add bh, bh
jne 0x4733c3
call dword [sym.imp.wininet.dll_HttpOpenRequestW]
test eax, eax
je 0x473567
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 0x473567
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 0x473450
cmp eax, 0xfff
jle 0x473457
mov dword [ebp + 0xc], 0xfff
cmp dword [ebp - 4], 0
je 0x473539
cmp dword [ebp + 0xc], 0
jle 0x473539
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 0x473534
cmp dword [ebp - 4], 0
je 0x473534
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]
and eax, dword [eax]
mov ecx, dword [ebp - 4]
add dword [ebp - 0x18], ecx
cmp dword [ebp + 0xc], 0xfff
je 0x473534
sub dword [ebp + 0xc], ecx
jmp 0x473457
call 0x473548
or dword [eax], eax
and byte [eax], al
or eax, 0xa00
add bh, bh
jne 0x47351f
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 0x473572
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, dword [0x404f2c]
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 0x47359f
push dword [ebp - 0x28]
push 0
push dword [0x4012e4]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [ebp - 0x24], 0
je 0x4735ae
push dword [ebp - 0x24]
call dword [sym.imp.wininet.dll_InternetCloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x4735bd
push dword [ebp - 0x1c]
call dword [sym.imp.wininet.dll_InternetCloseHandle]
cmp dword [ebp - 0x20], 0
je 0x4735cc
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