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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [ebp + 0x10]
mov ecx, 0x10015818
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
mov dword [ebp - 0x1c], 0x2710
cmove edi, dword [0x1001cff0]
test eax, eax
mov dword [ebp - 0x20], 0x7530
cmovne ecx, eax
mov dword [ebp - 0x24], 0x7530
mov dword [ebp - 0xc], ecx
test edi, edi
je 0x100048e4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebx
test eax, eax
je 0x100048e3
lea eax, [ebp - 8]
mov dword [ebp + 0xc], 0
push eax
lea eax, [ebp + 0xc]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 8]
call fcn.100019d0
add esp, 0xc
test eax, eax
je 0x100043d8
push eax
push str.Debug_plugin_failed_to_encode_a_string.
call fcn.10005170
add esp, 8
push esi
push edi
call ebx
mov dword [ebp - 0x60], 0x3c
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
lea esi, [eax + 1]
mov dword [ebp - 0x54], 0
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x10004475
xor eax, eax
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x48], ax
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x10004475
lea eax, [esi + esi]
mov dword [ebp - 0x40], esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x10004475
lea eax, [esi + esi]
mov dword [ebp - 0x38], esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x10004475
lea eax, [esi + esi]
mov dword [ebp - 0x30], esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
test esi, esi
jne 0x100044a0
call ebx
mov esi, eax
test esi, esi
je 0x100044a0
lea eax, [ebp - 0x60]
push eax
call fcn.10006450
add esp, 4
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
push str.Debug_plugin_failed_to_initialize_URL_components.
call fcn.10005170
add esp, 8
lea eax, [ebp - 0x60]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x100044e0
call ebx
mov esi, eax
lea eax, [ebp - 0x60]
push eax
call fcn.10006450
add esp, 4
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
push str.InternetCrackUrl_failed.
call fcn.10005170
add esp, 8
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x30], eax
xor ecx, ecx
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x18], ecx
nop dword [eax + eax]
push 0
push 0
push 0
push dword [ebp + ecx*4 - 0x68]
push str.Debug_NSIS_Plugin_1.0.x.x
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
jne 0x1000457c
cmp dword [0x100150a4], 0xffffffff
je 0x100048a8
push 0x400
push eax
lea eax, [ebp - 0x868]
push eax
call fcn.100034d0
add esp, 0xc
call ebx
push eax
lea eax, [ebp - 0x868]
push str.InternetOpen___failed___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x868]
push eax
push dword [0x100150a4]
call fcn.10001b00
add esp, 0x14
jmp 0x100048a8
push 4
lea eax, [ebp - 0x1c]
push eax
push 2
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x100045d7
cmp dword [0x100150a4], 0xffffffff
je 0x100045d7
push 0x400
push eax
lea eax, [ebp - 0x868]
push eax
call fcn.100034d0
add esp, 0xc
call ebx
push eax
lea eax, [ebp - 0x868]
push str.InternetSetOption_INTERNET_OPTION_CONNECT_TIMEOUT__failed___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x868]
push eax
push dword [0x100150a4]
call fcn.10001b00
add esp, 0x14
push 4
lea eax, [ebp - 0x20]
push eax
push 5
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x10004632
cmp dword [0x100150a4], 0xffffffff
je 0x10004632
push 0x400
push eax
lea eax, [ebp - 0x868]
push eax
call fcn.100034d0
add esp, 0xc
call ebx
push eax
lea eax, [ebp - 0x868]
push str.InternetSetOption_INTERNET_OPTION_SEND_TIMEOUT__failed___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x868]
push eax
push dword [0x100150a4]
call fcn.10001b00
add esp, 0x14
push 4
lea eax, [ebp - 0x24]
push eax
push 6
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x1000468d
cmp dword [0x100150a4], 0xffffffff
je 0x1000468d
push 0x400
push eax
lea eax, [ebp - 0x868]
push eax
call fcn.100034d0
add esp, 0xc
call ebx
push eax
lea eax, [ebp - 0x868]
push str.InternetSetOption_INTERNET_OPTION_RECEIVE_TIMEOUT__failed___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x868]
push eax
push dword [0x100150a4]
call fcn.10001b00
add esp, 0x14
cmp dword [ebp - 0x54], 4
mov ecx, 0x1bb
push 0
push 0
push 3
push 0
mov eax, 0x50
push 0
cmove eax, ecx
movzx eax, ax
push eax
push dword [ebp - 0x50]
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x10004710
cmp dword [0x100150a4], 0xffffffff
je 0x100048a5
push 0x400
push eax
lea eax, [ebp - 0x868]
push eax
call fcn.100034d0
add esp, 0xc
call ebx
push eax
lea eax, [ebp - 0x868]
push str.InternetConnect___failed___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x868]
push eax
push dword [0x100150a4]
call fcn.10001b00
add esp, 0x14
jmp 0x100048a5
cmp dword [ebp - 0x54], 4
mov edx, 0x4880100
push 0
mov eax, 0x4080100
cmove eax, edx
push eax
push 0
push 0
push 0
push dword [ebp - 0x34]
push str.POST
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp + 0x10], edi
test edi, edi
jne 0x10004795
cmp dword [0x100150a4], 0xffffffff
je 0x1000478a
push 0x400
push eax
lea eax, [ebp - 0x868]
push eax
call fcn.100034d0
add esp, 0xc
call ebx
push eax
lea eax, [ebp - 0x868]
push str.HttpOpenRequest___failed___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x868]
push eax
push dword [0x100150a4]
call fcn.10001b00
add esp, 0x14
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x100048a0
lea eax, [ebp - 0x60]
push eax
call fcn.10006450
mov eax, dword [ebp - 8]
add esp, 4
dec eax
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 0xc]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10004815
cmp dword [0x100150a4], 0xffffffff
je 0x10004897
push 0x400
push eax
lea eax, [ebp - 0x868]
push eax
call fcn.100034d0
add esp, 0xc
call ebx
push eax
lea eax, [ebp - 0x868]
push str.HttpSendRequest___failed___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x868]
push eax
push dword [0x100150a4]
call fcn.10001b00
add esp, 0x14
jmp 0x10004897
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 4
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x10004850
cmp edi, 0xc8
jb 0x10004850
cmp edi, 0x12b
jbe 0x100048ba
cmp dword [0x100150a4], 0xffffffff
je 0x10004894
push 0x400
lea eax, [ebp - 0x868]
push 0
push eax
call fcn.100034d0
push edi
lea eax, [ebp - 0x868]
push str.HTTP_Error___lu_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x868]
push eax
push dword [0x100150a4]
call fcn.10001b00
add esp, 0x20
mov edi, dword [ebp + 0x10]
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push dword [ebp - 4]
call edi
push esi
call edi
mov ecx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, 2
jl 0x10004510
jmp 0x100048cd
push dword [ebp + 0x10]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push dword [ebp - 4]
call edi
push esi
call edi
lea eax, [ebp - 0x60]
push eax
call fcn.10006450
add esp, 4
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret