Function at 0x496970
Capabilities:
Link many functions at runtime
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x554b31
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push edi
push str.d3dtest12.dll
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x496cec
push esi
push str.CreateD3DTest12
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LaunchD3DTest12
mov esi, eax
push ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DeleteD3DTest12
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetPublicStatus
push ebx
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetTestMode
push ebx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetGraphicsPortTest
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x496a15
push 1
mov ecx, eax
call dword [0x55f634]
call dword [ebp - 0x1c]
add esp, 4
test esi, esi
mov esi, dword [ebp + 8]
je 0x496c9b
mov ecx, dword [ebp - 0x14]
push 0
call dword [0x55f634]
call dword [ebp - 0x14]
movzx eax, al
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x496ca1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x496c9b
push 1
mov ecx, eax
call dword [0x55f634]
mov eax, dword [ebp - 0x18]
call eax
add esp, 4
cmp dword [esi], 1
jne 0x496ca1
cmp dword [ebp - 0x10], 0
je 0x496c65
mov ecx, edi
mov byte [edi + 0x15a], 0
call fcn.0049a0d0
test al, al
je 0x496d17
mov ecx, dword [ebp - 0x10]
call dword [0x55f634]
call dword [ebp - 0x10]
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
push dword [edi + 0x164]
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x18], 0x103
jne 0x496b24
push 0
push dword [edi + 0x164]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x496b24
mov ecx, dword [edi + 0x2b8]
push 0xf1e59
call fcn.00441690
push 0x14
mov dword [esi], 0xf1e59
call fcn.004c821c
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x496b02
push 0xf1e59
mov ecx, eax
call fcn.00417f90
mov esi, eax
jmp 0x496b04
xor esi, esi
push 0x56079c
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00408370
mov dword [ebp - 4], 3
jmp 0x496d72
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x496bbf
mov ecx, dword [edi + 0x2b8]
push 0xf1dcd
call fcn.00441690
push 0x56079c
lea ecx, [ebp - 0x3c]
mov dword [esi], 0xf1dcd
call fcn.00408370
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 4
push eax
push 0xda
push 8
call fcn.004204a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00403550
push 0x14
call fcn.004c821c
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x496bae
push 0xf1dcd
mov ecx, eax
call fcn.00417f90
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], eax
jmp 0x496d93
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], eax
jmp 0x496d93
cmp eax, 0xfffffffe
jne 0x496c53
mov ecx, dword [edi + 0x2b8]
push 0xf1dce
call fcn.00441690
push 0x56079c
lea ecx, [ebp - 0x3c]
mov dword [esi], 0xf1dce
call fcn.00408370
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 6
push eax
push 0xdb
push 8
call fcn.004204a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00403550
push 0x14
call fcn.004c821c
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x496c3a
push 0xf1dce
mov ecx, eax
call fcn.00417f90
jmp 0x496c3c
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
push 0x582dc0
jmp 0x496d9b
cmp eax, 0xfffffffd
jne 0x496c6d
mov dword [esi], 0xfffffffe
mov eax, 0xfffffffe
jmp 0x496c6d
mov dword [esi], 0
xor eax, eax
cmp byte [edi + 0x15a], 0
je 0x496c7e
mov dword [esi], 0xfffffffd
jmp 0x496ca1
cmp eax, 1
jne 0x496ca1
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x496c9b
mov ecx, edi
call dword [0x55f634]
call edi
movzx eax, al
mov dword [esi], eax
jmp 0x496ca1
mov dword [esi], 0
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x496ccc
mov ecx, edi
call dword [0x55f634]
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push ebx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.Load_library_failed
push 8
push 0xe
call fcn.004204c0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword fs:[0], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x2b8]
push 0xf1df2
call fcn.00441690
push 0x14
mov dword [esi], 0xf1df2
call fcn.004c821c
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x496d55
push 0xf1df2
mov ecx, eax
call fcn.00417f90
mov esi, eax
jmp 0x496d57
xor esi, esi
push 0x56079c
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00408370
mov dword [ebp - 4], 1
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
push 4
push 7
call fcn.00418280
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00403550
mov dword [ebp - 0x1c], esi
push 0x582dc0
lea eax, [ebp - 0x1c]
push eax
call fcn.004e4900
int3