Function at 0x4c54e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5592aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov dword [esi + 0x100], eax
mov byte [esi + 0xfc], 0
call fcn.00421990
mov eax, dword [str._Retries]
add esp, 4
mov ecx, dword [0x565d8c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 8
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x30], 0
push 1
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.0041d980
mov edx, dword [ebp - 0x24]
mov dword [esi + 0xe0], eax
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4c559b
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c5591
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c5dd2
push edx
push ecx
call fcn.004c824c
add esp, 8
movq xmm0, qword [str._HighMode]
mov al, byte [0x565e5c]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 9
movq qword [ebp - 0x38], xmm0
mov byte [ebp - 0x30], al
mov byte [ebp - 0x2f], 0
push 1
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.0041e700
mov edx, dword [ebp - 0x24]
mov byte [esi + 0xe6], al
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4c5617
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c560d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c5dd7
push edx
push ecx
call fcn.004c824c
add esp, 8
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x38]
push 0x20
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
call fcn.00406210
movups xmm0, xmmword [str._ActivateDiscreteGPU]
mov dword [ebp - 0x28], 0x14
mov dword [ebp - 0x24], 0x1f
movups xmmword [eax], xmm0
mov ecx, dword [0x56ac84]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], 0
mov dword [ebp - 0x38], eax
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0041e700
mov edx, dword [ebp - 0x24]
mov byte [esi + 0xe7], al
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4c56b7
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c56ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c5ddc
push edx
push ecx
call fcn.004c824c
add esp, 8
movq xmm0, qword [0x56aca4]
mov al, byte [0x56acac]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 9
movq qword [ebp - 0x38], xmm0
mov byte [ebp - 0x30], al
mov byte [ebp - 0x2f], 0
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 3
push eax
mov ecx, esi
call fcn.0041d980
mov edx, dword [ebp - 0x24]
mov dword [esi + 0xe8], eax
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4c5733
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c5729
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c5de1
push edx
push ecx
call fcn.004c824c
add esp, 8
cmp byte [esi + 0xe7], 0
je 0x4c58f5
push dword [esi + 0xe8]
lea eax, [ebp - 0x50]
push eax
call fcn.0043d9d0
add esp, 8
push 0xa
push str._DeviceID
push 0
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.00413330
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x28], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x4c57d8
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c57ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c5de6
push edx
push ecx
call fcn.004c824c
add esp, 8
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x68]
push 0
push str.PixelShader.hlsl
push str.VertexShader.hlsl
push str.BLOCKS.BMP
push str.d3dtest12.dll
lea edi, [ebp - 0x38]
mov dword [ebp - 0x40], 0
cmovae edi, dword [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
call fcn.00409d30
add esp, 0x18
cmp dword [ebp - 0x58], 0
mov byte [ebp - 4], 7
jne 0x4c5deb
lea eax, [ebp - 0x20]
push eax
push 0
push edi
push 0x547c60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4c58a1
push str.Creating_background_DX12_3DRenderingTest_thread_failed_in_VideoMemoryTest::Run__
push 8
push 0xe
call fcn.004204c0
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.00403550
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb 0x4c588f
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c5885
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c5ed2
push edx
push ecx
call fcn.004c824c
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Creating_background_DX12_3DRenderingTest_thread_in_VideoMemoryTest::Run__
push 8
push 0xe
call fcn.004204c0
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.00403550
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4c58f5
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c58eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c5ed2
push edx
push ecx
call fcn.004c824c
add esp, 8
push 1
call fcn.00421990
add esp, 4
lea edi, [esi + 0x110]
mov ecx, edi
push 0xf
push str.VideoMemoryTest
call fcn.00406430
push dword [esi + 0xe0]
lea eax, [ebp - 0x68]
push eax
call fcn.0043d8f0
add esp, 8
lea ecx, [esi + 0x1a0]
push eax
call fcn.00413b90
mov edx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x4c5965
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c595b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c5ed7
push edx
push ecx
call fcn.004c824c
add esp, 8
push 1
push 0x562c78
lea ecx, [esi + 0x158]
call fcn.00406430
xor eax, eax
mov word [esi + 0x10c], ax
call fcn.00421740
test al, al
jne 0x4c5cd3
call fcn.0041f740
test al, al
jne 0x4c5cd3
sub esp, 0x18
lea eax, [esi + 0xa0]
mov ecx, esp
push eax
call fcn.00402c00
call fcn.00440b40
mov dword [ebp - 0x38], 0
mov byte [esi + 0xfc], al
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0xf
push eax
push 2
push 3
call fcn.004204a0
mov edx, dword [ebp - 0x24]
add esp, 0x24
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4c5a21
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c5a17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c5edc
push edx
push ecx
call fcn.004c824c
add esp, 8
push 0xa
mov byte [ebp - 0x14], 0
call fcn.00421990
add esp, 4
call fcn.0040d240
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004c41f0
mov edi, eax
cmp edi, 1
je 0x4c5b0c
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x4c5a8d
dec eax
mov dword [esi + 0xe0], eax
mov eax, dword [ebp - 0x14]
test al, al
jne 0x4c5a97
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004c41f0
mov edi, eax
mov ecx, 1
mov eax, dword [ebp - 0x14]
cmp edi, 1
movzx eax, al
cmovne eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xe0]
test eax, eax
jne 0x4c5a54
dec eax
mov dword [esi + 0xe0], eax
mov eax, dword [ebp - 0x14]
cmp al, 1
jne 0x4c5aa1
mov byte [ebp - 0xd], 0
jmp 0x4c5b10
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0x10
push eax
push 0x24
push 5
call fcn.004204a0
mov edx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4c5b0c
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c5b02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c5ee1
push edx
push ecx
call fcn.004c824c
add esp, 8
mov byte [ebp - 0xd], 1
call fcn.00421740
test al, al
jne 0x4c5eeb
call fcn.0041f740
test al, al
jne 0x4c5eeb
cmp byte [ebp - 0xd], al
je 0x4c5bee
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], al
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0x15
push eax
push 3
push 3
call fcn.004204a0
mov edx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4c5b9d
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c5b93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c5ee6
push edx
push ecx
call fcn.004c824c
add esp, 8
push 0x64
call fcn.00421990
sub esp, 0x14
mov ecx, esi
mov eax, esp
mov dword [eax], 0
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 1
mov byte [eax], 0x30
movzx eax, word [esi + 0x10c]
push eax
call fcn.004c5440
lea eax, [ebp - 0x68]
push 1
push eax
call fcn.0043d8f0
add esp, 8
lea ecx, [esi + 0x140]
push eax
call fcn.00413b90
lea ecx, [ebp - 0x68]
jmp 0x4c5c56
test edi, edi
je 0x4c5c5b
lea eax, [ebp - 0x68]
push edi
push eax
call fcn.0043d8f0
push eax
mov dword [ebp - 4], 0x16
call fcn.004216c0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00403550
sub esp, 0x18
mov eax, esp
push edi
push eax
call fcn.0043d8f0
movzx eax, word [esi + 0x10c]
add esp, 8
mov ecx, esi
push eax
call fcn.004c5440
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0043d8f0
add esp, 8
lea ecx, [esi + 0x140]
push eax
call fcn.00413b90
lea ecx, [ebp - 0x80]
call fcn.00403550
movzx eax, byte [esi + 0xfc]
push eax
push dword [esi + 0x108]
lea eax, [esi + 0x110]
sub esp, 0xcc
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00433e90
sub esp, 0x18
mov dword [ebp - 4], 0x17
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x567550
call fcn.00408370
sub esp, 0x18
mov byte [ebp - 4], 0x18
lea eax, [esi + 0xa0]
mov ecx, esp
push eax
call fcn.00402c00
mov dword [ebp - 4], 0xffffffff
call fcn.004396b0
mov ecx, dword [ebp - 0xc]
add esp, 0x104
mov al, byte [ebp - 0xd]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x68]
push 0xffffffffffffffff
push eax
call fcn.0043d8f0
add esp, 8
lea ecx, [esi + 0x140]
push eax
call fcn.00413b90
lea ecx, [ebp - 0x68]
call fcn.00403550
sub esp, 0x18
mov ecx, esp
push str.995000
call fcn.00408370
movzx eax, word [esi + 0x10c]
mov ecx, esi
push eax
call fcn.004c5440
movzx eax, byte [esi + 0xfc]
push eax
push dword [esi + 0x108]
sub esp, 0xcc
mov ecx, esp
mov dword [ebp - 0x20], esp
push edi
call fcn.00433e90
sub esp, 0x18
mov dword [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x567550
call fcn.00408370
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [esi + 0xa0]
mov ecx, esp
push eax
call fcn.00402c00
mov dword [ebp - 4], 0xffffffff
call fcn.004396b0
add esp, 0x104
lea ecx, [ebp - 0x68]
push 0x56079c
call fcn.00408370
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0xd
push eax
push 0x18
push 8
call fcn.004204a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00403550
push 0x14
call fcn.004c821c
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xe
test eax, eax
je 0x4c5fe9
push 0xf2eb8
mov ecx, eax
call fcn.00417f90
jmp 0x4c5feb
call fcn.004f1161
call fcn.004f1161
call fcn.004f1161
call fcn.004f1161
call fcn.004f1161
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.0043d8f0
add esp, 8
lea ecx, [esi + 0x140]
push eax
call fcn.00413b90
lea ecx, [ebp - 0x50]
call fcn.00403550
sub esp, 0x18
mov ecx, esp
push str.990618
call fcn.00408370
movzx eax, word [esi + 0x10c]
mov ecx, esi
push eax
call fcn.004c5440
movzx eax, byte [esi + 0xfc]
push eax
push dword [esi + 0x108]
lea eax, [esi + 0x110]
sub esp, 0xcc
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00433e90
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x567550
call fcn.00408370
sub esp, 0x18
mov byte [ebp - 4], 9
lea eax, [esi + 0xa0]
mov ecx, esp
push eax
call fcn.00402c00
mov byte [ebp - 4], 7
call fcn.004396b0
push 0x14
call fcn.004c821c
add esp, 0x108
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x4c5eac
push 0xf1d9a
mov ecx, eax
call fcn.00417f90
mov esi, eax
jmp 0x4c5eae
xor esi, esi
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 7
push eax
push 0x1e
push 7
mov ecx, esi
call fcn.00418280
push 0x582dc0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
call fcn.004e4900
call fcn.004f1161
call fcn.004f1161
call fcn.004f1161
call fcn.004f1161
call fcn.004f1161
lea eax, [ebp - 0x68]
push 0xffffffffffffffff
push eax
call fcn.0043d8f0
add esp, 8
lea ecx, [esi + 0x140]
push eax
call fcn.00413b90
lea ecx, [ebp - 0x68]
call fcn.00403550
sub esp, 0x18
mov ecx, esp
push str.995000
call fcn.00408370
movzx eax, word [esi + 0x10c]
mov ecx, esi
push eax
call fcn.004c5440
movzx eax, byte [esi + 0xfc]
push eax
push dword [esi + 0x108]
lea eax, [esi + 0x110]
sub esp, 0xcc
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00433e90
sub esp, 0x18
mov dword [ebp - 4], 0x11
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x567550
call fcn.00408370
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [esi + 0xa0]
mov ecx, esp
push eax
call fcn.00402c00
mov dword [ebp - 4], 0xffffffff
call fcn.004396b0
add esp, 0x104
lea ecx, [ebp - 0x68]
push 0x56079c
call fcn.00408370
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0x13
push eax
push 0x18
push 8
call fcn.004204a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00403550
push 0x14
call fcn.004c821c
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0x14
test eax, eax
je 0x4c5fe9
push 0xf2eb8
mov ecx, eax
call fcn.00417f90
jmp 0x4c5feb
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x582dc0
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.004e4900
int3