Function at 0x41b260
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a737
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x24b4
call fcn.0043e3e0
mov eax, dword [0x477cb0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2498], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2484], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x24b4], edi
mov dword [ebp - 4], 0
test eax, eax
je 0x41b669
push eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
call esi
test eax, eax
je 0x41b669
test edi, edi
je 0x41b669
push edi
call esi
test eax, eax
je 0x41b669
mov dword [ebp - 0x24ac], 0
mov ax, word [ebp + 0x14]
test ax, ax
je 0x41b35f
cmp ax, 1
je 0x41b35f
lea eax, [ebp - 0x24a8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 1
push 0xb
push 0
lea ecx, [ebp + 0x14]
push ecx
lea edx, [ebp - 0x24a8]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov esi, eax
test esi, esi
jl 0x41b4b4
cmp word [ebp - 0x24a0], 0
mov byte [ebp - 4], 0
je 0x41b352
lea eax, [ebp - 0x24a8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 0x80004001
jmp 0x41b68f
lea ecx, [ebp - 0x24a8]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x2480]
call fcn.0041e2f0
mov ecx, 2
lea eax, [ebp - 0x2480]
call fcn.0041edc0
lea eax, [ebp - 0x2480]
call fcn.0041e2f0
mov ecx, edi
lea edx, [ebp - 0x2480]
call fcn.0041e350
test eax, eax
je 0x41b669
mov eax, dword [ebp - 0x30]
cmp eax, 2
je 0x41b3ab
cmp eax, 3
jne 0x41b669
lea esi, [ebx - 4]
call fcn.0041b150
xor edi, edi
cmp eax, edi
jl 0x41b68f
cmp dword [ebp - 0x30], 3
jne 0x41b3d2
mov dword [ebp - 0x24ac], 0x800000
call fcn.0041b1e0
mov dword [ebp - 0x2488], edi
mov byte [ebp - 4], 2
lea eax, [ebx + 0x74]
mov dword [ebp - 0x24c0], eax
mov eax, dword [eax]
lea ecx, [ebp - 0x243e]
push ecx
push eax
call fcn.0043a0da
add esp, 8
cmp eax, edi
setne al
test al, al
jne 0x41b4cc
mov dx, word [ebx + 0x70]
cmp dx, word [ebp - 0x34]
jne 0x41b4cc
mov eax, dword [ebx + 0x7c]
mov dword [ebp - 0x2494], eax
lea ecx, [ebp - 0x2490]
push ecx
lea esi, [ebp - 0x2038]
call fcn.0041ade0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x1036]
push edx
lea ecx, [ebp - 0x2490]
call fcn.00408a6c
mov eax, dword [ebp - 0x24ac]
push eax
push edi
push edi
push edi
mov ecx, dword [ebp - 0x2490]
push ecx
mov edx, dword [ebp - 0x2484]
push edx
mov eax, dword [ebp - 0x2494]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x24b8], esi
mov dword [ebp - 0x24bc], esi
mov eax, 4
mov byte [ebp - 4], al
cmp esi, edi
jne 0x41b4fe
call fcn.004030e7
mov esi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2490]
call fcn.0041b080
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2488]
cmp eax, edi
je 0x41b4ad
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, esi
jmp 0x41b68f
mov byte [ebp - 4], 0
lea edx, [ebp - 0x24a8]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, esi
jmp 0x41b68f
push edi
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x243e]
push edx
mov eax, dword [ebx + 0x78]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x2488], eax
cmp eax, edi
jne 0x41b415
call fcn.004030e7
mov byte [ebp - 4], 0
jmp 0x41b68f
cmp dword [ebp - 0x30], 3
jne 0x41b558
mov dword [ebp - 0x248c], edi
mov dword [ebp - 0x24b0], eax
lea ecx, [ebp - 0x24b0]
push ecx
lea edx, [ebp - 0x248c]
push edx
push 0x1f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
je 0x41b537
or dword [ebp - 0x248c], 0x3300
jmp 0x41b541
mov dword [ebp - 0x248c], 0x3300
mov eax, dword [ebp - 0x24b0]
push eax
lea ecx, [ebp - 0x248c]
push ecx
push 0x1f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [ebx + 0x3c], edi
jne 0x41b5d4
mov dword [ebp - 0x24a4], 1
mov dword [ebp - 0x24a0], edi
mov dword [ebp - 0x249c], edi
mov byte [ebp - 4], 5
lea edi, [ebx + 0x24]
lea ebx, [ebp - 0x24a4]
mov ecx, dword [ebp - 0x24b4]
mov edx, dword [ebp - 0x2498]
mov edx, dword [edx + 0x78]
call fcn.0041f1d0
test eax, eax
jne 0x41b5a6
push 0xc
mov eax, ebx
push eax
push 0x26
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x24a0]
test eax, eax
je 0x41b5bb
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x249c]
test eax, eax
je 0x41b5cc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor edi, edi
mov ebx, dword [ebp - 0x2498]
lea eax, [ebx + 0x7c]
mov ecx, dword [ebp - 0x2494]
cmp ecx, dword [eax]
je 0x41b5f4
mov esi, dword [ebp - 0x2488]
mov dword [ebp - 0x2488], edi
mov edi, eax
call fcn.0041b0b0
lea eax, [ebx + 0x40]
call fcn.0041cf50
lea esi, [ebp - 0x243e]
mov edi, dword [ebp - 0x24c0]
call fcn.0041b050
mov dx, word [ebp - 0x34]
mov word [ebx + 0x70], dx
mov dword [ebp - 0x24bc], 0
lea edi, [ebx + 0x80]
mov esi, dword [ebp - 0x24b8]
call fcn.0041b0b0
lea edi, [ebx + 0x84]
mov esi, dword [ebp - 0x2484]
call fcn.0041e2b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2490]
call fcn.0041b080
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2488]
test eax, eax
je 0x41b665
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x41b68f
mov eax, 0x80070057
jmp 0x41b68f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043917f
mov esp, ebp
pop ebp
ret 0x1c