Function at 0x401620
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4103d1
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x418004]
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 dword [ebp - 0x78], edx
mov eax, ecx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 1
call fcn.00402290
sub esp, 0x18
mov dword [ebp - 0x74], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004020f0
lea ecx, [ebp - 0x64]
call fcn.00401340
add esp, 0x18
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00401c50
mov ecx, eax
call fcn.00402c50
mov edx, eax
mov dword [ebp - 0x18], edx
call fcn.00402c60
mov ebx, eax
call fcn.00401c50
mov ecx, edx
mov esi, eax
call fcn.00402020
test al, al
jne 0x40190c
mov ecx, ebx
call fcn.00402020
test al, al
jne 0x40190c
cmp word [esi], 0
je 0x40190c
push 0
push 0
push 0
push 0
push 0x41600c
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x6c], edi
test edi, edi
je 0x40190c
push 0x1388
push 0x1388
push 0x1388
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x4018f9
mov ecx, dword [ebp - 0x18]
movzx edx, word [esi]
call fcn.00402040
push 0
push edx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [ebp - 0x68], edx
test edx, edx
je 0x4018f9
mov ecx, 0x1bb
mov eax, 0x800000
cmp word [esi], cx
mov ecx, 0
cmovne eax, ecx
push eax
push ecx
push ecx
push ecx
mov ecx, ebx
call fcn.00402040
push eax
push 0x416044
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
test ebx, ebx
jne 0x40178e
lea ecx, [ebp - 0x64]
call fcn.004015e0
push dword [ebp - 0x68]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
jmp 0x401914
mov eax, 0x1bb
cmp word [esi], ax
jne 0x4017b6
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x3301
push eax
push 0x1f
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x4018de
mov eax, dword [ebp - 0x78]
push 0
push 0
push 0
push 0
test eax, eax
jne 0x4017c9
push eax
push eax
jmp 0x4017cc
push 0xffffffffffffffff
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4018de
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4018de
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], 0
call fcn.00402290
mov byte [ebp - 4], 3
nop
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4018a1
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4018a1
inc esi
push esi
call fcn.004038ed
push esi
mov edi, eax
push 0
push edi
call fcn.00404d10
add esp, 0x10
mov byte [edi], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push edi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4018a1
push edi
lea ecx, [ebp - 0xac]
call fcn.00402260
push eax
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.00402c70
add esp, 4
lea ecx, [ebp - 0x30]
push eax
call fcn.00402210
lea ecx, [ebp - 0x94]
call fcn.00402200
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 3
call fcn.00402200
push edi
call fcn.004038aa
add esp, 4
cmp dword [ebp - 0x14], 0
ja 0x401800
lea ecx, [ebp - 0x30]
call fcn.00402020
test al, al
jne 0x4018b8
mov eax, ecx
mov ecx, dword [ebp - 0x70]
push eax
call fcn.004021d0
lea ecx, [ebp - 0x30]
call fcn.00402200
lea ecx, [ebp - 0x64]
call fcn.004015e0
mov edi, dword [ebp - 0x6c]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
push dword [ebp - 0x68]
call esi
push edi
call esi
jmp 0x401914
lea ecx, [ebp - 0x64]
call fcn.004015e0
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
push dword [ebp - 0x68]
call esi
push edi
call esi
jmp 0x401914
lea ecx, [ebp - 0x64]
call fcn.004015e0
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
jmp 0x401914
lea ecx, [ebp - 0x64]
call fcn.004015e0
lea ecx, [ebp + 8]
call fcn.00402060
mov eax, dword [ebp - 0x70]
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.0040389c
mov esp, ebp
pop ebp
ret