Function at 0x424730
Capabilities:
Initialize winhttp library
Prepare http request
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 1
push 0x30
call fcn.004f76d9
mov edi, eax
lea ebx, [ebp + 4]
push fcn.00437f50
lea eax, [ebp - 4]
add ebx, 0xfffffffc
push eax
push ebx
or esi, 0xffffffff
mov dword [ebp - 0xc], ebx
call fcn.00428190
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push fcn.0042a8d0
push eax
push ebx
call fcn.00428190
add esp, 0x20
mov dword [ebp - 0x10], eax
cmp dword [0x5832d4], 0
jne 0x42478f
push 0
push 0x5832d8
call fcn.00434420
add esp, 8
lea eax, [edi + 0x14]
mov dword [0x5832d4], 1
push eax
call fcn.0043d8b0
mov ebx, dword [ebp + 0xc]
add esp, 4
test eax, eax
jne 0x424846
push 1
push 0x50
call fcn.004f76d9
mov esi, dword [ebp + 0x10]
add esp, 8
mov dword [edi + 0x20], eax
mov dword [eax + 0x48], 0xffffffff
test esi, esi
je 0x4247d9
push esi
call fcn.004246a0
add esp, 4
mov dword [edi + 0x1c], esi
push 0
push dword [ebp + 8]
mov dword [edi + 0x2c], ebx
push dword [ebp - 4]
call fcn.00439700
add esp, 0xc
test eax, eax
jne 0x424843
mov esi, dword [ebp - 4]
push 0x10000000
push eax
push eax
push eax
push 0x513240
mov dword [ebp - 8], esi
call dword [0x510468]
mov dword [edi + 0x10], eax
test eax, eax
je 0x424843
push 0
push 0x6f0c00
push 0x424d80
push eax
call dword [0x510458]
push eax
call fcn.004f5de0
add esp, 4
cmp eax, 0xffffffff
jne 0x424875
push str.WinHttpSetStatusCallback_failed__m
push 0x20003
call fcn.0042ab50
add esp, 8
or esi, 0xffffffff
push 0x5832d8
call fcn.00434430
mov eax, dword [0x5832d0]
add esp, 4
test eax, eax
je 0x424a10
mov eax, dword [eax]
mov dword [edi], eax
mov eax, dword [0x5832d0]
mov dword [eax], edi
mov eax, dword [edi]
mov dword [eax + 4], edi
jmp 0x424a18
push 0x5130d8
push esi
call fcn.00437fc0
mov ecx, dword fs:[0x2c]
test eax, eax
push 0x5130cc
push dword [ebp - 8]
mov esi, 0x50
mov ecx, dword [ecx]
cmovne esi, eax
mov dword [ecx + 0x14c0], eax
call fcn.00437f80
push eax
push dword [ebp - 0xc]
call fcn.00428840
add esp, 0x18
push 0
push esi
push dword [eax]
push dword [edi + 0x10]
call dword [0x510464]
push eax
call fcn.004f5de0
add esp, 4
mov dword [edi + 0xc], eax
test eax, eax
jne 0x4248da
push str.WinHttpConnect_failed__m
jmp 0x424836
push 0x513078
push dword [ebp - 8]
mov esi, 0x51328c
call fcn.00437f80
add esp, 8
nop
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x424910
test cl, cl
je 0x42490c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x424910
add eax, 2
add esi, 2
test cl, cl
jne 0x4248f0
xor esi, esi
jmp 0x424915
sbb esi, esi
or esi, 1
push 0x5130b4
push dword [ebp - 8]
call fcn.00437f80
push eax
push dword [ebp - 0xc]
call fcn.00428840
add esp, 0x10
xor ecx, ecx
mov edx, 0x800000
test esi, esi
cmove ecx, edx
push ecx
push 0
push 0
push 0
push dword [eax]
push 0x513294
push dword [edi + 0xc]
call dword [0x510448]
push eax
call fcn.004f5de0
add esp, 4
mov dword [edi + 8], eax
test eax, eax
jne 0x42496b
push str.WinHttpOpenRequest_failed__m
jmp 0x424836
push str.Connection:_close
push dword [ebp - 0x10]
call fcn.0042a900
add esp, 8
push 0xa0000000
push 0xffffffffffffffff
push dword [eax]
push dword [edi + 8]
call dword [0x51044c]
test ebx, ebx
je 0x4249cf
mov eax, dword [ebx]
mov esi, ebx
test eax, eax
je 0x4249cf
mov ebx, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
push eax
push 0x5132d0
push ebx
call fcn.00428790
add esp, 0x10
push 0xa0000000
push 0xffffffffffffffff
push dword [eax]
push dword [edi + 8]
call dword [0x51044c]
mov esi, dword [esi]
mov eax, dword [esi]
test eax, eax
jne 0x42499c
mov ebx, dword [ebp + 0xc]
push edi
push 0
push 0
push 0
push 0
push 0
push dword [edi + 8]
call dword [0x510450]
push eax
call fcn.004f5db0
add esp, 4
test eax, eax
jne 0x424a09
push str.WinHttpSendRequest_failed__m
push 0x20003
call fcn.0042ab50
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x424846
mov dword [edi], edi
mov dword [0x5832d0], edi
push 0x5832d8
mov dword [edi + 4], 0
call fcn.00434440
add esp, 4
test esi, esi
je 0x424a4c
mov eax, dword [edi + 8]
test eax, eax
je 0x424a3a
push eax
jmp 0x424a6b
push edi
call fcn.00424bd0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x424a78
cmp dword [ebx + 0x20], 0
je 0x424a78
push edi
call fcn.00424cd0
add esp, 4
test eax, eax
je 0x424a78
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x424a78
push ecx
call dword [0x510444]
mov dword [edi + 8], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret