Function at 0x41b790
Capabilities:
Check http status code
Delete file
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ab73
mov eax, dword fs:[0]
push eax
mov eax, 0x24e4
call fcn.0043d810
mov eax, dword [0x45d274]
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 esi, dword [ebp + 8]
lea eax, [esi + 0x448]
mov edi, ecx
push eax
lea ecx, [ebp - 0x2488]
mov dword [ebp - 0x24c8], esi
call fcn.00402c30
xor eax, eax
lea edx, [esi + 0x144a]
mov dword [ebp - 4], eax
cmp edx, eax
je 0x41b802
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b7f3
sub eax, ebx
sar eax, 1
push eax
push edx
lea ebx, [ebp - 0x2488]
call fcn.00402e80
xor eax, eax
mov dword [ebp - 0x2494], eax
mov dword [ebp - 0x2484], eax
mov byte [ebp - 4], 1
cmp dword [edi], 0
je 0x41b864
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [edi]
mov edx, dword [edi + 0x14]
push ecx
push edx
push str.Restatrning_of_downloading_url__attempt_:__s___u
push 2
push 3
push 0xb2
push str.CDownloader::PerformOnline
push str.Downloader.cpp
lea ecx, [ebp - 0x24d4]
call fcn.0042d360
push eax
call fcn.0042d580
add esp, 0x18
inc dword [edi]
mov eax, dword [0x460684]
push 0
push 0
push 0
push 1
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0x2490], ebx
mov byte [ebp - 4], 2
test ebx, ebx
je 0x41bdfb
movzx eax, word [esi + 0x244c]
push 0
push eax
lea ecx, [esi + 0x42]
push ecx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x248c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x41be21
mov ebx, dword [ebp - 0x248c]
xor edx, edx
cmp dword [esi + 0x2450], 3
setne dl
lea eax, [edx - 1]
and eax, 0x800000
push eax
mov eax, dword [ebp - 0x2488]
push 0
push 0
push 0
push eax
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x24a4], esi
mov byte [ebp - 4], 4
test esi, esi
je 0x41be4e
mov ebx, dword [ebp - 0x2494]
test ebx, ebx
je 0x41b996
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d020
call eax
add eax, 0x10
mov dword [ebp - 0x24b4], eax
push ebx
lea ecx, [ebp - 0x24b4]
push str.Range:_bytes_u_
push ecx
mov byte [ebp - 4], 5
call fcn.004032e0
mov ebx, dword [ebp - 0x24b4]
mov eax, dword [ebx - 0xc]
add esp, 0xc
push 0x10000000
push eax
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x41b976
mov dword [ebp - 0x2494], eax
mov eax, dword [ebp - 0x2484]
test eax, eax
je 0x41b96c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2484], 0
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b996
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
mov dword [ebp - 0x24b0], ebx
mov dword [ebp - 0x2498], 4
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x41ba0c
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x41ba0c
push ebx
lea ecx, [ebp - 0x2498]
push ecx
lea edx, [ebp - 0x24b0]
push edx
push ebx
push 0x20000013
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x41ba0c
mov eax, dword [ebp - 0x24b0]
cmp eax, 0xc8
je 0x41ba9d
cmp eax, 0xce
je 0x41ba9d
cmp eax, 0x12e
je 0x41baa4
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
cmp ecx, ebx
je 0x41ba25
cmp dword [edi], 6
jne 0x41ba25
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc]
push 3
call eax
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
mov ecx, dword [ebp - 0x248c]
push ecx
call esi
mov edx, dword [ebp - 0x2490]
push edx
call esi
mov eax, dword [ebp - 0x2484]
cmp eax, ebx
je 0x41ba51
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2488]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ba7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
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.0042eecf
mov esp, ebp
pop ebp
ret 8
cmp eax, 0x12e
jne 0x41baae
cmp dword [ebp + 0xc], 6
jl 0x41beac
cmp eax, 0xc8
jne 0x41bad2
mov eax, dword [ebp - 0x2484]
mov dword [ebp - 0x2494], ebx
cmp eax, ebx
je 0x41bacc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2484], ebx
mov eax, dword [0x45d020]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d020
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x24a0], ebx
push 0
lea eax, [ebp - 0x2498]
push eax
push 0
push 0
push 5
mov byte [ebp - 4], 7
push esi
mov dword [ebp - 0x2498], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x41c26c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41c26c
mov edx, dword [ebp - 0x2498]
shr edx, 1
js 0x41c094
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, edx
or eax, ecx
jge 0x41bb56
push edx
lea ecx, [ebp - 0x24a0]
call fcn.004035c0
mov ebx, dword [ebp - 0x24a0]
push 0
lea ecx, [ebp - 0x2498]
push ecx
push ebx
push 0
push 5
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x41c26c
mov eax, dword [ebp - 0x2498]
shr eax, 1
cmp eax, 0xffffffff
jne 0x41bb8d
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.0042f686
add esp, 8
test eax, eax
js 0x41c094
cmp eax, dword [ebx - 8]
jg 0x41c094
xor edx, edx
push 0xa
push edx
mov dword [ebx - 0xc], eax
push ebx
mov word [ebx + eax*2], dx
call fcn.00430608
mov esi, eax
mov eax, dword [ebp - 0x2494]
add esi, eax
add esp, 0xc
mov dword [ebp - 0x24ac], esi
test eax, eax
jne 0x41bc01
cmp dword [edi + 0xc], eax
jne 0x41bbf2
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
jne 0x41bbea
mov dword [eax], esi
lea eax, [esi + 1]
push eax
call fcn.0042c525
mov ecx, dword [edi + 0x1c]
add esp, 4
mov dword [ecx], eax
jmp 0x41bbf2
cmp ecx, esi
jb 0x41bd64
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x41bc01
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
xor eax, eax
mov dword [ebp - 0x24a8], eax
mov dword [ebp - 0x24c4], eax
mov dword [ebp - 0x24c0], eax
mov dword [ebp - 0x24bc], eax
mov dword [ebp - 0x24b8], eax
mov eax, 0xfc00
lea esi, [ebp - 0x24c4]
mov byte [ebp - 4], 8
call fcn.0041cdb0
test al, al
je 0x41bc48
call fcn.0041ce50
mov dword [ebp - 0x24c0], 0xfc00
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x41bccb
mov esi, dword [ebp - 0x2494]
cmp esi, dword [ebp - 0x24ac]
jae 0x41bccb
mov eax, dword [ebp - 0x24c0]
mov ebx, dword [ebp - 0x24c4]
mov ecx, dword [ebp - 0x24a4]
lea edx, [ebp - 0x24a8]
push edx
push eax
push ebx
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x41bcd7
mov eax, dword [ebp - 0x24a8]
test eax, eax
je 0x41bcd7
lea edx, [ebp - 0x2484]
push edx
push eax
mov eax, ebx
push eax
mov ecx, esi
call fcn.0041c350
mov ebx, eax
test ebx, ebx
jne 0x41c09e
add esi, dword [ebp - 0x24a8]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x2494], esi
test ecx, ecx
je 0x41bcc4
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push esi
call eax
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41bc55
mov ebx, dword [ebp - 0x24c4]
mov esi, dword [ebp - 0x2494]
test ebx, ebx
je 0x41bce4
push ebx
call fcn.0042f7bf
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x24a0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41bd0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x24a4]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ecx
call ebx
mov edx, dword [ebp - 0x248c]
push edx
call ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2490]
push eax
call ebx
mov ecx, dword [edi + 4]
mov ebx, dword [ebp - 0x24ac]
test ecx, ecx
jne 0x41c184
test ebx, ebx
je 0x41c184
cmp esi, ebx
je 0x41c184
cmp dword [edi], 6
jge 0x41c184
mov esi, dword [ebp - 0x24c8]
jmp 0x41b821
mov edx, eax
mov dword [edx], esi
mov edx, dword [edi + 0x18]
mov esi, 5
mov eax, edi
call fcn.0041c740
mov edi, eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bd99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x24a4]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x248c]
push edx
call esi
mov eax, dword [ebp - 0x2490]
push eax
call esi
mov eax, dword [ebp - 0x2484]
test eax, eax
je 0x41bdcb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2488]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bdf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x41ba7f
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
test ecx, ecx
je 0x41be14
cmp dword [edi], 6
jne 0x41be14
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc]
push 3
call eax
mov eax, dword [ebp - 0x2484]
test eax, eax
jmp 0x41ba48
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
test ecx, ecx
je 0x41be3a
cmp dword [edi], 6
jne 0x41be3a
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc]
push 3
call eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x2484]
test eax, eax
jmp 0x41ba48
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
test ecx, ecx
je 0x41be67
cmp dword [edi], 6
jne 0x41be67
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc]
push 3
call eax
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push ebx
call esi
mov ecx, dword [ebp - 0x2490]
push ecx
call esi
mov eax, dword [ebp - 0x2484]
test eax, eax
je 0x41be8a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2488]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41ba6e
mov ecx, dword [ebp + 0xc]
push ecx
push str.HTTP_status_code_302_returned__RedirectCount___i
push 1
push 3
push 0xdf
push str.CDownloader::PerformOnline
push str.Downloader.cpp
lea ecx, [ebp - 0x24e0]
call fcn.0042d360
push eax
call fcn.0042d580
mov edx, dword [0x45d020]
mov eax, dword [edx + 0xc]
add esp, 0x14
mov ecx, 0x45d020
call eax
add eax, 0x10
mov dword [ebp - 0x249c], eax
lea ecx, [ebp - 0x249c]
push ecx
mov ebx, esi
mov byte [ebp - 4], 6
call fcn.0041b650
test eax, eax
jns 0x41bf6b
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x41bf24
cmp dword [edi], 6
jne 0x41bf24
mov eax, dword [edi + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
push 3
call edx
lea ecx, [ebp - 0x249c]
call fcn.00403740
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
mov eax, dword [ebp - 0x248c]
push eax
call esi
mov ecx, dword [ebp - 0x2490]
push ecx
call esi
mov eax, dword [ebp - 0x2484]
test eax, eax
je 0x41bf5b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2488]
call fcn.00403740
jmp 0x41ba7a
lea eax, [ebp - 0x2480]
call fcn.00409ce0
mov ecx, 2
lea eax, [ebp - 0x2480]
call fcn.00409d40
lea eax, [ebp - 0x2480]
call fcn.00409ce0
mov ebx, dword [ebp - 0x249c]
lea edx, [ebp - 0x2480]
push edx
mov ecx, ebx
call fcn.004096a0
test eax, eax
jne 0x41c009
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x41bfbd
mov edx, dword [edi + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push edx
push 2
call eax
lea ecx, [ebp - 0x249c]
call fcn.00403740
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
mov ecx, dword [ebp - 0x248c]
push ecx
call esi
mov edx, dword [ebp - 0x2490]
push edx
call esi
mov eax, dword [ebp - 0x2484]
test eax, eax
je 0x41bff4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2488]
call fcn.00403740
mov eax, 2
jmp 0x41ba7f
push ebx
push str.Redirecting_to:__s
push 1
push 3
push 0xea
push str.CDownloader::PerformOnline
push str.Downloader.cpp
lea ecx, [ebp - 0x24ec]
call fcn.0042d360
push eax
call fcn.0042d580
mov eax, dword [ebp + 0xc]
add esp, 0x14
inc eax
push eax
lea ecx, [ebp - 0x2480]
push ecx
mov ecx, edi
call fcn.0041b790
lea ecx, [ebp - 0x249c]
mov edi, eax
call fcn.00403740
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
mov edx, dword [ebp - 0x248c]
push edx
call esi
mov eax, dword [ebp - 0x2490]
push eax
call esi
mov eax, dword [ebp - 0x2484]
test eax, eax
je 0x41c082
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2488]
call fcn.00403740
mov eax, edi
jmp 0x41ba7f
push 0x80070057
call fcn.00403700
mov esi, dword [ebp - 0x2484]
test esi, esi
je 0x41c0b7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x2484], esi
mov eax, dword [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
test ecx, ecx
je 0x41c0e3
cmp dword [edi], 6
je 0x41c0da
cmp ebx, 3
je 0x41c0e3
cmp ebx, 4
je 0x41c0e3
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc]
push ebx
call eax
mov eax, dword [ebp - 0x24c4]
test eax, eax
je 0x41c0f6
push eax
call fcn.0042f7bf
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x24a0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c11c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24a4]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x41c12f
push eax
call edi
mov eax, dword [ebp - 0x248c]
test eax, eax
je 0x41c13c
push eax
call edi
mov eax, dword [ebp - 0x2490]
test eax, eax
je 0x41c149
push eax
call edi
test esi, esi
je 0x41c154
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2488]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c17d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x41ba7f
cmp dword [ebp - 0x2484], 0
je 0x41c1a4
mov ecx, dword [ebp - 0x2484]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2484], 0
test ebx, ebx
je 0x41c210
cmp esi, ebx
je 0x41c210
mov eax, dword [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [edi + 4]
mov edx, dword [edi + 0x18]
neg esi
sbb esi, esi
and esi, 0xfffffffd
add esi, 4
mov eax, edi
call fcn.0041c740
mov esi, eax
mov eax, dword [ebp - 0x2484]
test eax, eax
je 0x41c1e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2488]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c209
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x41ba7f
mov eax, dword [edi + 0x18]
mov edi, dword [edi + 0x10]
test edi, edi
je 0x41c226
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0xc]
push 0
mov ecx, edi
call eax
cmp dword [ebp - 0x2484], 0
je 0x41c23c
mov ecx, dword [ebp - 0x2484]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2488]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c265
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41ba7f
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
test ecx, ecx
je 0x41c285
cmp dword [edi], 6
jne 0x41c285
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc]
push 3
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c2a5
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
mov eax, dword [ebp - 0x248c]
push eax
call esi
mov ecx, dword [ebp - 0x2490]
push ecx
call esi
mov eax, dword [ebp - 0x2484]
test eax, eax
je 0x41be8a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2488]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41ba6e