Function at 0x435c9c
Capabilities:
Check http status code
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 0x46d85e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2b28
call fcn.00460740
mov eax, dword [0x493350]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x29d0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x29f4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x29c0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x29b4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x29bc], eax
mov eax, dword [ebp + 0x1c]
mov esi, ecx
mov dword [ebp - 0x29f0], esi
mov dword [ebp - 0x29c8], eax
xor ebx, ebx
lea eax, [ebp - 0x29b0]
mov dword [ebp - 4], ebx
call fcn.0040bcf0
push 4
pop eax
push 0x50
pop ecx
push eax
push dword [0x475ce8]
mov dword [ebp - 0x55c], eax
lea eax, [ebp - 0x29b0]
push 0x21
push eax
mov dword [ebp - 0x560], 2
mov word [ebp - 0x564], cx
call fcn.0044db77
push eax
call fcn.0040b450
add esp, 0x14
mov ecx, esi
lea edi, [ebp - 0x29ec]
call fcn.00431734
cmp dword [eax + 0x18], 8
jb 0x435d73
mov esi, dword [eax + 4]
jmp 0x435d76
lea esi, [eax + 4]
lea eax, [ebp - 0x29b0]
call fcn.0040bcf0
mov ecx, esi
lea edx, [ebp - 0x29b0]
call fcn.0040b830
lea esi, [ebp - 0x29ec]
mov edi, eax
call fcn.00406e40
push ebx
push ebx
push ebx
push ebx
push 0x475d7c
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x29cc], eax
mov dword [ebp - 0x29c4], ebx
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x435dee
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x564]
lea eax, [ebp - 0x296e]
push eax
push dword [ebp - 0x29cc]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x29c4], esi
jmp 0x435e3d
mov ecx, dword [ebp - 0x29f0]
lea edi, [ebp - 0x29ec]
call fcn.00431734
cmp dword [eax + 0x18], 8
jb 0x435e0a
mov eax, dword [eax + 4]
jmp 0x435e0d
add eax, 4
push 1
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push dword [ebp - 0x29cc]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x29c4], esi
lea esi, [ebp - 0x29ec]
call fcn.00406e40
push dword [ebp - 0x29d0]
lea ecx, [ebp - 0x2a34]
call fcn.00406ce0
mov ecx, dword [ebp - 0x29f4]
lea edi, [ebp - 0x2a50]
mov byte [ebp - 4], 3
call fcn.00431734
mov esi, eax
lea ecx, [ebp - 0x2a34]
lea edi, [ebp - 0x2a6c]
mov byte [ebp - 4], 4
call fcn.00431734
cmp dword [esi + 0x18], 8
jb 0x435e85
mov esi, dword [esi + 4]
jmp 0x435e88
add esi, 4
cmp dword [eax + 0x18], 8
jb 0x435e93
mov eax, dword [eax + 4]
jmp 0x435e96
add eax, 4
push 1
push 0x20400010
push ebx
push ebx
push ebx
push esi
push eax
push dword [ebp - 0x29c4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x29b8], eax
lea esi, [ebp - 0x2a6c]
call fcn.00406e40
lea esi, [ebp - 0x2a50]
call fcn.00406e40
lea ecx, [ebp - 0x2a34]
mov byte [ebp - 4], 7
call fcn.00406d50
cmp dword [ebp - 0x29b8], ebx
jne 0x435f75
mov eax, dword [ebp - 0x29f4]
cmp dword [eax + 0x18], 0x10
jb 0x435ef6
mov edi, dword [eax + 4]
jmp 0x435ef9
lea edi, [eax + 4]
mov eax, dword [ebp - 0x29f0]
cmp dword [eax + 0x18], 0x10
jb 0x435f0a
mov esi, dword [eax + 4]
jmp 0x435f0d
lea esi, [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push dword [ebp - 0x29d0]
lea esi, [ebp - 0x2a18]
push str.HttpOpenRequest_failed_for__s_http:___s_s__Error_Code:__d
call fcn.004318ef
add esp, 0x14
mov byte [ebp - 4], 8
cmp dword [eax + 0x18], 0x10
jb 0x435f3e
mov eax, dword [eax + 4]
jmp 0x435f41
add eax, 4
push eax
lea ecx, [ebp - 0x29ec]
call fcn.00406ce0
lea eax, [ebp - 0x29ec]
push eax
lea eax, [ebp - 0x2abc]
push eax
mov byte [ebp - 4], 9
call fcn.00401340
push 0x486be4
lea eax, [ebp - 0x2abc]
push eax
call fcn.00450dab
cmp dword [ebp - 0x29b4], ebx
je 0x43601c
push dword [ebp - 0x29b4]
lea esi, [ebp - 0x534]
push str.Content_Type:__s_r_n
call fcn.004318ef
pop ecx
pop ecx
push str.HttpAddRequestHeaders_failed
lea ecx, [ebp - 0x29ec]
mov byte [ebp - 4], 0xa
call fcn.00406ce0
mov ecx, esi
lea edi, [ebp - 0x2a18]
mov byte [ebp - 4], 0xb
call fcn.00431734
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x18], 8
jb 0x435fcd
mov eax, dword [eax + 4]
jmp 0x435fd0
add eax, 4
push 0x20000000
push dword [ebp - 0x520]
push eax
push dword [ebp - 0x29b8]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
cmp eax, ebx
jne 0x435ff7
lea eax, [ebp - 0x29ec]
call fcn.0042f9de
lea esi, [ebp - 0x2a18]
call fcn.00406e40
lea ecx, [ebp - 0x29ec]
call fcn.00406d50
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 7
call fcn.00406d50
mov eax, dword [ebp - 0x29c0]
lea esi, [ebp - 0x530]
call fcn.00431447
mov edi, dword [eax + 8]
mov esi, dword [ebp - 0x29c0]
add edi, dword [eax]
push 2
call fcn.004313ce
mov eax, dword [ebp - 0x29c0]
lea esi, [ebp - 0x530]
call fcn.00431447
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov esi, dword [ebp - 0x29c0]
sub ecx, edi
mov edi, ecx
push ebx
mov dword [ebp - 0x29b4], edi
call fcn.004313ce
cmp edi, ebx
jne 0x4360b6
push str.HttpSendRequest_failed
lea ecx, [ebp - 0x29ec]
call fcn.00406ce0
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 0xd
push dword [ebp - 0x29b8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, ebx
jne 0x4360a2
lea eax, [ebp - 0x29ec]
call fcn.0042f9de
lea ecx, [ebp - 0x29ec]
mov byte [ebp - 4], 7
call fcn.00406d50
jmp 0x436223
push edi
call fcn.0044d317
mov esi, eax
pop ecx
mov dword [ebp - 0x29d0], esi
push edi
push esi
push dword [ebp - 0x29c0]
mov byte [ebp - 4], 0xe
call fcn.00431573
push 0xa
pop ecx
push ebx
xor eax, eax
push ebx
lea edi, [ebp - 0x540]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x29b4]
push ebx
lea eax, [ebp - 0x540]
push eax
push dword [ebp - 0x29b8]
mov dword [ebp - 0x540], 0x28
mov dword [ebp - 0x524], edi
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x43614a
push str.HttpSendRequestEx_failed
lea ecx, [ebp - 0x2a18]
call fcn.00406ce0
lea eax, [ebp - 0x2a18]
push eax
lea eax, [ebp - 0x2a94]
push eax
mov byte [ebp - 4], 0xf
call fcn.00401340
push 0x486be4
lea eax, [ebp - 0x2a94]
jmp 0x435f6f
push str.InternetWriteFile_failed
lea ecx, [ebp - 0x29ec]
mov byte [ebp - 4], 0x10
call fcn.00406ce0
lea eax, [ebp - 0x29b4]
push eax
push edi
push esi
mov byte [ebp - 4], 0x11
push dword [ebp - 0x29b8]
call dword [sym.imp.WININET.dll_InternetWriteFile]
cmp eax, ebx
jne 0x436186
lea eax, [ebp - 0x29ec]
call fcn.0042f9de
lea ecx, [ebp - 0x29ec]
mov byte [ebp - 4], 0x10
call fcn.00406d50
cmp dword [ebp - 0x29b4], edi
je 0x4361d4
push str.Failed_to_upload_content
lea ecx, [ebp - 0x2a18]
call fcn.00406ce0
lea eax, [ebp - 0x2a18]
push eax
lea eax, [ebp - 0x2ae4]
push eax
mov byte [ebp - 4], 0x12
call fcn.00401340
push 0x486be4
lea eax, [ebp - 0x2ae4]
jmp 0x435f6f
push str.HttpEndRequest_failed
lea ecx, [ebp - 0x29ec]
mov dword [ebp - 4], 0xe
call fcn.00406ce0
push ebx
push ebx
push ebx
mov byte [ebp - 4], 0x14
push dword [ebp - 0x29b8]
call dword [sym.imp.WININET.dll_HttpEndRequestW]
cmp eax, ebx
jne 0x43620d
lea eax, [ebp - 0x29ec]
call fcn.0042f9de
lea ecx, [ebp - 0x29ec]
call fcn.00406d50
push esi
mov byte [ebp - 4], 7
call fcn.0044d00c
pop ecx
push 4
pop esi
push str.HttpQueryInfo_HTTP_QUERY_STATUS_CODE_failed
lea ecx, [ebp - 0x29ec]
mov dword [ebp - 0x29b4], esi
call fcn.00406ce0
push ebx
lea eax, [ebp - 0x29b4]
push eax
lea eax, [ebp - 0x29f8]
push eax
mov byte [ebp - 4], 0x15
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0x20000013
push dword [ebp - 0x29b8]
call edi
cmp eax, ebx
jne 0x436271
lea eax, [ebp - 0x29ec]
call fcn.0042f9de
lea ecx, [ebp - 0x29ec]
mov byte [ebp - 4], 7
call fcn.00406d50
push ebx
lea eax, [ebp - 0x29b4]
push eax
lea eax, [ebp - 0x29fc]
push eax
push 0x20000005
push dword [ebp - 0x29b8]
mov dword [ebp - 0x29fc], ebx
mov dword [ebp - 0x29b4], esi
call edi
push ebx
lea eax, [ebp - 0x29b4]
push eax
lea eax, [ebp - 0x118]
push eax
push 0x36
push dword [ebp - 0x29b8]
mov dword [ebp - 0x29b4], 0x100
call edi
test eax, eax
je 0x43631e
mov esi, dword [ebp - 0x29bc]
lea eax, [ebp - 0x118]
push eax
mov ecx, esi
call fcn.00406d80
mov eax, dword [esi + 0x14]
mov edx, dword [ebp - 0x29bc]
add eax, 0xfffffffe
xor ecx, ecx
push eax
inc ecx
lea esi, [ebp - 0x2a18]
call fcn.00410cd0
push 0xffffffffffffffff
push ebx
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x29bc]
push eax
call fcn.00407320
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00406d50
jmp 0x436329
mov eax, dword [ebp - 0x29bc]
call fcn.004378a2
xor esi, esi
push ebx
push ebx
lea eax, [ebp - 0x29b4]
push eax
push dword [ebp - 0x29b8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x43634a
mov dword [ebp - 0x29b4], ebx
cmp dword [ebp - 0x29b4], ebx
je 0x4363de
push str.InternetReadFile_failed
lea ecx, [ebp - 0x29ec]
call fcn.00406ce0
lea eax, [ebp - 0x29bc]
push eax
push 0x400
lea eax, [ebp - 0x518]
push eax
mov byte [ebp - 4], 0x17
push dword [ebp - 0x29b8]
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, ebx
jne 0x436398
lea eax, [ebp - 0x29ec]
call fcn.0042f9de
lea ecx, [ebp - 0x29ec]
mov byte [ebp - 4], 7
call fcn.00406d50
push dword [ebp - 0x29bc]
lea eax, [ebp - 0x518]
push eax
push dword [ebp - 0x29c8]
call fcn.0043129b
push dword [ebp - 0x29fc]
add esi, dword [ebp - 0x29bc]
push dword [ebp - 0x29bc]
lea ecx, [ebp + 0x20]
call fcn.00437d0c
jmp 0x43632b
cmp dword [ebp - 0x29f8], 0xc8
je 0x4364b9
push ebx
lea eax, [ebp - 0x29c8]
push eax
lea eax, [ebp - 0x518]
push eax
push 0x14
push dword [ebp - 0x29b8]
mov dword [ebp - 0x29c8], 0x200
call edi
test eax, eax
je 0x436480
lea eax, [ebp - 0x518]
lea ecx, [ebp - 0x2a18]
call fcn.00406dd0
lea ecx, [ebp - 0x2a18]
lea edi, [ebp - 0x534]
mov byte [ebp - 4], 0x18
call fcn.004316b9
mov byte [ebp - 4], 0x19
cmp dword [eax + 0x18], 0x10
jb 0x43644a
mov eax, dword [eax + 4]
jmp 0x43644d
add eax, 4
push eax
lea ecx, [ebp - 0x29ec]
call fcn.00406ce0
lea eax, [ebp - 0x29ec]
push eax
lea eax, [ebp - 0x2b34]
push eax
mov byte [ebp - 4], 0x1a
call fcn.00401340
push 0x486be4
lea eax, [ebp - 0x2b34]
jmp 0x435f6f
push dword [ebp - 0x29f8]
lea esi, [ebp - 0x2a18]
push str.statusCode___d
call fcn.004318ef
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x2b0c]
push eax
mov byte [ebp - 4], 0x1b
call fcn.00401340
push 0x486be4
lea eax, [ebp - 0x2b0c]
jmp 0x435f6f
push dword [ebp - 0x29b8]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x29c4]
call esi
push dword [ebp - 0x29cc]
call esi
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 0x20]
call fcn.00426921
mov eax, 0xc8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044cced
leave
ret