Function at 0x435220
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 0x4d099c
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x4fe080]
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 ebx, ecx
mov dword [ebp - 0x484], ebx
call fcn.00435120
xor edi, edi
mov dword [ebp - 0x488], 0
push edi
push edi
push edi
push edi
mov esi, eax
mov dword [ebp - 0x47c], 4
push 0x4d9464
mov dword [ebp - 0x490], esi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x494], eax
test eax, eax
je 0x4356d0
cmp dword [ebx + 0x28], 8
lea ecx, [ebx + 0x14]
jb 0x4352a1
mov ecx, dword [ecx]
push 0
push 0
push 3
push 0
push 0
push 0x50
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x48c], eax
test eax, eax
je 0x4356c4
xor eax, eax
mov dword [ebp - 0x414], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x428], ax
lea ecx, [ebp - 0x428]
lea eax, [ebx + 0x2c]
mov dword [ebp - 0x418], edi
push eax
call fcn.004114e0
push 4
xor eax, eax
mov dword [ebp - 4], 0
push 0x4d947c
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
call fcn.004116f0
cmp byte [ebx + 0x10], 0
mov byte [ebp - 4], 1
jne 0x435364
cmp dword [esi + 0x10], 0
jbe 0x435364
push 0x4d9488
lea ecx, [ebp - 0x428]
call fcn.004113b0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x428]
call fcn.004112e0
push 0x4d948c
lea ecx, [ebp - 0x440]
call fcn.004116a0
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x428]
push 1
cmovae ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], 8
push 0
cmovae eax, dword [ebp - 0x440]
push 0
push 0
push 0x4d9494
push ecx
push eax
push dword [ebp - 0x48c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp dword [ebp - 0x42c], 8
mov dword [ebp - 0x480], eax
jb 0x4353c4
push dword [ebp - 0x440]
call fcn.0047a557
add esp, 4
xor eax, eax
mov dword [ebp - 0x42c], 7
cmp dword [ebp - 0x414], 8
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
mov dword [ebp - 4], 0xffffffff
jb 0x4353ff
push dword [ebp - 0x428]
call fcn.0047a557
add esp, 4
xor eax, eax
mov dword [ebp - 0x414], 7
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
cmp dword [ebp - 0x480], eax
je 0x4356b6
cmp byte [ebx + 0x10], al
je 0x43559e
cmp dword [esi + 0x10], eax
jbe 0x43559e
push str.Content_Type:_application_x_www_form_urlencoded_n
lea ecx, [ebp - 0x478]
call fcn.0040f510
push str.Accept:___n
lea ecx, [ebp - 0x478]
mov dword [ebp - 4], 2
call fcn.004113b0
push str.Accept___Encoding:_gzip__deflate
lea ecx, [ebp - 0x478]
call fcn.004113b0
mov dword [ebp - 0x444], 0xf
mov dword [ebp - 0x448], 0
mov byte [ebp - 0x458], 0
mov edx, dword [esi + 0x14]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x43549c
mov ecx, dword [esi]
jmp 0x43549e
mov ecx, esi
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
cmp edx, 8
jb 0x4354ad
mov ecx, dword [esi]
jmp 0x4354af
mov ecx, esi
push eax
push ecx
lea ecx, [ebp - 0x458]
call fcn.00419b70
cmp dword [ebp - 0x444], 0x10
lea ecx, [ebp - 0x458]
push dword [ebp - 0x448]
cmovae ecx, dword [ebp - 0x458]
lea eax, [ebp - 0x478]
cmp dword [ebp - 0x464], 8
mov ebx, dword [ebp - 0x480]
cmovae eax, dword [ebp - 0x478]
push ecx
push dword [ebp - 0x468]
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp dword [ebp - 0x444], 0x10
mov dword [ebp - 0x488], eax
jb 0x43551c
push dword [ebp - 0x458]
call fcn.0047a557
add esp, 4
cmp dword [ebp - 0x464], 8
mov dword [ebp - 0x444], 0xf
mov dword [ebp - 0x448], 0
mov byte [ebp - 0x458], 0
mov dword [ebp - 4], 0xffffffff
jb 0x435555
push dword [ebp - 0x478]
call fcn.0047a557
add esp, 4
mov eax, dword [ebp - 0x488]
test eax, eax
je 0x4356a6
push 0
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x460], 0
push eax
lea eax, [ebp - 0x460]
mov dword [ebp - 0x45c], 4
push eax
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4355c0
xor al, al
jmp 0x43570b
mov ebx, dword [ebp - 0x480]
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x488], eax
jmp 0x43555b
lea eax, [ebp - 0x47c]
xor esi, esi
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x47c]
test eax, eax
je 0x43565d
add eax, edi
push eax
call fcn.004780a0
add esp, 4
mov ebx, eax
test edi, edi
je 0x435619
mov ecx, dword [ebp - 0x484]
lea ecx, [ecx]
mov eax, dword [ecx + 0x7c]
mov al, byte [esi + eax]
mov byte [ebx + esi], al
inc esi
cmp esi, edi
jb 0x435600
push dword [ecx + 0x7c]
call fcn.0047b041
add esp, 4
mov ecx, dword [ebp - 0x47c]
lea eax, [ecx + edi]
cmp esi, eax
jae 0x435644
lea edx, [ebp - 0x410]
sub edx, esi
mov edi, edi
mov al, byte [edx + esi]
mov byte [ebx + esi], al
inc esi
mov ecx, dword [ebp - 0x47c]
lea eax, [ecx + edi]
cmp esi, eax
jb 0x435630
mov eax, dword [ebp - 0x484]
add edi, ecx
mov dword [eax + 0x7c], ebx
mov ebx, dword [ebp - 0x480]
test ecx, ecx
jne 0x4355c0
test edi, edi
je 0x4356a0
lea eax, [edi + 1]
push eax
call fcn.004780a0
mov ebx, dword [ebp - 0x484]
add esp, 4
xor edx, edx
mov esi, eax
test edi, edi
je 0x43568e
jmp 0x435680
mov ecx, dword [ebx + 0x7c]
mov al, byte [edx + ecx]
mov byte [edx + esi], al
inc edx
cmp edx, edi
jb 0x435680
mov byte [edx + esi], 0
push dword [ebx + 0x7c]
call fcn.0047b041
add esp, 4
mov dword [ebx + 0x7c], esi
mov esi, dword [ebp - 0x490]
push dword [ebp - 0x480]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
jmp 0x4356bc
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x48c]
call edi
push dword [ebp - 0x494]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x435700
cmp dword [esi + 0x14], 8
jb 0x4356e4
push dword [esi]
call fcn.0047a557
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push esi
mov word [esi], ax
call fcn.0047a557
add esp, 4
xor eax, eax
cmp dword [ebp - 0x488], eax
setne al
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.0047b06c
mov esp, ebp
pop ebp
ret