Function at 0x401b40
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.0040e190
mov eax, dword [0x41501c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x401bc2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1024], eax
mov ecx, dword [ebp - 0x1024]
add ecx, 2
mov dword [ebp - 0x1028], ecx
mov edx, dword [ebp - 0x1024]
mov ax, word [edx]
mov word [ebp - 0x102a], ax
add dword [ebp - 0x1024], 2
cmp word [ebp - 0x102a], 0
jne 0x401b75
mov ecx, dword [ebp - 0x1024]
sub ecx, dword [ebp - 0x1028]
sar ecx, 1
mov dword [ebp - 0x1030], ecx
je 0x401bc2
push str.http:__
mov edx, dword [ebp + 8]
push edx
call fcn.004042aa
add esp, 8
cmp eax, dword [ebp + 8]
je 0x401bc9
xor eax, eax
jmp 0x401dea
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x80c], 0
xor eax, eax
mov word [ebp - 0x808], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x806]
push ecx
call fcn.00405360
add esp, 0xc
xor edx, edx
mov word [ebp - 0x1020], dx
push 0x7fe
push 0
lea eax, [ebp - 0x101e]
push eax
call fcn.00405360
add esp, 0xc
mov dword [ebp - 0x810], 0
mov ecx, dword [ebp + 8]
add ecx, 0xe
push ecx
push 0x400
lea edx, [ebp - 0x808]
push edx
call fcn.004041b4
add esp, 0xc
push 0x2f
lea eax, [ebp - 0x808]
push eax
call fcn.004023f0
add esp, 8
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
je 0x401c9d
mov ecx, dword [ebp - 0x810]
add ecx, 2
push ecx
push 0x400
lea edx, [ebp - 0x1020]
push edx
call fcn.004041b4
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x810]
mov word [ecx], ax
mov dword [ebp - 0x818], 0x2710
push 4
lea edx, [ebp - 0x818]
push edx
push 2
push 0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x818]
push eax
push 5
push 0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x818]
push ecx
push 6
push 0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0
push 0
push 0
push str.RookIE_1.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x820], eax
cmp dword [ebp - 0x820], 0
jne 0x401d0c
jmp 0x401da2
push 0
push 0
push 3
push 0
push 0
push 0x50
lea edx, [ebp - 0x808]
push edx
mov eax, dword [ebp - 0x820]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x81c], 0
jne 0x401d3f
jmp 0x401da2
push 0
push 0x84480000
push 0
push 0
push str.HTTP_1.1
lea ecx, [ebp - 0x1020]
push ecx
push 0x413aec
mov edx, dword [ebp - 0x81c]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
jne 0x401d7b
jmp 0x401da2
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x80c]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x401d98
jmp 0x401da2
mov dword [ebp - 0x814], 1
cmp dword [ebp - 0x80c], 0
je 0x401db8
mov ecx, dword [ebp - 0x80c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x81c], 0
je 0x401dce
mov edx, dword [ebp - 0x81c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x820], 0
je 0x401de4
mov eax, dword [ebp - 0x820]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x814]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040418f
mov esp, ebp
pop ebp
ret