Function at 0x10002fc0
Capabilities:
Resume thread

Disassembly:
sub esp, 0x82c
mov eax, dword [0x1006d004]
xor eax, esp
mov dword [esp + 0x824], eax
push ebx
push ebp
push esi
push edi
xorps xmm0, xmm0
push str.DirectX9::HookD3D9___start
push 0x64
movlpd qword [esp + 0x20], xmm0
call fcn.10009530
add esp, 8
lea edx, [esp + 0x18]
mov ecx, str.d3d9.dll
call fcn.10006930
mov esi, eax
test esi, esi
je 0x100036d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp eax, 0x60001
ja 0x10003290
jb 0x10003029
cmp ecx, 0x1db04001
ja 0x10003290
cmp ecx, 0x1db04001
jne 0x1000307a
cmp eax, 0x60001
jne 0x1000307a
mov dword [0x1006f000], ecx
mov dword [0x1006f004], eax
mov dword [0x1006f008], 0x410c3
mov dword [0x1006f014], 0x58dda
mov dword [0x1006f020], 0xbd610
mov dword [0x1006f02c], 0xbd585
mov dword [0x1006f038], 0x780e
jmp 0x100034f7
cmp eax, 0x50003
ja 0x10003195
jb 0x10003093
cmp ecx, 0xece0f77
ja 0x10003195
cmp ecx, 0xece0f77
jne 0x100030a6
cmp eax, 0x50003
je 0x10003167
cmp eax, 0x50003
ja 0x10003150
jb 0x100030bf
cmp ecx, 0xa281588
ja 0x10003150
cmp ecx, 0xa281588
jne 0x100030ce
cmp eax, 0x50003
je 0x10003122
cmp ecx, 0x10388
jne 0x1000310b
cmp eax, 0x50003
jne 0x1000310b
mov dword [0x1006f000], ecx
mov dword [0x1006f004], eax
mov dword [0x1006f008], 0x41060
mov dword [0x1006f014], 0x43870
mov dword [0x1006f038], 0x3b1d0
jmp 0x1000351f
cmp ecx, 0xa280884
jne 0x100036be
cmp eax, 0x50003
jne 0x100036be
mov dword [0x1006f000], ecx
mov dword [0x1006f004], eax
mov dword [0x1006f008], 0x40ea0
mov dword [0x1006f014], 0x436b0
mov dword [0x1006f038], 0x39230
jmp 0x1000351f
cmp ecx, 0xece0726
jne 0x100036be
cmp eax, 0x50003
jne 0x100036be
mov dword [0x1006f000], ecx
mov dword [0x1006f004], eax
mov dword [0x1006f008], 0x410a0
mov dword [0x1006f014], 0x438b0
mov dword [0x1006f038], 0x39300
jmp 0x1000351f
cmp ecx, 0x17704002
jne 0x100031e6
cmp eax, 0x60000
jne 0x100031e6
mov dword [0x1006f000], ecx
mov dword [0x1006f004], eax
mov dword [0x1006f008], 0x48cdb
mov dword [0x1006f014], 0xcbb05
mov dword [0x1006f020], 0xcbbdd
mov dword [0x1006f02c], 0xcba7a
mov dword [0x1006f038], 0x3e6f
jmp 0x100034f7
cmp ecx, 0x17714650
jne 0x10003237
cmp eax, 0x60000
jne 0x10003237
mov dword [0x1006f000], ecx
mov dword [0x1006f004], eax
mov dword [0x1006f008], 0x5a636
mov dword [0x1006f014], 0xca625
mov dword [0x1006f020], 0xca6fd
mov dword [0x1006f02c], 0xca59a
mov dword [0x1006f038], 0x4bc0
jmp 0x100034f7
cmp ecx, 0x17724655
jne 0x100036be
cmp eax, 0x60000
jne 0x100036be
mov dword [0x1006f000], ecx
mov dword [0x1006f004], eax
mov dword [0x1006f008], 0x5589e
mov dword [0x1006f014], 0xc7345
mov dword [0x1006f020], 0xc741d
mov dword [0x1006f02c], 0xc72ba
mov dword [0x1006f038], 0x5200
jmp 0x100034f7
cmp eax, 0x60003
ja 0x10003409
jb 0x100032a9
cmp ecx, 0x25804000
ja 0x10003409
cmp ecx, 0x25804000
jne 0x1000330e
cmp eax, 0x60003
jne 0x1000330e
mov dword [0x1006f000], ecx
mov dword [0x1006f004], eax
mov dword [0x1006f008], 0x35900
mov dword [0x1006f014], 0x44b8c
mov dword [0x1006f020], 0xd7711
mov dword [0x1006f02c], 0
mov dword [0x1006f030], 0
mov dword [0x1006f034], 0
mov dword [0x1006f038], 0x7982
jmp 0x1000350b
cmp ecx, 0x1db1446a
jne 0x1000335f
cmp eax, 0x60001
jne 0x1000335f
mov dword [0x1006f000], ecx
mov dword [0x1006f004], eax
mov dword [0x1006f008], 0x4a064
mov dword [0x1006f014], 0x5f251
mov dword [0x1006f020], 0xbdfc4
mov dword [0x1006f02c], 0xbdf35
mov dword [0x1006f038], 0x781f
jmp 0x100034f7
cmp ecx, 0x20d00000
jne 0x100033b0
cmp eax, 0x60002
jne 0x100033b0
mov dword [0x1006f000], ecx
mov dword [0x1006f004], eax
mov dword [0x1006f008], 0x7d73c
mov dword [0x1006f014], 0x25d9b
mov dword [0x1006f020], 0x7d6a2
mov dword [0x1006f02c], 0x7db4a
mov dword [0x1006f038], 0x350e
jmp 0x100034f7
cmp ecx, 0x23f04000
jne 0x100036be
cmp eax, 0x60002
jne 0x100036be
mov dword [0x1006f000], ecx
mov dword [0x1006f004], eax
mov dword [0x1006f008], 0x7b6fc
mov dword [0x1006f014], 0x32a8f
mov dword [0x1006f020], 0x7b662
mov dword [0x1006f02c], 0x7bb0a
mov dword [0x1006f038], 0x3863
jmp 0x100034f7
cmp ecx, 0x25804014
jne 0x10003455
cmp eax, 0x60003
jne 0x10003455
mov dword [0x1006f000], ecx
mov dword [0x1006f008], 0x34f70
mov dword [0x1006f014], 0x441f4
mov dword [0x1006f020], 0xd7771
mov dword [0x1006f02c], 0xd79f9
mov dword [0x1006f038], 0x791b
jmp 0x100034ed
cmp ecx, 0x258042c7
jne 0x1000349e
cmp eax, 0x60003
jne 0x1000349e
mov dword [0x1006f000], ecx
mov dword [0x1006f008], 0x3ce52
mov dword [0x1006f014], 0x4c262
mov dword [0x1006f020], 0xd5211
mov dword [0x1006f02c], 0xd5499
mov dword [0x1006f038], 0x73c6
jmp 0x100034ed
cmp ecx, 0x25804407
jne 0x100036be
cmp eax, 0x60003
jne 0x100036be
mov dword [0x1006f000], ecx
mov dword [0x1006f008], 0x39ad0
mov dword [0x1006f014], 0x32940
mov dword [0x1006f020], 0xe0cf0
mov dword [0x1006f02c], 0xe0f80
mov dword [0x1006f038], 0x9c30
mov dword [0x1006f004], 0x60003
mov dword [0x1006f034], 5
mov dword [0x1006f030], 0x10064f74
mov dword [0x1006f024], 0x10064f74
mov dword [0x1006f028], 5
lea edx, [esp + 0x14]
mov dword [0x1006f040], 5
lea ecx, [esp + 0x30]
mov dword [0x1006f03c], 0x10064f74
mov dword [0x1006f01c], 5
mov dword [0x1006f018], 0x10064f74
mov dword [0x1006f010], 5
mov dword [0x1006f00c], 0x10064f74
mov dword [esp + 0x14], 0
call fcn.1000a100
push 0x1006f048
push 0x1006f04c
push 0x10002740
mov edx, 0x1006f008
mov ecx, esi
call fcn.10002e50
add esp, 0xc
mov ebx, eax
mov edx, 0x1006f014
mov dword [esp + 0x24], ebx
mov ecx, esi
push 0x1006f050
push 0x1006f054
push 0x10002dd0
call fcn.10002e50
add esp, 0xc
mov dword [esp + 0x18], eax
mov edx, 0x1006f020
mov ecx, esi
push 0x1006f058
push 0x1006f05c
push 0x10002950
call fcn.10002e50
add esp, 0xc
mov dword [esp + 0x2c], eax
mov edx, 0x1006f02c
mov ecx, esi
push 0x1006f060
push 0x1006f064
push 0x10002e10
call fcn.10002e50
add esp, 0xc
mov dword [esp + 0x28], eax
mov edx, 0x1006f038
mov ecx, esi
push 0x1006f068
push 0x1006f06c
push 0x10002b70
call fcn.10002e50
mov ebp, dword [esp + 0x20]
add esp, 0xc
mov edi, eax
mov dword [esp + 0x20], edi
test ebp, ebp
je 0x1000368b
xor ebx, ebx
xor esi, esi
test ebp, ebp
je 0x10003651
nop
mov edi, dword [esp + esi*4 + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x10003641
inc ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebp
jb 0x10003630
mov edi, dword [esp + 0x20]
cmp ebx, ebp
je 0x10003673
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x23c
push str._assertion_failed:_resumed__suspendedThreadCount__line__i__err__i
push 0xc8
call fcn.10009530
add esp, 0x10
push ebp
push ebx
push str.ResumeAllThreads:_resumed__i_threads__max_count__i
push 0xc8
call fcn.10009530
mov ebx, dword [esp + 0x34]
add esp, 0x10
push edi
push dword [esp + 0x2c]
push dword [esp + 0x34]
push dword [esp + 0x24]
push ebx
push str.HookD3D9:_hook_DevicePresent_d__DeviceReset_d__DeviceExPresentEx_d__DeviceExResetEx_d__SwapChainPresent_d
push 0x64
call fcn.10009530
add esp, 0x1c
cmp ebx, 1
je 0x100036b7
mov eax, 3
cmp edi, 1
jne 0x100036d5
mov eax, 4
jmp 0x100036d5
push str.HookD3D9:_no_matching_module_definition_found_
push 0xc8
call fcn.10009530
add esp, 8
mov eax, 3
mov ecx, dword [esp + 0x834]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000dfef
add esp, 0x82c
ret