Function at 0x442d70
Capabilities:
Prepare http request
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2247
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x4d411c]
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 esi, ecx
mov dword [ebp - 0x334], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x338], 0
cmp dword [esi + 0x17c], 1
mov dword [ebp - 0x32c], eax
mov edi, dword [eax]
mov dword [ebp - 0x340], eax
mov byte [ebp - 0x330], 0
lea eax, [edi + 0x10]
jne 0x442e6d
xorps xmm0, xmm0
mov dword [ebp - 0x344], 0
lea eax, [ebp - 0x44]
movq qword [ebp - 0x1c], xmm0
movups xmmword [ebp - 0x2c], xmm0
push eax
lea ecx, [esi + 0x14]
movq qword [ebp - 0x34c], xmm0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x18], 1
call fcn.0040dfe0
cmp dword [eax + 0x14], 8
jb 0x442e22
mov eax, dword [eax]
lea ecx, [ebp - 0x34c]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push dword [esi + 0x268]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
mov ecx, dword [ebp - 0x30]
mov esi, eax
cmp ecx, 8
jb 0x442e51
inc ecx
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
call fcn.0040d4d0
mov eax, dword [ebp - 0x330]
test esi, esi
movzx eax, al
mov ecx, 1
cmovne eax, ecx
mov dword [ebp - 0x330], eax
lea eax, [edi + 0x10]
lea ecx, [ebp - 0x320]
push ecx
mov ecx, eax
call fcn.00447a60
mov esi, eax
mov ecx, dword [ebp - 0x334]
add ecx, 0x2c
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x11c]
call fcn.0040cbd0
push ecx
lea eax, [esi + 0x60]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x11c]
call fcn.0040d720
push ecx
lea eax, [esi + 0x78]
push eax
lea ecx, [ebp - 0x11c]
call fcn.0040d9b0
lea eax, [esi + 0x90]
push eax
lea edx, [ebp - 0xa4]
lea ecx, [ebp - 0x44]
call fcn.0040deb0
push eax
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 2
call fcn.00407d70
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x442efb
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.0040d4d0
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x11c]
lea eax, [ebp - 0x274]
mov dword [ebp - 0x34], 0
push eax
call fcn.0040dd30
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 3
push ecx
mov ecx, eax
call fcn.004044d0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.0040dfe0
lea ecx, [ebp - 0x1b0]
call fcn.0040ca60
mov eax, dword [ebp - 0x1b4]
cmp eax, 8
jb 0x442f6b
inc eax
lea ecx, [ebp - 0x1c8]
push eax
push dword [ebp - 0x1c8]
call fcn.0040d4d0
xor eax, eax
mov dword [ebp - 0x1b4], 7
mov dword [ebp - 0x1b8], 0
mov word [ebp - 0x1c8], ax
lea ecx, [ebp - 0x25c]
call fcn.0040ca60
mov eax, dword [ebp - 0x260]
cmp eax, 8
jb 0x442fb1
inc eax
lea ecx, [ebp - 0x274]
push eax
push dword [ebp - 0x274]
call fcn.0040d4d0
xor eax, eax
mov dword [ebp - 0x260], 7
mov dword [ebp - 0x264], 0
mov word [ebp - 0x274], ax
lea ecx, [ebp - 0x11c]
call fcn.0040ca60
lea ecx, [ebp - 0x308]
mov byte [ebp - 4], 9
call fcn.0040ca60
mov eax, dword [ebp - 0x30c]
cmp eax, 8
jb 0x443006
inc eax
lea ecx, [ebp - 0x320]
push eax
push dword [ebp - 0x320]
call fcn.0040d4d0
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x30c], 7
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0x310], 0
cmovae edx, dword [ebp - 0x5c]
add ecx, 0x30
mov word [ebp - 0x320], ax
cmp dword [ecx + 0x14], 8
jb 0x44303c
mov ecx, dword [ecx]
mov esi, dword [ebp - 0x334]
mov eax, 0x40
mov dword [ebp - 0x324], 0x800040
cmp byte [esi + 0x270], 0
cmovne eax, dword [ebp - 0x324]
push eax
push 0
push 0
push 0
push edx
push ecx
push dword [esi + 0x26c]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [edi + 0x40], eax
test eax, eax
jne 0x443127
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x12
push 0x4ba154
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0xf
mov esi, eax
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.0040b860
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xa
push eax
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.00442170
add esp, 4
mov ecx, dword [ebp - 0x32c]
push eax
mov byte [ebp - 4], 0xb
push esi
mov ecx, dword [ecx]
call fcn.00433f20
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4430e5
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.0040c310
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 0x10
jb 0x44310c
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.0040c310
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x44319f
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.0040d4d0
jmp 0x44319f
cmp byte [ebp - 0x330], 0
je 0x4431bd
push 0xc
lea ecx, [ebp - 0x34c]
push ecx
push 0x26
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4431bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Setting_proxy_options
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040b960
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
push eax
mov edx, esi
lea ecx, [ebp - 0x44]
call fcn.00442170
add esp, 4
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x32c]
push eax
push esi
mov ecx, dword [ecx]
call fcn.00433f20
lea ecx, [ebp - 0x44]
call fcn.0040c3c0
lea ecx, [ebp - 0x2c]
call fcn.0040c3c0
lea ecx, [ebp - 0x5c]
call fcn.0040d020
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.0047e3fa
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x1b8], 0
je 0x44321b
push 4
lea eax, [ebp - 0x324]
mov dword [ebp - 0x324], 2
push eax
push 0x4d
push dword [edi + 0x40]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x44321b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Setting_autologon_policy_to_WINHTTP_AUTOLOGON_SECURITY_LEVEL_HIGH
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040b960
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
push eax
mov edx, esi
lea ecx, [ebp - 0x44]
call fcn.00442170
add esp, 4
mov byte [ebp - 4], 0xf
jmp 0x443178
mov al, byte [esi + 0x1e4]
test al, al
jne 0x44327a
push 4
lea eax, [ebp - 0x324]
mov dword [ebp - 0x324], 0x3300
push eax
push 0x1f
push dword [edi + 0x40]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x44327a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Setting_ignore_server_certificate_verification
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040b960
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
push eax
mov edx, esi
lea ecx, [ebp - 0x44]
call fcn.00442170
add esp, 4
mov byte [ebp - 4], 0x11
jmp 0x443178
mov ecx, dword [edi + 0x10]
call fcn.0040ed50
mov dword [ebp - 0x334], eax
test eax, eax
je 0x4432f7
mov ecx, dword [edi + 0x10]
mov eax, 0x4e3588
add ecx, 0x30
cmp dword [0x4e359c], 8
cmovae eax, dword [0x4e3588]
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x4432b0
mov ecx, dword [ecx]
push dword [0x4e3598]
mov edx, dword [edx]
push eax
call fcn.00408150
add esp, 8
test eax, eax
je 0x4433a8
mov ecx, dword [edi + 0x10]
mov edx, 0x4e35e8
add ecx, 0x30
call fcn.00407b90
test al, al
jne 0x4433a8
mov eax, dword [ebp - 0x334]
cmp eax, 0xffffffff
jne 0x443392
mov dword [edi + 0x48], 2
mov edx, dword [edi + 0x10]
cmp dword [edx + 0x18], 0
je 0x4433fa
add edx, 0x14
lea ecx, [ebp - 0x2c]
call fcn.0040e7b0
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push 0x20000000
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [edi + 0x40]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x4433f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4ba1f4
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040b960
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x15
push eax
mov edx, esi
lea ecx, [ebp - 0x74]
call fcn.00442170
add esp, 4
mov ecx, dword [ebp - 0x32c]
push eax
mov byte [ebp - 4], 0x16
push esi
mov ecx, dword [ecx]
call fcn.00433f20
lea ecx, [ebp - 0x74]
call fcn.0040c3c0
lea ecx, [ebp - 0x44]
call fcn.0040c3c0
lea ecx, [ebp - 0x2c]
call fcn.0040d020
jmp 0x443197
mov dword [edi + 0x48], 1
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], 0
jmp 0x4432f7
push str.A_GET_or_HEAD_request_should_not_have_an_entity_body.
lea ecx, [ebp - 0x2c]
call fcn.0040bc10
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x88]
call fcn.0042cdf0
mov ecx, dword [ebp - 0x32c]
mov byte [ebp - 4], 0x13
push eax
mov ecx, dword [ecx]
call fcn.004360c0
lea ecx, [ebp - 0x88]
call fcn.0042c7e0
lea ecx, [ebp - 0x2c]
call fcn.0040d020
jmp 0x443197
lea ecx, [ebp - 0x2c]
call fcn.0040d020
lea eax, [ebp - 0x324]
push eax
call fcn.004317f0
mov ecx, dword [edi + 0x10]
add esp, 4
mov ecx, dword [ecx + 0x50]
mov dword [ebp - 0x32c], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x330], ecx
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x324]
test ecx, ecx
je 0x44343b
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x44343b
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x330]
cmp dword [ebp - 0x32c], eax
je 0x4434b9
mov ecx, dword [edi + 0x10]
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x330]
mov dword [ebp - 0x324], edi
push eax
add ecx, 0x50
call fcn.00445370
mov ecx, eax
mov dword [ebp - 0x324], ecx
lea edx, [edi + 0x38]
mov byte [ebp - 4], 0x18
cmp edx, ecx
je 0x4434ae
mov ecx, dword [edx]
test ecx, ecx
je 0x443498
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x443498
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi + 0x38]
mov ecx, dword [ebp - 0x324]
mov dword [edx], 0
mov eax, dword [ecx]
mov dword [edx], eax
mov dword [ecx], 0
lea ecx, [ebp - 0x330]
call fcn.00423c00
mov byte [ebp - 4], 0x19
mov ecx, dword [esi + 0x20c]
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x324], eax
test ecx, ecx
jne 0x4434d5
call fcn.00465f7f
mov eax, dword [ecx]
lea edx, [ebp - 0x324]
push edx
call dword [eax + 8]
mov dword [ebp - 4], 9
cmp dword [edi + 0x48], 0
je 0x443527
mov al, byte [esi + 0x210]
test al, al
je 0x443527
mov eax, dword [edi]
lea ecx, [ebp - 0x38]
push ecx
mov ecx, edi
mov eax, dword [eax + 8]
call eax
mov ecx, eax
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x338], 1
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov byte [ebp - 0x325], 1
test al, al
je 0x44352e
mov byte [ebp - 0x325], 0
mov dword [ebp - 4], 9
test byte [ebp - 0x338], 1
je 0x443546
lea ecx, [ebp - 0x38]
call fcn.0040ecd0
cmp byte [ebp - 0x325], 0
je 0x443587
lea ecx, [ebp - 0x324]
call fcn.004453e0
lea esi, [edi + 0x78]
cmp esi, eax
je 0x443577
mov edx, dword [eax]
mov dword [eax], 0
mov ecx, dword [esi]
mov dword [esi], edx
test ecx, ecx
je 0x443577
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x324]
test ecx, ecx
je 0x443587
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [ebp - 0x334]
push edi
call fcn.004435c0
jmp 0x443197