Function at 0x417180
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x80
push esi
push edi
push dword [eax]
mov edi, ecx
push dword [eax + 8]
lea ecx, [edi + 0x30]
call fcn.00403040
mov eax, dword [ebp + 0xc]
mov esi, 0x5b3144
cmp dword [eax], 0
jne 0x4171ae
xor edx, edx
jmp 0x4171b8
mov eax, dword [eax + 8]
mov edx, esi
test eax, eax
cmovne edx, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x4171ce
mov eax, dword [eax + 8]
mov ecx, esi
test eax, eax
cmovne ecx, eax
xor eax, eax
cmp dword [ebp + 8], eax
push 0x10000000
setne al
push edx
push ecx
lea eax, [eax*2 + 1]
push eax
push str.TrionHTTP_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, eax
test ecx, ecx
mov dword [edi + 0x70], ecx
setne al
mov byte [ebp + 0xb], al
test al, al
jne 0x417218
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x80], eax
mov al, byte [ebp + 0xb]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
push 0xffffffffffffffff
push 0x417820
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
push 4
lea ecx, [ebp - 0x80]
mov dword [ebp + 8], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x34], 1
call fcn.004178a0
push 0x54b910
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x20]
push eax
push 0x54b910
call fcn.00403040
mov eax, dword [edi + 0x18]
test eax, eax
mov dword [ebp - 0x10], 0
cmovne esi, eax
mov dword [ebp - 0xc], 0
push esi
mov dword [ebp - 8], 0
call fcn.00420e00
add esp, 4
lea ecx, [ebp - 0x10]
push eax
push esi
call fcn.00403040
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00436b10
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
add esp, 0xc
add eax, eax
push eax
push dword [ebp - 8]
call fcn.00420bb0
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
add eax, eax
mov dword [ebp - 8], 0
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call fcn.00420bb0
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push dword [eax]
mov dword [ebp - 0x18], 0
push dword [eax + 8]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call fcn.00403040
mov eax, dword [ebp - 0x7c]
mov esi, 0x5b3144
mov ecx, dword [ebp - 0x80]
sub eax, ecx
sar eax, 4
cmp eax, 1
jbe 0x41736e
mov eax, dword [ecx + 0x18]
test eax, eax
mov ecx, esi
cmovne ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
movzx eax, ax
xor ecx, ecx
add esp, 4
test ax, ax
cmove eax, ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x28]
mov ecx, esi
push 0
push dword [ebp + 8]
test eax, eax
cmovne ecx, eax
push ecx
push dword [edi + 0x70]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
test eax, eax
mov dword [edi + 0x74], eax
setne al
mov byte [ebp + 0xb], al
test al, al
jne 0x4173a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x80], eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
add eax, eax
push eax
push dword [ebp - 0x28]
call fcn.00420bb0
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
test ecx, ecx
je 0x41740a
mov eax, dword [ebp - 0x7c]
cmp ecx, eax
je 0x4173eb
push dword [ebp + 8]
sub eax, ecx
sar eax, 4
push eax
push ecx
call fcn.00416730
mov ecx, dword [ebp - 0x80]
add esp, 0xc
lea eax, [ebp - 0x74]
cmp ecx, eax
je 0x417406
mov eax, dword [ebp - 0x78]
sub eax, ecx
and eax, 0xfffffff0
push eax
push ecx
lea ecx, [ebp - 0x74]
call fcn.00420bb0
jmp 0x41740a
mov byte [ebp - 0x34], 1
mov al, byte [ebp + 0xb]
test al, al
je 0x417459
mov eax, dword [edi + 0x28]
test eax, eax
push 0
push 0
push 0
push 0
cmovne esi, eax
push esi
push 0x54b948
push dword [edi + 0x74]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
test eax, eax
mov dword [edi + 0x78], eax
setne al
mov byte [ebp + 0xb], al
test al, al
jne 0x417452
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x80], eax
mov al, byte [ebp + 0xb]
test al, al
je 0x417459
mov ecx, edi
call fcn.004176a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8