Function at 0x4196f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5890cf
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5f3fcc]
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, ecx
mov eax, dword [esi + 0xbc]
mov ecx, dword [esi + 0xb8]
mov edx, dword [esi + 0xc4]
sub eax, dword [esi + 0xb4]
sub ecx, dword [esi + 0xb0]
cmp edx, 2
je 0x419757
cmp edx, 4
je 0x419757
lea edx, [esi + 0xf4]
mov dword [esi + 0xf8], eax
mov dword [edx], ecx
mov edi, ecx
jmp 0x419769
lea edx, [esi + 0xf4]
mov edi, eax
mov dword [edx], eax
mov eax, ecx
mov dword [esi + 0xf8], ecx
mov ecx, dword [esi + 0x64]
mov dword [esi + 0x48], edi
mov dword [esi + 0x5c], edi
lea edi, [esi + 0x120]
push edi
push 0
mov dword [esi + 0xfc], 1
mov dword [esi + 0x100], 1
mov dword [esi + 0x104], 0x57
mov dword [esi + 0x108], 1
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 3
mov dword [esi + 0x114], 0
mov dword [esi + 0x118], 0x20000
mov dword [esi + 0x11c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], eax
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x60], eax
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x14]
test eax, eax
js 0x419938
cmp dword [edi], 0
je 0x419938
mov eax, dword [esi + 0x14]
lea edx, [ebp - 0x24]
mov ecx, 0xff
mov dword [ebp - 0x16], 0
mov word [ebp - 0x20], cx
lea ecx, [esi + 0x3c]
push edx
push ecx
lea ecx, [esi + 0x14]
mov dword [ebp - 0x24], 0x180020
mov dword [ebp - 0x1e], 0xff00ff
mov dword [ebp - 0x1a], 0x80010
call dword [eax + 0x58]
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x14]
push 0
push 0
push 0
call dword [eax + 0xc]
mov eax, dword [esi + 0xd8]
mov edi, dword [esi + 0xd4]
mov dword [ebp - 0x2c], eax
cmp edi, eax
je 0x4198f5
nop dword [eax + eax]
push 0x60
call fcn.00422160
mov ebx, eax
add esp, 4
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x4198af
push 0x60
push 0
push ebx
call fcn.0056a3b0
add esp, 0xc
lea eax, [esi + 0x3c]
mov ecx, ebx
push eax
lea eax, [esi + 0x14]
push eax
push dword [edi + 4]
push dword [edi]
call fcn.0041a640
mov ebx, eax
jmp 0x4198b1
xor ebx, ebx
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.0041a8b0
test eax, eax
jne 0x4198e9
mov eax, dword [esi + 0xe4]
lea ecx, [esi + 0xe0]
mov dword [ebp - 0x28], ebx
cmp dword [ecx + 8], eax
je 0x4198df
mov dword [eax], ebx
add dword [ecx + 4], 4
jmp 0x4198e9
lea edx, [ebp - 0x28]
push edx
push eax
call fcn.00407810
add edi, 8
cmp edi, dword [ebp - 0x2c]
jne 0x419870
mov eax, dword [esi + 0xe4]
sub eax, dword [esi + 0xe0]
test eax, 0xfffffffc
jne 0x419922
push str.Win8DeskDuplicationThread__no_valid_listen___
push dword [0x5fd6d0]
call fcn.0040b090
add esp, 8
mov eax, 0xfffffffe
jmp 0x41994f
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [esi + 0xc], al
xor eax, eax
jmp 0x41994f
push eax
push str.CustomD3D11Texture2D_Cant_CreateTexture2D____error_code__0x_x
push dword [0x5fd6d0]
call fcn.0040b090
add esp, 0xc
or eax, 0xffffffff
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.00567879
mov esp, ebp
pop ebp
ret