Function at 0x423bee
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b96d2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3078
call fcn.0055bf80
mov eax, dword [0x630fe8]
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
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x3018], ebx
mov dword [ebp - 0x3030], ebx
mov dword [ebp - 0x302c], ebx
mov dword [ebp - 0x3028], ebx
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x3088]
mov dword [ebp - 4], ebx
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.00577630
or eax, 0xffffffff
mov dword [ebp - 0x3088], edi
add esp, 0xc
mov dword [ebp - 0x3080], eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x3074], eax
mov dword [ebp - 0x3058], eax
mov dword [ebp - 0x3050], eax
mov eax, dword [esi + 0x10]
jb 0x423c87
mov esi, dword [esi]
lea ecx, [ebp - 0x3088]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x423f59
push ebx
xor eax, eax
mov ecx, 0x800000
cmp dword [ebp - 0x307c], 2
push ebx
cmove eax, ecx
push ebx
mov dword [ebp - 0x3024], eax
movzx eax, word [ebp - 0x3070]
push ebx
push 0x608198
mov dword [ebp - 0x3020], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [ebp - 0x3048], esi
test esi, esi
je 0x423f59
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea eax, [ebp - 0x3034]
push 4
push eax
push 3
push esi
mov dword [ebp - 0x3034], 0xfa0
call edi
test eax, eax
je 0x423f4e
push 4
lea eax, [ebp - 0x3038]
mov dword [ebp - 0x3038], 0xfa0
push eax
push 5
push esi
call edi
test eax, eax
je 0x423f4e
push 4
lea eax, [ebp - 0x303c]
mov dword [ebp - 0x303c], 0xfa0
push eax
push 6
push esi
call edi
test eax, eax
je 0x423f4e
push 0x800
lea eax, [ebp - 0x814]
push ebx
push eax
call fcn.00577630
push dword [ebp - 0x3074]
lea eax, [ebp - 0x814]
push dword [ebp - 0x3078]
push 0x400
push eax
call fcn.00582140
add esp, 0x1c
lea eax, [ebp - 0x814]
push ebx
push dword [ebp - 0x3020]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x304c], edi
test edi, edi
je 0x423f4e
push 0x800
lea eax, [ebp - 0x1014]
push ebx
push eax
call fcn.00577630
push dword [ebp - 0x3058]
lea eax, [ebp - 0x1014]
push dword [ebp - 0x305c]
push 0x400
push eax
call fcn.00582140
add esp, 0x1c
lea eax, [ebp - 0x1014]
push dword [ebp - 0x3024]
push ebx
push ebx
push ebx
push eax
push 0x60818c
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x3020], edi
test edi, edi
je 0x423f3d
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x423f32
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x423f32
push ebx
lea eax, [ebp - 0x3040]
mov dword [ebp - 0x3044], ebx
push eax
lea eax, [ebp - 0x3044]
mov dword [ebp - 0x3040], 4
push eax
push ebx
push 0x20000005
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0x2000
lea eax, [ebp - 0x3014]
push ebx
push eax
call fcn.00577630
add esp, 0xc
lea eax, [ebp - 0x3018]
push eax
push 0x2000
lea eax, [ebp - 0x3014]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x423f32
mov eax, dword [ebp - 0x3018]
test eax, eax
je 0x423edf
lea eax, [ebp - 0x3014]
push eax
push 0x608194
call fcn.004207e1
mov eax, dword [ebp - 0x3018]
pop ecx
pop ecx
lea ecx, [ebp - 0x3014]
mov byte [ebp - 0x3024], bl
push dword [ebp - 0x3024]
add eax, ecx
push eax
mov eax, ecx
lea ecx, [ebp - 0x3030]
push eax
push dword [ebp - 0x302c]
call fcn.00424aac
mov eax, dword [ebp - 0x3018]
test eax, eax
jne 0x423e4e
lea ecx, [ebp - 0x3030]
call fcn.00423a79
test al, al
je 0x423f32
lea ecx, [ebp - 0x3030]
call fcn.00423b28
test al, al
je 0x423f32
mov edx, dword [ebp - 0x302c]
sub esp, 0x18
mov ecx, dword [ebp - 0x3030]
sub edx, ecx
call fcn.00422a54
add esp, 0x18
mov bl, 1
jmp 0x423f32
test edi, edi
je 0x423f3d
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x304c]
test eax, eax
je 0x423f4e
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test esi, esi
je 0x423f59
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x3030]
call fcn.0040c635
mov al, bl
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.0055b830
mov esp, ebp
pop ebp
ret