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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x10001439
mov edi, 0x1001aa94
jmp 0x10001469
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001440
sub ecx, edx
lea ebx, [ecx + 1]
lea eax, [ebx + ebx]
push eax
call fcn.10007336
mov edi, eax
add esp, 4
test edi, edi
je 0x10001469
push ebx
push esi
push edi
call fcn.1000523b
add esp, 0xc
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10001477
mov ebx, 0x1001aa94
jmp 0x100014ad
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001480
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp + 8], eax
add eax, eax
push eax
call fcn.10007336
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100014ad
push dword [ebp + 8]
push esi
push ebx
call fcn.1000523b
add esp, 0xc
push 0
push 0
push 0
push 0
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 4
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x100014ec
push 0x1001aa98
or esi, 0xffffffff
call fcn.10008142
add esp, 4
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100014fa
mov edi, 0x1001aa94
jmp 0x10001530
mov ecx, eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001500
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp + 8], eax
add eax, eax
push eax
call fcn.10007336
mov edi, eax
add esp, 4
test edi, edi
je 0x10001530
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
push ecx
push edi
call fcn.1000523b
add esp, 0xc
push 0
push 0x1bb
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp + 8], eax
test eax, eax
jne 0x1000156c
push 0x1001aa98
or edi, 0xffffffff
call fcn.10008142
add esp, 4
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, esi
mov edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x800000
push 0
push 0
push 0
push ebx
push 0x1001aa9c
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
test ebx, ebx
jne 0x100015b5
push 0x1001aa98
or ebx, 0xffffffff
call fcn.10008142
add esp, 4
mov edi, eax
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp + 8]
call esi
mov edx, ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x3300
push eax
push 0x1f
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x100015e2
push 0x1001aa98
call fcn.10008142
add esp, 4
push esi
jmp 0x100016e4
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x100015cf
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x100015cf
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20000013
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x100015cf
mov edi, 0xfa000
mov dword [ebp - 0xc], 0
push edi
call fcn.10007336
mov ecx, eax
add esp, 4
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x100015cf
xor esi, esi
lea eax, [esi + 1]
cmp eax, edi
jbe 0x1000165e
add edi, edi
push edi
push ecx
call fcn.100055b4
mov ecx, eax
add esp, 8
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x100016d4
lea eax, [ebp - 0xc]
push eax
mov eax, edi
sub eax, esi
dec eax
push eax
lea eax, [esi + ecx]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x100016c8
mov eax, dword [ebp - 0xc]
add esi, eax
test eax, eax
je 0x10001685
mov ecx, dword [ebp - 4]
jmp 0x10001642
mov eax, dword [ebp - 4]
mov byte [esi + eax], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
cmp ecx, 0xffffffff
jne 0x1000169e
push 0x1001aa98
jmp 0x1000169f
push eax
call fcn.10008142
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 4
mov edi, eax
push dword [ebp - 8]
call esi
push dword [ebp + 8]
call esi
push ebx
call esi
mov edx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call fcn.10007224
add esp, 4
push 0x1001aa98
call fcn.10008142
add esp, 4
push dword [ebp - 8]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, eax
call esi
push dword [ebp + 8]
call esi
push ebx
call esi
mov eax, edi
or edx, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret