Function at 0x14002e080
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x120
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rsi, r9
mov r14, rdx
mov qword [rsp + 0xf0], r8
mov qword [rsp + 0xe8], rdx
mov qword [rsp + 0x70], r9
mov r15, qword [rsp + 0x180]
mov qword [rsp + 0x80], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x14002e0e5
mov rdx, qword [r14]
lea rcx, [rsi + 0x58]
mov dword [rcx], 0x50
mov dword [rcx + 4], 0x40
lea r8, [0x14002dfb0]
mov qword [rcx + 8], r8
xor r13d, r13d
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], r13
mov qword [rcx + 0x28], r13
mov qword [rcx + 0x30], r13
mov qword [rcx + 0x38], r13
mov qword [rcx + 0x40], rdx
mov qword [rcx + 0x48], r13
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rdx, qword [rsi + 0x98]
cvttss2si ecx, dword [rsp + 0xf4]
cvttss2si r8d, dword [rsp + 0xf0]
mov qword [rsp + 0x58], r13
mov rax, qword [rsi + 0x70]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x64
mov r9d, 0x80000000
mov r8, rdx
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [rsi], rax
test rax, rax
je 0x14002e5a4
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov qword [rsi + 8], rax
test rax, rax
je 0x14002e5d1
mov qword [rsi + 0x18], r13
mov qword [rsi + 0x24], r13
mov dword [rsi + 0x2c], r13d
mov qword [rsi + 0x34], r13
mov dword [rsi + 0x3c], r13d
mov qword [rsi + 0x4c], r13
mov dword [rsi + 0x40], 1
mov dword [rsi + 0x30], 1
mov dword [rsi + 0x20], r13d
mov dword [rsi + 0x44], 1
mov dword [rsi + 0x48], 0x50
mov dword [rsi + 0x54], 1
mov rcx, rax
mov rax, qword [rax]
mov r10, qword [rax + 0x80]
lea r12, [rsi + 0x10]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x40
mov r9, qword [rsi]
xor edx, edx
lea r8d, [rdx + 1]
call r10
test eax, eax
js 0x14002e5d1
mov rdi, qword [rsi]
lea rdx, [rsp + 0xf8]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [rsp + 0x104]
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [rsp + 0x100]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov dword [rsp + 0x30], 5
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov r9d, ebx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowPos]
mov edx, 0xa
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [0x1403c8180]
test rax, rax
je 0x14002e2b1
inc dword [rax + 0xec]
mov ecx, 0x6218
call fcn.1400ba7b0
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0xf0], rcx
mov qword [rsp + 0xf8], rax
test rax, rax
je 0x14002e2e9
xor edx, edx
mov rcx, rax
call fcn.140016900
jmp 0x14002e2ec
mov rax, r13
cmp qword [0x1403c8180], 0
jne 0x14002e2fd
mov qword [0x1403c8180], rax
mov rcx, rax
call fcn.140006610
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x14002e5cc
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x10]
mov rsi, qword [rsi]
mov rbx, qword [0x1403c8180]
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14002e48d
lea rcx, [rsp + 0x108]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14002e48d
mov rax, qword [0x1403c8180]
test rax, rax
je 0x14002e363
inc dword [rax + 0xec]
mov ecx, 0x48
call fcn.1400ba7b0
mov rdi, rax
test rax, rax
je 0x14002e38f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
mov qword [rdi + 0x40], rax
jmp 0x14002e392
mov rdi, r13
mov qword [rbx + 0x90], rdi
lea rax, [0x140141218]
mov qword [rbx + 0x80], rax
or dword [rbx + 0xc], 6
mov qword [rdi], rsi
mov byte [rdi + 0x2d], 1
mov rax, qword [rsp + 0xf0]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x108]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x1403c8180]
mov rax, qword [rax + 0x4070]
mov rcx, qword [rax]
mov qword [rcx + 0x28], rsi
lea rax, [0x140141230]
mov qword [rsp + 0x88], rax
lea rax, [0x140141240]
mov qword [rsp + 0x90], rax
lea rax, [0x140141250]
mov qword [rsp + 0x98], rax
lea rax, [0x140141260]
mov qword [rsp + 0xa0], rax
lea rax, [0x140141270]
mov qword [rsp + 0xa8], rax
mov rbx, r13
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x88]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14002e461
inc rbx
cmp rbx, 5
jl 0x14002e440
jmp 0x14002e48d
mov qword [rdi + 0x30], rsi
lea rdx, [0x140141280]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x38], rax
lea rdx, [0x140141298]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x40], rax
mov rdi, qword [r12]
mov rbx, qword [0x1403c8180]
test rbx, rbx
je 0x14002e4a3
inc dword [rbx + 0xec]
mov ecx, 0x28
call fcn.1400ba7b0
test rax, rax
je 0x14002e4d1
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x14002e4d4
mov rax, r13
mov qword [rbx + 0x98], rax
lea rcx, [0x140141208]
mov qword [rbx + 0x88], rcx
or dword [rbx + 0xc], 8
mov qword [rax], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x14002e534
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x14002e52f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002e5fa
mov rcx, r8
call fcn.1400b3860
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x14002e560
mov rax, qword [rcx]
cmp rcx, r15
sete dl
xor dl, 1
call qword [rax + 0x20]
mov qword [r15 + 0x38], r13
mov al, 1
jmp 0x14002e581
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400b3840
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rdx, str.error_while_creating_the_window
lea rcx, [rsp + 0xb8]
call fcn.140032580
lea rdx, [0x14018c600]
lea rcx, [rsp + 0xb8]
call fcn.1400b5c10
call fcn.1400b293c
lea rdx, str.cannot_create_device_
lea rcx, [rsp + 0xd0]
call fcn.140032580
lea rdx, [0x14018c600]
lea rcx, [rsp + 0xd0]
call fcn.1400b5c10
nop
call fcn.1400c4ef4
int3