Function at 0x43c070
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ad83
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x158
mov eax, dword [0x49a080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x4b6090]
push 0x4b60a8
push 0x20
mov dword [ebp - 0x58], esi
call dword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x43c0d3
push 3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov ecx, dword [0x4b60a8]
lea edx, [ebp - 0x4c]
mov eax, dword [0x4b65a4]
xorps xmm0, xmm0
push 0x4b6130
push edx
push 0x40
push esi
mov dword [ebp - 0x4c], eax
mov eax, dword [0x4b6154]
push 1
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 0x15
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x50
mov dword [ebp - 0x18], 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
test eax, eax
jns 0x43c157
mov eax, dword [0x4b60a8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [0x4b5f50]
test eax, eax
je 0x43c166
inc dword [eax + 0x394]
push 0x3a68
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea ecx, [ebp - 0x51]
mov dword [ebp - 0x50], eax
add esp, 4
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x43c19a
push ecx
mov ecx, eax
call fcn.00401730
mov edi, eax
mov dword [ebp - 0x50], eax
jmp 0x43c19f
xor edi, edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 4], 0xffffffff
cmp dword [0x4b5f50], 0
jne 0x43c1b5
mov dword [0x4b5f50], edi
push 0
xor edx, edx
mov dword [ebp - 0x5c], 0
mov ecx, str.Window
mov dword [ebp - 0x70], str.Window
call fcn.00402c90
mov ecx, dword [edi + 0x2c40]
lea esi, [edi + 0x2c3c]
mov dword [ebp - 0x6c], eax
add esp, 4
mov eax, dword [esi]
mov dword [ebp - 0x68], 0x412480
mov dword [ebp - 0x64], 0x4124f0
mov dword [ebp - 0x60], 0x4125e0
test eax, eax
jne 0x43c246
cmp eax, ecx
jne 0x43c229
lea edi, [eax + 1]
test ecx, ecx
je 0x43c214
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x43c219
mov eax, 8
cmp eax, edi
mov ecx, esi
cmovg edi, eax
push edi
call fcn.00413330
mov edi, dword [ebp - 0x50]
mov eax, dword [esi]
movups xmm0, xmmword [ebp - 0x70]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 0x60]
movq qword [eax + ecx*8 + 0x10], xmm0
jmp 0x43c2a2
cmp eax, ecx
jne 0x43c271
lea edi, [eax + 1]
test ecx, ecx
je 0x43c25c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x43c261
mov eax, 8
cmp eax, edi
mov ecx, esi
cmovg edi, eax
push edi
call fcn.00413330
mov edi, dword [ebp - 0x50]
mov eax, dword [esi]
test eax, eax
jle 0x43c28e
mov ecx, dword [esi + 8]
lea eax, [eax + eax*2]
shl eax, 3
push eax
push ecx
lea eax, [ecx + 0x18]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, dword [esi + 8]
movups xmm0, xmmword [ebp - 0x70]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x60]
movq qword [eax + 0x10], xmm0
mov eax, dword [0x4b5f50]
lea ecx, [ebp - 0x168]
inc dword [esi]
mov byte [edi], 1
mov dword [ebp - 0x50], eax
mov edx, dword [eax + 0x94]
call fcn.0041dac0
mov esi, eax
lea edi, [ebp - 0xf0]
mov ecx, 0x1d
lea eax, [ebp - 0xf0]
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, edx
mov dword [ebp - 0xf0], 0x49a358
mov dword [ebp - 0xec], 0xf
mov dword [ebp - 0xe0], 0x41700000
mov dword [ebp - 0xc0], 0x48a9f8
call fcn.0041ddd0
mov eax, dword [ebp - 0x50]
push 0x4b6608
or dword [eax + 8], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x43c3ef
push 0x4b6600
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x43c3ef
mov ecx, dword [0x4b5f50]
mov eax, dword [ebp - 0x58]
mov dword [0x4b65fc], eax
or dword [ecx + 0xc], 6
mov dword [ecx + 0xc4], str.imgui_impl_win32
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0x34], 9
mov dword [ecx + 0x38], 0x25
mov dword [ecx + 0x3c], 0x27
mov dword [ecx + 0x40], 0x26
mov dword [ecx + 0x44], 0x28
mov dword [ecx + 0x48], 0x21
mov dword [ecx + 0x4c], 0x22
mov dword [ecx + 0x50], 0x24
mov dword [ecx + 0x54], 0x23
mov dword [ecx + 0x58], 0x2d
mov dword [ecx + 0x5c], 0x2e
mov dword [ecx + 0x60], 8
mov dword [ecx + 0x64], 0x20
mov dword [ecx + 0x68], 0xd
mov dword [ecx + 0x6c], 0x1b
mov dword [ecx + 0x70], 0x41
mov dword [ecx + 0x74], 0x43
mov dword [ecx + 0x78], 0x56
mov dword [ecx + 0x7c], 0x58
mov dword [ecx + 0x80], 0x59
mov dword [ecx + 0x84], 0x5a
jmp 0x43c3f5
mov ecx, dword [0x4b5f50]
mov eax, dword [0x4b6130]
mov dword [ecx + 0xc8], str.imgui_impl_dx9
mov dword [0x4b65f4], eax
mov eax, dword [0x4b60a8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00478b79
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret