Function at 0x41b6e0
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 0x44aee3
mov eax, dword fs:[0]
push eax
mov eax, 0x24e4
call fcn.0043dba0
mov eax, dword [0x45e274]
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 0x41b752
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b743
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 0x41b7b4
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.0042d6f0
push eax
call fcn.0042d910
add esp, 0x18
inc dword [edi]
mov eax, dword [0x461704]
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 0x41bd4b
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 0x41bd71
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 0x41bd9e
mov ebx, dword [ebp - 0x2494]
test ebx, ebx
je 0x41b8e6
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
mov ecx, 0x45e020
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 0x41b8c6
mov dword [ebp - 0x2494], eax
mov eax, dword [ebp - 0x2484]
test eax, eax
je 0x41b8bc
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 0x41b8e6
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 0x41b95c
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x41b95c
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 0x41b95c
mov eax, dword [ebp - 0x24b0]
cmp eax, 0xc8
je 0x41b9ed
cmp eax, 0xce
je 0x41b9ed
cmp eax, 0x12e
je 0x41b9f4
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
cmp ecx, ebx
je 0x41b975
cmp dword [edi], 6
jne 0x41b975
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 0x41b9a1
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 0x41b9ca
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.0042f25f
mov esp, ebp
pop ebp
ret 8
cmp eax, 0x12e
jne 0x41b9fe
cmp dword [ebp + 0xc], 6
jl 0x41bdfc
cmp eax, 0xc8
jne 0x41ba22
mov eax, dword [ebp - 0x2484]
mov dword [ebp - 0x2494], ebx
cmp eax, ebx
je 0x41ba1c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2484], ebx
mov eax, dword [0x45e020]
mov edx, dword [eax + 0xc]
mov ecx, 0x45e020
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 0x41c1bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41c1bc
mov edx, dword [ebp - 0x2498]
shr edx, 1
js 0x41bfe4
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, edx
or eax, ecx
jge 0x41baa6
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 0x41c1bc
mov eax, dword [ebp - 0x2498]
shr eax, 1
cmp eax, 0xffffffff
jne 0x41badd
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.0042f9ba
add esp, 8
test eax, eax
js 0x41bfe4
cmp eax, dword [ebx - 8]
jg 0x41bfe4
xor edx, edx
push 0xa
push edx
mov dword [ebx - 0xc], eax
push ebx
mov word [ebx + eax*2], dx
call fcn.00430988
mov esi, eax
mov eax, dword [ebp - 0x2494]
add esi, eax
add esp, 0xc
mov dword [ebp - 0x24ac], esi
test eax, eax
jne 0x41bb51
cmp dword [edi + 0xc], eax
jne 0x41bb42
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
jne 0x41bb3a
mov dword [eax], esi
lea eax, [esi + 1]
push eax
call fcn.0042c8b5
mov ecx, dword [edi + 0x1c]
add esp, 4
mov dword [ecx], eax
jmp 0x41bb42
cmp ecx, esi
jb 0x41bcb4
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x41bb51
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.0041cd00
test al, al
je 0x41bb98
call fcn.00421370
mov dword [ebp - 0x24c0], 0xfc00
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x41bc1b
mov esi, dword [ebp - 0x2494]
cmp esi, dword [ebp - 0x24ac]
jae 0x41bc1b
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 0x41bc27
mov eax, dword [ebp - 0x24a8]
test eax, eax
je 0x41bc27
lea edx, [ebp - 0x2484]
push edx
push eax
mov eax, ebx
push eax
mov ecx, esi
call fcn.0041c2a0
mov ebx, eax
test ebx, ebx
jne 0x41bfee
add esi, dword [ebp - 0x24a8]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x2494], esi
test ecx, ecx
je 0x41bc14
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push esi
call eax
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41bba5
mov ebx, dword [ebp - 0x24c4]
mov esi, dword [ebp - 0x2494]
test ebx, ebx
je 0x41bc34
push ebx
call fcn.0042faf3
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 0x41bc5a
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 0x41c0d4
test ebx, ebx
je 0x41c0d4
cmp esi, ebx
je 0x41c0d4
cmp dword [edi], 6
jge 0x41c0d4
mov esi, dword [ebp - 0x24c8]
jmp 0x41b771
mov edx, eax
mov dword [edx], esi
mov edx, dword [edi + 0x18]
mov esi, 5
mov eax, edi
call fcn.0041c690
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 0x41bce9
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 0x41bd1b
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 0x41bd44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x41b9cf
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
test ecx, ecx
je 0x41bd64
cmp dword [edi], 6
jne 0x41bd64
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc]
push 3
call eax
mov eax, dword [ebp - 0x2484]
test eax, eax
jmp 0x41b998
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
test ecx, ecx
je 0x41bd8a
cmp dword [edi], 6
jne 0x41bd8a
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 0x41b998
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
test ecx, ecx
je 0x41bdb7
cmp dword [edi], 6
jne 0x41bdb7
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 0x41bdda
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 0x41b9be
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.0042d6f0
push eax
call fcn.0042d910
mov edx, dword [0x45e020]
mov eax, dword [edx + 0xc]
add esp, 0x14
mov ecx, 0x45e020
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.0041b5a0
test eax, eax
jns 0x41bebb
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x41be74
cmp dword [edi], 6
jne 0x41be74
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 0x41beab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2488]
call fcn.00403740
jmp 0x41b9ca
lea eax, [ebp - 0x2480]
call fcn.00409d20
mov ecx, 2
lea eax, [ebp - 0x2480]
call fcn.00409d80
lea eax, [ebp - 0x2480]
call fcn.00409d20
mov ebx, dword [ebp - 0x249c]
lea edx, [ebp - 0x2480]
push edx
mov ecx, ebx
call fcn.004096e0
test eax, eax
jne 0x41bf59
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x41bf0d
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 0x41bf44
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2488]
call fcn.00403740
mov eax, 2
jmp 0x41b9cf
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.0042d6f0
push eax
call fcn.0042d910
mov eax, dword [ebp + 0xc]
add esp, 0x14
inc eax
push eax
lea ecx, [ebp - 0x2480]
push ecx
mov ecx, edi
call fcn.0041b6e0
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 0x41bfd2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2488]
call fcn.00403740
mov eax, edi
jmp 0x41b9cf
push 0x80070057
call fcn.00403700
mov esi, dword [ebp - 0x2484]
test esi, esi
je 0x41c007
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 0x41c033
cmp dword [edi], 6
je 0x41c02a
cmp ebx, 3
je 0x41c033
cmp ebx, 4
je 0x41c033
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc]
push ebx
call eax
mov eax, dword [ebp - 0x24c4]
test eax, eax
je 0x41c046
push eax
call fcn.0042faf3
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 0x41c06c
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 0x41c07f
push eax
call edi
mov eax, dword [ebp - 0x248c]
test eax, eax
je 0x41c08c
push eax
call edi
mov eax, dword [ebp - 0x2490]
test eax, eax
je 0x41c099
push eax
call edi
test esi, esi
je 0x41c0a4
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 0x41c0cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x41b9cf
cmp dword [ebp - 0x2484], 0
je 0x41c0f4
mov ecx, dword [ebp - 0x2484]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2484], 0
test ebx, ebx
je 0x41c160
cmp esi, ebx
je 0x41c160
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.0041c690
mov esi, eax
mov eax, dword [ebp - 0x2484]
test eax, eax
je 0x41c130
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 0x41c159
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x41b9cf
mov eax, dword [edi + 0x18]
mov edi, dword [edi + 0x10]
test edi, edi
je 0x41c176
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0xc]
push 0
mov ecx, edi
call eax
cmp dword [ebp - 0x2484], 0
je 0x41c18c
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 0x41c1b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41b9cf
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
test ecx, ecx
je 0x41c1d5
cmp dword [edi], 6
jne 0x41c1d5
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 0x41c1f5
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 0x41bdda
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 0x41b9be