Function at 0x4158fe
Capabilities:
Check http status code
Connect to http server
Create http request
Send data
Send http request

Disassembly:
mov eax, 0x445be0
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x54
push ebx
push esi
push edi
mov esi, 0x45d0f4
xor ebx, ebx
mov eax, esi
mov dword [ebp - 4], ebx
test eax, eax
je 0x415925
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0xc]
push esi
push eax
call fcn.00403af6
lea ecx, [ebp - 0x60]
call fcn.0041c0b6
lea eax, [ebp + 8]
lea ecx, [ebp - 0x60]
push eax
mov byte [ebp - 4], 1
call fcn.0041c1d6
movzx esi, al
cmp esi, ebx
je 0x415a1f
cmp dword [ebp - 0x2c], 3
jne 0x415a1f
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x14]
push eax
call fcn.00403d15
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00416174
mov eax, dword [ebp - 0x28]
push ebx
push ebx
push ebx
push ebx
push 0x459854
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], 4
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
cmp edi, ebx
je 0x415afd
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [ebp + 0x10]
push 4
push eax
push 2
push edi
call esi
cmp eax, ebx
je 0x415a00
lea eax, [ebp + 0x10]
push 4
push eax
push 5
push edi
call esi
cmp eax, ebx
je 0x415a00
lea eax, [ebp + 0x10]
push 4
push eax
push 5
push edi
call esi
cmp eax, ebx
je 0x415a00
lea eax, [ebp + 0x10]
push 4
push eax
push 6
push edi
mov dword [ebp + 0x10], ebx
call esi
cmp eax, ebx
je 0x415a00
lea eax, [ebp + 0x10]
push 4
push eax
push 6
push edi
call esi
mov esi, eax
cmp esi, ebx
jne 0x415a49
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00403a89
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00403a89
xor esi, esi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.0041c137
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403a89
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x415af6
cmp dword [ebp + 0x14], ebx
push ebx
je 0x415a70
push ebx
jmp 0x415a75
push 0x44000000
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
push 0x45984c
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x415aed
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
cmp esi, ebx
je 0x415ae4
lea eax, [ebp - 0x20]
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000013
push dword [ebp + 0x14]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, eax
cmp esi, ebx
je 0x415ae4
cmp dword [ebp - 0x18], 0xc8
je 0x415ace
cmp dword [ebp - 0x18], 0x130
jne 0x415ae4
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call fcn.004157f3
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x415ae4
push 1
pop esi
push dword [ebp + 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00403a89
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00403a89
jmp 0x415a21