Function at 0x439650
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d68cc
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x5254e0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x4ec], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x4cc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4e8], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x4e4], edx
mov edx, dword [ecx]
mov edx, dword [edx]
mov dword [ebp - 0x4dc], eax
mov eax, dword [eax + 4]
push 1
push eax
mov dword [ebp - 0x4d8], edi
mov dword [ebp - 0x4e0], esi
call edx
xor ebx, ebx
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x4396d5
mov esi, dword [esi]
mov byte [esi], bl
mov esi, dword [ebp - 0x4cc]
cmp esi, ebx
je 0x43990d
mov eax, dword [esi + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ecx, dword [esi + 0xc]
push ebx
test eax, eax
push ecx
sete byte [ebp - 0x4c5]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
sete al
cmp byte [ebp - 0x4c5], bl
je 0x43990d
cmp al, bl
jne 0x43990d
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
test al, al
jne 0x4397b9
push 9
push str.handshake
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
call fcn.004082f0
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0043c910
lea edx, [ebp - 0x34]
push edx
mov byte [ebp - 4], 1
call fcn.00437020
test al, al
lea esi, [ebp - 0x22c]
sete byte [ebp - 0x4c5]
call fcn.00415110
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0x10
jb 0x439795
mov eax, dword [ebp - 0x34]
push eax
call fcn.004a9dd8
add esp, 4
cmp byte [ebp - 0x4c5], bl
je 0x4397b9
push 0x4fef80
push str._s:_insufficient_capabilities_for_untunnelled_web_request
push 1
push ebx
call fcn.00432650
add esp, 0x10
xor al, al
jmp 0x439e22
push ebx
mov eax, 0xf
push ebx
push ebx
mov dword [ebp - method.HTTPSRequest.virtual_0], vtable.HTTPSRequest.0
mov byte [ebp - 0x128], bl
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], ebx
mov byte [ebp - 0x118], bl
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xec], ebx
mov byte [ebp - 0xfc], bl
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [ebp - 0x124], eax
push edi
lea esi, [ebp - 0x88]
mov dword [ebp - 4], 2
call fcn.0043c7d0
mov dword [ebp - 0x4d0], eax
push edi
lea esi, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.0043c770
lea edi, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00433d20
mov ecx, dword [ebp - 0x4d8]
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
mov esi, dword [ecx + 0x1c]
jb 0x439850
mov edi, dword [eax]
jmp 0x439852
mov edi, eax
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x4e8]
mov ecx, dword [ebp - 0x4e4]
push ebx
push edx
push eax
push ecx
mov ecx, dword [ebp - 0x4cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
mov edx, dword [ebp - 0x4dc]
movzx ecx, al
mov eax, dword [ebp - 0x4d0]
push ecx
push edx
mov edx, dword [ebp - 0x4e0]
push eax
push esi
push edi
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, dword [ebp - 0x4ec]
call fcn.00425e10
cmp dword [ebp - 0x20], 8
mov byte [ebp - 0x4c5], al
jb 0x4398b6
mov edx, dword [ebp - 0x34]
push edx
call fcn.004a9dd8
add esp, 4
xor eax, eax
mov esi, 0x10
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], ax
cmp dword [ebp - 0x3c], esi
jb 0x4398dc
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.004a9dd8
add esp, 4
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
cmp dword [ebp - 0x74], esi
jb 0x4398fd
mov edx, dword [ebp - 0x88]
push edx
call fcn.004a9dd8
add esp, 4
lea ecx, [ebp - 0x12c]
call fcn.00425aa0
jmp 0x439e1c
cmp dword [ebp + 8], 2
je 0x4397b2
push 9
push str.handshake
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
call fcn.004082f0
lea eax, [ebp - 0x22c]
push eax
mov ecx, edi
mov dword [ebp - 4], 6
call fcn.0043c910
lea ecx, [ebp - 0x34]
push ecx
mov byte [ebp - 4], 7
call fcn.00437020
lea esi, [ebp - 0x22c]
mov byte [ebp - 0x4c5], al
call fcn.00415110
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0x10
jb 0x43997f
mov edx, dword [ebp - 0x34]
push edx
call fcn.004a9dd8
add esp, 4
cmp byte [ebp - 0x4c5], bl
je 0x439b77
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 8
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x4d0], eax
lea eax, [ebp - 0x4d0]
lea edi, [ebp - 0x44]
call fcn.0043a190
lea eax, [ebp - 0x4d0]
mov dword [ebp - 0x4d0], 0x1bb
call fcn.0043a190
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4cc], eax
cmp eax, dword [ebp - 0x40]
je 0x439b5d
lea esp, [esp]
push ebx
mov eax, 0xf
push ebx
push ebx
mov dword [ebp - 0xdc], vtable.HTTPSRequest.0
mov byte [ebp - 0xd8], bl
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 0xc8], bl
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [ebp - 0xd4], eax
mov edi, dword [ebp - 0x4d8]
push edi
lea esi, [ebp - 0x88]
mov byte [ebp - 4], 9
call fcn.0043c7d0
mov dword [ebp - 0x4d0], eax
push edi
lea esi, [ebp - 0x6c]
mov byte [ebp - 4], 0xa
call fcn.0043c770
lea edi, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.00433d20
mov edi, 8
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], edi
jb 0x439a73
mov eax, dword [eax]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 0x4e8]
mov esi, dword [ebp - 0x4cc]
push ebx
push ecx
mov ecx, dword [ebp - 0x4e4]
push edx
mov edx, dword [ebp - 0x4dc]
push ecx
mov ecx, dword [ebp - 0x4d0]
push ebx
push edx
mov edx, dword [esi]
push ecx
mov ecx, dword [ebp - 0x4ec]
push edx
mov edx, dword [ebp - 0x4e0]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.00425e10
mov byte [ebp - 0x4c5], al
cmp dword [ebp - 0x20], edi
jb 0x439ace
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004a9dd8
add esp, 4
xor edx, edx
mov edi, 0x10
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], dx
cmp dword [ebp - 0x58], edi
jb 0x439af4
mov eax, dword [ebp - 0x6c]
push eax
call fcn.004a9dd8
add esp, 4
mov byte [ebp - 4], 9
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x6c], bl
cmp dword [ebp - 0x74], edi
jb 0x439b19
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.004a9dd8
add esp, 4
cmp byte [ebp - 0x4c5], bl
jne 0x439cf5
mov edx, dword [esi]
push edx
push 0x4fef80
push str._s:_HTTPS:_d_failed
push 1
push ebx
call fcn.00432650
add esp, 0x14
lea ecx, [ebp - 0xdc]
call fcn.00425aa0
add esi, 4
mov dword [ebp - 0x4cc], esi
cmp esi, dword [ebp - 0x40]
jne 0x4399e0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x439b71
push eax
call fcn.004a9dd8
add esp, 4
mov edi, dword [ebp - 0x4d8]
cmp dword [ebp + 8], 1
je 0x4397b2
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
lea eax, [ebp - 0x22c]
push eax
mov ecx, edi
mov dword [ebp - 4], 0xd
call fcn.0043c910
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xe
call fcn.00439ef0
add esp, 4
lea esi, [ebp - 0x22c]
mov byte [ebp - 4], 0xd
call fcn.00415110
mov esi, dword [ebp - 0x44]
mov byte [ebp - 0x4c5], bl
mov dword [ebp - 0x4cc], esi
lea ecx, [ecx]
cmp esi, dword [ebp - 0x40]
je 0x439df2
lea ecx, [ebp - 0x4c4]
push ecx
call fcn.00450120
lea edx, [ebp - 0x22c]
push edx
mov ecx, edi
mov byte [ebp - 4], 0x10
call fcn.0043c910
xor ecx, ecx
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], cx
push eax
mov eax, dword [ebp - 0x4dc]
lea edx, [ebp - 0x34]
push edx
push ebx
push ebx
mov byte [ebp - 4], 0x12
mov ecx, dword [esi]
push eax
lea edx, [ebp - 0x4c4]
call fcn.00450350
cmp dword [ebp - 0x20], 8
jb 0x439c38
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004a9dd8
add esp, 4
xor edx, edx
lea esi, [ebp - 0x22c]
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], dx
call fcn.00415110
push ebx
mov eax, 0xf
push ebx
push ebx
mov dword [ebp - 0xdc], vtable.HTTPSRequest.0
mov byte [ebp - 0xd8], bl
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 0xc8], bl
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x4cc]
mov ecx, dword [eax]
push edi
lea esi, [ebp - 0x148]
mov dword [ebp - 0x4d0], ecx
call fcn.0043c7d0
mov dword [ebp - 0x4f0], eax
push edi
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 0x14
call fcn.0043c770
lea edi, [ebp - 0x6c]
mov byte [ebp - 4], 0x15
call fcn.00433d20
mov edx, dword [ebp - 0x4d8]
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x14], 8
mov edi, dword [edx + 0x1c]
jb 0x439d17
mov esi, dword [eax]
jmp 0x439d19
lea ecx, [ebp - 0xdc]
call fcn.00425aa0
mov eax, dword [ebp - 0x44]
cmp eax, ebx
je 0x439d10
push eax
call fcn.004a9dd8
add esp, 4
mov al, 1
jmp 0x439e22
mov esi, eax
mov ecx, dword [ebp - 0x4d0]
mov eax, dword [ecx]
mov edx, dword [eax + 0x38]
call edx
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 0x4e8]
push ebx
push ecx
mov ecx, dword [ebp - 0x4e4]
push edx
mov edx, dword [ebp - 0x4dc]
push ecx
push eax
mov eax, dword [ebp - 0x4f0]
push edx
mov edx, dword [ebp - 0x4e0]
push eax
push edi
push esi
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, dword [ebp - 0x4ec]
call fcn.00425e10
cmp dword [ebp - 0x58], 8
mov byte [ebp - 0x4d1], al
jb 0x439d7a
mov edx, dword [ebp - 0x6c]
push edx
call fcn.004a9dd8
add esp, 4
xor eax, eax
mov esi, 0x10
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], ebx
mov word [ebp - 0x6c], ax
cmp dword [ebp - 0x20], esi
jb 0x439da0
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004a9dd8
add esp, 4
mov edi, 0xf
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
cmp dword [ebp - 0x134], esi
jb 0x439dc9
mov edx, dword [ebp - 0x148]
push edx
call fcn.004a9dd8
add esp, 4
cmp byte [ebp - 0x4d1], bl
je 0x439e3e
lea ecx, [ebp - 0xdc]
mov byte [ebp - 0x4c5], 1
call fcn.00425aa0
lea ecx, [ebp - 0x4c4]
mov byte [ebp - 4], 0xd
call fcn.00450230
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44]
cmp eax, ebx
je 0x439e1c
mov edx, dword [ebp - 0x4f0]
mov ecx, dword [ebp - 0x40]
push edx
push ecx
call fcn.0043a560
mov edx, dword [ebp - 0x44]
push edx
call fcn.004a9dd8
add esp, 0xc
mov al, byte [ebp - 0x4c5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004a91d2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4cc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
lea eax, [ebp - 0x88]
push eax
call edx
mov esi, 8
mov byte [ebp - 4], 0x17
cmp dword [eax + 0x14], esi
jb 0x439e64
mov eax, dword [eax]
push eax
push 0x4fef80
push str._s:_transport:_s_failed
push 1
push ebx
call fcn.00432650
add esp, 0x14
cmp dword [ebp - 0x74], esi
jb 0x439e8e
mov eax, dword [ebp - 0x88]
push eax
call fcn.004a9dd8
add esp, 4
xor ecx, ecx
mov word [ebp - 0x88], cx
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], ebx
call fcn.00425aa0
mov dword [ebp - 4], edi
jmp 0x439ec3
lea ecx, [ebp - 0x4c4]
mov byte [ebp - 4], 0xd
call fcn.00450230
add dword [ebp - 0x4cc], esi
mov edi, dword [ebp - 0x4d8]
mov esi, dword [ebp - 0x4cc]
jmp 0x439bd0