Function at 0x4046c0
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446598
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x452728]
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
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], edi
mov byte [ebp - 0x58], 0
push edi
push edi
push edi
push edi
push 0x449e54
mov byte [ebp - 4], 3
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0x60]
push ecx
mov ebx, eax
push 2
push ebx
mov dword [ebp - 0x68], ebx
call esi
push 1
push edi
push 3
push edi
push edi
push 0x50
push 0x449e3c
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
push 4
lea edx, [ebp - 0x60]
push edx
mov ebx, eax
push 2
push ebx
mov dword [ebp - 0x6c], ebx
call esi
push 4
lea eax, [ebp - 0x60]
push eax
push 5
push ebx
call esi
mov eax, dword [ebp + 0x28]
mov edi, 0x10
cmp dword [ebp + 0x3c], edi
jae 0x404770
lea eax, [ebp + 0x28]
mov ecx, dword [ebp + 0x38]
push ecx
push eax
push 0x1ff
push 0x454ac0
call fcn.0041ad56
lea edx, [ebp - 0x40]
push 0x454ac0
push edx
call fcn.004045b0
mov eax, dword [ebp + 0xc]
add esp, 0x18
cmp dword [ebp + 0x20], edi
jae 0x4047a0
lea eax, [ebp + 0xc]
push 1
push 0x84400000
push 0x452178
push 0
push 0x449e30
push eax
push 0x449e28
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ecx, dword [0x449e1c]
mov edx, dword [0x449e20]
mov edi, eax
mov eax, dword [0x449e18]
mov dword [ebp - 0x24], eax
mov ax, word [0x449e24]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4047f0
push 0xa0000000
sub eax, ecx
push eax
lea ecx, [ebp - 0x24]
push ecx
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 4
lea edx, [ebp - 0x60]
push edx
push 5
push edi
call esi
cmp dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x3c]
jae 0x404821
lea eax, [ebp - 0x3c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404824
sub eax, edx
mov esi, eax
mov eax, str.Content_Type:_application_x_www_form_urlencoded
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404837
mov ecx, dword [ebp - 0x3c]
sub eax, edx
cmp dword [ebp - 0x28], 0x10
jae 0x40484c
lea ecx, [ebp - 0x3c]
push esi
push ecx
push eax
push str.Content_Type:_application_x_www_form_urlencoded
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp dword [ebp - 0x28], 0x10
mov dword [ebp - 0x64], eax
jb 0x404870
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0041ad4b
add esp, 4
xor esi, esi
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x3c], 0
jb 0x404892
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.0041ad4b
add esp, 4
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], esi
mov byte [ebp - 0x58], 0
cmp edi, esi
je 0x4048bf
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4048bf
cmp ebx, esi
je 0x4048ca
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x68]
cmp eax, esi
je 0x4048d8
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp + 0x20], 0x10
jb 0x4048ea
mov edx, dword [ebp + 0xc]
push edx
call fcn.0041ad4b
add esp, 4
cmp dword [ebp + 0x3c], 0x10
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], esi
mov byte [ebp + 0xc], 0
jb 0x40490a
mov eax, dword [ebp + 0x28]
push eax
call fcn.0041ad4b
add esp, 4
mov eax, dword [ebp - 0x64]
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.0041ae81
mov esp, ebp
pop ebp
ret