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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e044d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x27e8
call fcn.004b4e80
mov eax, dword [0x510918]
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 edi, ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x27e4], eax
mov dword [ebp - 0x27e0], eax
mov al, byte [ebp + 0x14]
mov dword [ebp - 0x27dc], ebx
mov dword [ebp - 0x27d8], edi
mov byte [ebp - 0x27d1], al
mov dword [edi + 0x10460], ebx
cmp dword [edi + 0x10], ebx
jne 0x449563
cmp dword [edi + 0xc], ebx
jne 0x449563
cmp dword [edi + 0x14], ebx
jne 0x449563
cmp dword [edi + 0x1041c], ebx
jne 0x449563
cmp dword [edi + 0x10424], ebx
jne 0x449563
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
je 0x448cec
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [edi + 0x10454]
lea ecx, [ebp - 0x27e8]
mov dword [ebp - 0x27e8], eax
mov dword [edi + 0x10454], esi
call fcn.0041ada0
mov dword [edi + 0x10420], ebx
mov dword [edi + 0x10418], ebx
push 0x80
mov dword [edi + 0x10424], ebx
call fcn.004a2b5d
pop ecx
test eax, eax
je 0x448d33
mov ecx, eax
call fcn.00448767
jmp 0x448d35
mov eax, ebx
lea esi, [edi + 0x10458]
push eax
mov ecx, esi
call fcn.004371d9
mov esi, dword [esi]
test esi, esi
je 0x448d53
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [ebp - 0x27e4]
mov eax, dword [ecx]
mov dword [ecx], esi
lea ecx, [ebp - 0x27ec]
mov dword [ebp - 0x27ec], eax
call fcn.0041ada0
mov al, byte [ebp - 0x27d1]
lea ecx, [ebp - 0x27d0]
mov byte [edi + 0x1045c], al
mov dword [ebp - 4], 1
call fcn.00412be0
push 4
pop ecx
push 0x50
pop eax
push ecx
push dword [0x4edd40]
mov word [ebp - 0x384], ax
lea eax, [ebp - 0x27d0]
push 0x21
push eax
mov dword [ebp - 0x380], 2
mov dword [ebp - 0x37c], ecx
call fcn.004a3cb6
push eax
call fcn.004200f0
mov esi, dword [edi + 0x10454]
add esi, 0xc
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x448dd8
mov esi, dword [esi]
lea ecx, [ebp - 0x27d0]
call fcn.00412be0
push esi
lea ecx, [ebp - 0x27d0]
call fcn.00412680
test eax, eax
jne 0x448e2f
push str.invalid_url
lea ecx, [ebp - 0x188]
call fcn.00403110
push 0x2ee5
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 2
call fcn.004486c2
push 0x504c84
lea eax, [ebp - 0x2e8]
push eax
call fcn.004a935b
cmp dword [ebp - 0x380], 2
je 0x448e79
cmp dword [ebp - 0x380], 3
je 0x448e79
push str.invalid_protocol
lea ecx, [ebp - 0x110]
call fcn.00403110
push 0x2ee8
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 3
call fcn.004486c2
push 0x504c84
lea eax, [ebp - 0x298]
jmp 0x448e29
lea eax, [ebp - 0x1d0]
push eax
call fcn.004496e0
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x448e8f
mov ecx, dword [ecx]
xor eax, eax
cmp byte [ebp - 0x27d1], al
mov edx, 0x10000000
cmovne eax, edx
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp dword [edi + 0xc], 0
mov esi, eax
je 0x448ebb
push dword [edi + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x1d0]
mov dword [edi + 0xc], esi
call fcn.00403170
cmp dword [edi + 0xc], 0
jne 0x448f0c
push str.InternetOpen_fail:
lea ecx, [ebp - 0x158]
call fcn.00403110
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x338]
call fcn.004486c2
push 0x504c84
lea eax, [ebp - 0x338]
jmp 0x448e29
push edi
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x384]
lea eax, [ebp - 0x278e]
push eax
push dword [edi + 0xc]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp dword [edi + 0x10], 0
mov esi, eax
je 0x448f39
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi + 0x10], esi
cmp esi, ebx
jne 0x448f7d
push str.InternetConnect_fail:
lea ecx, [ebp - 0x1b8]
call fcn.00403110
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x220]
call fcn.004486c2
push 0x504c84
lea eax, [ebp - 0x220]
jmp 0x448e29
lea eax, [ebp - 0x2388]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403110
lea eax, [ebp - 0x1386]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00404dc0
mov edx, 0x1bb
cmp word [ebp - 0x384], dx
mov edx, dword [edi + 0x10454]
mov ecx, ebx
mov eax, 0x800000
cmove ecx, eax
cmp byte [edx + 0x58], 0
jne 0x448fc9
or ecx, 0x84000000
jmp 0x448fdb
or ecx, 0x10000
cmp byte [ebp + 0x10], 0
je 0x448fdb
or ecx, 0x80000000
cmp byte [edx + 0x54], 0
jne 0x448fe7
or ecx, 0x80000
cmp byte [edx + 0x57], 0
je 0x448ff3
or ecx, 0x200000
mov eax, dword [edx + 0x3c]
cmp eax, dword [edx + 0x40]
jne 0x449006
cmp byte [edx + 0x55], 0
mov esi, 0x4f921c
je 0x44900b
mov esi, str.POST
add edx, 0x24
cmp dword [edx + 0x14], 8
jb 0x449016
mov edx, dword [edx]
cmp dword [ebp - 0x18], 8
push edi
push ecx
push 0x514c2c
push edx
push ebx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push esi
push dword [edi + 0x10]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp dword [edi + 0x14], 0
mov esi, eax
je 0x449046
push dword [edi + 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi + 0x14], esi
cmp esi, ebx
jne 0x44908a
push str.HttpOpenRequest_fail:
lea ecx, [ebp - 0x128]
call fcn.00403110
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x270]
call fcn.004486c2
push 0x504c84
lea eax, [ebp - 0x270]
jmp 0x448e29
cmp byte [ebp - 0x27d1], 0
je 0x449112
mov eax, dword [0x516078]
mov esi, 0x449a05
test eax, eax
je 0x4490a7
call eax
mov ecx, eax
jmp 0x4490a9
mov ecx, ebx
mov dword [edi + 0x10480], ecx
test ecx, ecx
je 0x4490c6
mov eax, dword [ecx]
push esi
push edi
call dword [eax + 4]
mov ecx, dword [edi + 0x10480]
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
push esi
push dword [edi + 0x14]
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp eax, 0xffffffff
jne 0x449112
push str.InternetSetStatusCallback_fail:
lea ecx, [ebp - 0x140]
call fcn.00403110
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x2c0]
call fcn.004486c2
push 0x504c84
lea eax, [ebp - 0x2c0]
jmp 0x448e29
mov esi, dword [edi + 0x10454]
mov dword [edi + 0x10460], 1
mov eax, dword [esi + 0x48]
cmp eax, dword [esi + 0x4c]
jne 0x449184
push 0xa0000000
push 0xffffffffffffffff
push str.Connection:_close_r_n
push dword [edi + 0x14]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x4491f4
push str.HttpAddRequestHeaders_fail:
lea ecx, [ebp - 0x170]
call fcn.00403110
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x310]
call fcn.004486c2
push 0x504c84
lea eax, [ebp - 0x310]
jmp 0x448e29
mov esi, eax
mov eax, dword [edi + 0x10454]
cmp esi, dword [eax + 0x4c]
je 0x4491f4
cmp dword [esi + 0x14], 8
jb 0x44919b
mov eax, dword [esi]
jmp 0x44919d
mov eax, esi
push 0xa0000000
push 0xffffffffffffffff
push eax
push dword [edi + 0x14]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
jne 0x4491ef
push str.HttpAddRequestHeaders_fail:
lea ecx, [ebp - 0x98]
call fcn.00403110
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x360]
call fcn.004486c2
push 0x504c84
lea eax, [ebp - 0x360]
jmp 0x448e29
add esi, 0x18
jmp 0x449186
mov ecx, dword [edi + 0x10454]
mov edx, ebx
mov eax, dword [ecx + 0x3c]
cmp eax, dword [ecx + 0x40]
je 0x449206
mov edx, eax
mov eax, dword [ecx + 0x40]
sub eax, dword [ecx + 0x3c]
push eax
push edx
push ebx
push ebx
push dword [edi + 0x14]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x44928a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x449253
lea ecx, [ebp - 0x2c]
call fcn.00403170
mov al, 1
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.004a2964
leave
ret 0x10
push str.HttpSendRequest_fail:
lea ecx, [ebp - 0x1a0]
call fcn.00403110
push esi
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x1f8]
mov byte [ebp - 4], 0xb
call fcn.004486c2
push 0x504c84
lea eax, [ebp - 0x1f8]
jmp 0x448e29
mov ecx, edi
mov byte [edi + 0x1045c], bl
call fcn.00449a9a
mov eax, dword [ebp - 0x27e4]
mov ecx, edi
mov eax, dword [eax]
cmp dword [eax + 0x1c], ebx
sete al
movzx eax, al
push eax
call fcn.0044959d
lea ecx, [ebp - 0x2c]
call fcn.00403170
jmp 0x4493ec
mov byte [edi + 0x1045c], bl
mov dword [edi + 0x10460], ebx
xor al, al
jmp 0x449237
push str.reuse_http_session:
lea ecx, [ebp - 0xe0]
call fcn.00403110
push 0x2f04
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], ebx
call fcn.004486c2
push 0x504c84
lea eax, [ebp - 0x248]
jmp 0x448e29