Function at 0x418ed0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4420d8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x45a024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 4], 2
xor esi, esi
mov eax, 0x44f581
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00404d00
mov eax, 1
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], eax
push ebx
push ebx
push ebx
push ebx
push str.Download_1.0
mov byte [ebp - 4], 6
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x78], edi
cmp edi, ebx
jne 0x418ff8
mov edi, dword [ebp - 0x4c]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov eax, 0x44f581
mov ecx, edi
mov byte [edi], bl
call fcn.00404d00
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jb 0x418f97
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041afda
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp + 0x20], esi
jb 0x418fb5
mov edx, dword [ebp + 0xc]
push edx
call fcn.0041afda
add esp, 4
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], esi
jb 0x418fd3
mov eax, dword [ebp + 0x28]
push eax
call fcn.0041afda
add esp, 4
mov dword [ebp + 0x3c], 0xf
mov dword [ebp + 0x38], ebx
mov byte [ebp + 0x28], bl
cmp dword [ebp + 0x58], esi
jb 0x418ff1
mov ecx, dword [ebp + 0x44]
push ecx
call fcn.0041afda
add esp, 4
mov eax, edi
jmp 0x419283
push 0x1388
push 0x1388
push 0x1388
push 0x1388
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00406000
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x41902b
mov eax, dword [eax]
push ebx
push 0x50
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
cmp dword [ebp - 0x34], 8
mov esi, eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x68], esi
jb 0x419050
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0041afda
add esp, 4
cmp esi, ebx
jne 0x41907b
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
xor esi, esi
mov eax, 0x44f581
mov byte [ecx], bl
call fcn.00404d00
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x419217
lea eax, [ebp + 0x28]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.00406000
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x419093
mov eax, dword [eax]
push ebx
push ebx
push ebx
push ebx
push eax
push str.POST
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
cmp dword [ebp - 0x34], 8
mov edi, eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x70], edi
jb 0x4190be
mov edx, dword [ebp - 0x48]
push edx
call fcn.0041afda
add esp, 4
cmp edi, ebx
je 0x419121
push 0x20000000
push 0x4e
push str.Content_type:application_x_www_form_urlencoded_r_nAccept:__r_nConnection:close_r_n
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov esi, dword [ebp + 0x58]
mov edx, dword [ebp + 0x44]
cmp esi, 0x10
jae 0x4190e3
lea edx, [ebp + 0x44]
xor eax, eax
mov ecx, 0x44f581
call fcn.004061c0
mov ecx, dword [ebp + 0x54]
cmp eax, ebx
jne 0x419105
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
jne 0x419105
xor eax, eax
jmp 0x419110
mov eax, dword [ebp + 0x44]
cmp esi, 0x10
jae 0x419110
lea eax, [ebp + 0x44]
push ebx
push ecx
push ecx
push eax
push ebx
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, ebx
jne 0x419151
mov eax, dword [ebp - 0x4c]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], ebx
lea edi, [ebp - 0x2c]
mov esi, eax
mov byte [eax], bl
call fcn.004048e0
mov eax, dword [ebp - 0x58]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp eax, ebx
je 0x41920b
push eax
jmp 0x419209
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4191e6
lea eax, [ebp - 0x50]
push eax
push edi
mov dword [ebp - 0x50], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4192a9
mov ecx, dword [ebp - 0x50]
inc ecx
push ecx
call fcn.0041b65b
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4192a1
mov edx, dword [ebp - 0x50]
inc edx
push edx
push ebx
push esi
call fcn.004212c0
mov ecx, dword [ebp - 0x50]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push ecx
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4192a9
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4191c0
sub eax, edx
push eax
mov eax, esi
lea ecx, [ebp - 0x2c]
call fcn.00404c20
push esi
call fcn.0041b666
add esp, 4
cmp dword [ebp - 0x50], ebx
ja 0x419161
mov eax, dword [ebp - 0x4c]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], ebx
lea edi, [ebp - 0x2c]
mov esi, eax
mov byte [eax], bl
call fcn.004048e0
mov edx, dword [ebp - 0x58]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x60]
push eax
call esi
mov ecx, dword [ebp - 0x5c]
push ecx
call esi
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jb 0x41922d
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041afda
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp + 0x20], esi
jb 0x41924c
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041afda
add esp, 4
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], esi
jb 0x419266
mov ecx, dword [ebp + 0x28]
push ecx
call fcn.0041afda
add esp, 4
mov dword [ebp + 0x3c], edi
mov dword [ebp + 0x38], ebx
mov byte [ebp + 0x28], bl
cmp dword [ebp + 0x58], esi
jb 0x419280
mov edx, dword [ebp + 0x44]
push edx
call fcn.0041afda
add esp, 4
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041af7a
mov esp, ebp
pop ebp
ret 0x58
mov dword [ebp - 0x50], ebx
jmp 0x4191e6
mov ebx, dword [ebp - 0x4c]
lea edi, [ebp - 0x2c]
mov eax, ebx
call fcn.00403e60
lea esi, [ebp - 0x70]
call fcn.00418e20
lea esi, [ebp - 0x68]
call fcn.00418e20
lea esi, [ebp - 0x78]
call fcn.00418e20
mov esi, edi
call fcn.00403e80
lea esi, [ebp + 0xc]
call fcn.00403e80
lea esi, [ebp + 0x28]
call fcn.00403e80
lea esi, [ebp + 0x44]
call fcn.00403e80
mov eax, ebx
jmp 0x419283