Function at 0x1013ec80
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
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101496ae
push eax
mov dword fs:[0], esp
mov eax, 0x1658
push ebx
call fcn.1006dc80
cmp byte [0x101e6ba4], 0
push esi
push edi
jne 0x1013f111
mov eax, dword [0x101e6b78]
test eax, eax
je 0x1013ecd4
inc dword [eax + 0x36c]
push 0x3ad8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea ecx, [ebp - 0x15]
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1013ed03
push ecx
mov ecx, eax
call fcn.1003ae60
jmp 0x1013ed05
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [0x101e6b78], 0
jne 0x1013ed1a
mov dword [0x101e6b78], eax
mov ecx, eax
call fcn.10117c50
mov eax, dword [0x101e6b78]
test eax, eax
je 0x1013f126
add eax, 8
lea ecx, [ebp - 0x1668]
push eax
call fcn.100421f0
mov dword [ebp - 4], 1
mov eax, dword [0x101e6b78]
test eax, eax
je 0x1013f126
movaps xmm0, xmmword [0x1017f840]
mov dword [eax + 0x1510], 0
mov word [eax + 0x15a4], 0
mov dword [eax + 0x156c], 0
mov dword [eax + 0x1568], 0x40c00000
mov dword [eax + 0x1508], 0
mov dword [eax + 0x150c], 0
movups xmmword [eax + 0x16ac], xmm0
push 0x38
movaps xmm0, xmmword [0x1017f8a0]
movups xmmword [eax + 0x16bc], xmm0
lea eax, [ebp - 0x170]
mov byte [0x101e6ba5], 1
push 0
push eax
mov dword [ebp - 0x1c], 0
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebx + 8]
lea ecx, [ebp - 0xc0]
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [ebp - 0xc0], xmm0
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x24]
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push ecx
push 0
push edi
call dword [eax + 0x38]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1013ee03
mov eax, dword [ecx]
lea edx, [ebp - 0x170]
push edx
push ecx
call dword [eax + 0x24]
mov esi, dword [ebp - 0xb8]
push 0x101edde0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1013eef1
push 0x101eddd8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1013eef1
mov eax, dword [0x101e6b78]
mov dword [0x101eddd0], esi
test eax, eax
je 0x1013f126
or dword [eax + 0xc], 6
mov dword [eax + 0xb4], str.imgui_impl_win32
mov dword [eax + 0xd8], esi
mov dword [eax + 0x34], 9
mov dword [eax + 0x38], 0x25
mov dword [eax + 0x3c], 0x27
mov dword [eax + 0x40], 0x26
mov dword [eax + 0x44], 0x28
mov dword [eax + 0x48], 0x21
mov dword [eax + 0x4c], 0x22
mov dword [eax + 0x50], 0x24
mov dword [eax + 0x54], 0x23
mov dword [eax + 0x58], 0x2d
mov dword [eax + 0x5c], 0x2e
mov dword [eax + 0x60], 8
mov dword [eax + 0x64], 0x20
mov dword [eax + 0x68], 0xd
mov dword [eax + 0x6c], 0x1b
mov dword [eax + 0x70], 0x41
mov dword [eax + 0x74], 0x43
mov dword [eax + 0x78], 0x56
mov dword [eax + 0x7c], 0x58
mov dword [eax + 0x80], 0x59
mov dword [eax + 0x84], 0x5a
jmp 0x1013eef6
mov eax, dword [0x101e6b78]
test eax, eax
je 0x1013f126
lea ecx, [ebp - 0x138]
mov dword [eax + 0xb8], str.imgui_impl_dx9
mov dword [0x101eddc8], edi
call fcn.10121750
mov eax, dword [ebp - 0x15dc]
mov dword [ebp - 0xf8], 0x90
cmp byte [eax], 0
jne 0x1013f126
cmp dword [ebp - 0x138], 0
lea esi, [ebp - 0x138]
mov ecx, 0x1d
lea edi, [ebp - 0xb0]
rep movsd dword es:[edi], dword [esi]
jne 0x1013f126
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x1018b368
push ecx
mov ecx, eax
mov dword [ebp - 0xac], 0x472f8
mov dword [ebp - 0xa0], 0x41400000
mov dword [ebp - 0x80], 0x1017e014
call fcn.101211b0
mov eax, dword [ebp - 0x15dc]
cmp byte [eax], 0
jne 0x1013f126
mov ecx, 0x1d
lea esi, [ebp - 0x138]
lea edi, [ebp - 0xb0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x1018b368
push ecx
mov ecx, eax
mov dword [ebp - 0xac], 0x472f8
mov dword [ebp - 0xa0], 0x41400000
mov dword [ebp - 0x80], 0x1017e014
call fcn.101211b0
mov eax, dword [ebp - 0x15dc]
cmp byte [eax], 0
jne 0x1013f126
mov ecx, 0x1d
lea esi, [ebp - 0x138]
lea edi, [ebp - 0xb0]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x101d2660
push edx
mov ecx, eax
mov dword [ebp - 0xac], 0x6400
mov dword [ebp - 0xa0], 0x41200000
mov dword [ebp - 0x80], 0x1017e014
call fcn.101211b0
mov eax, dword [ebp - 0x15dc]
cmp byte [eax], 0
jne 0x1013f126
mov ecx, 0x1d
lea esi, [ebp - 0x138]
lea edi, [ebp - 0xb0]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x15dc]
lea eax, [ebp - 0xb0]
push eax
mov ecx, esi
mov dword [ebp - 0xb0], 0x101d8a60
mov dword [ebp - 0xac], 0xb8d8
mov dword [ebp - 0xa0], 0x41b00000
mov dword [ebp - 0x80], 0x1017e014
call fcn.101211b0
push ecx
mov ecx, esi
call fcn.10121030
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0x1012c6a0
push eax
mov dword [ebp - 0x24], 0x1012c690
mov dword [ebp - 0x20], 0x1012c630
call fcn.10070ea0
add esp, 8
test eax, eax
jne 0x1013f0e7
push dword [ebp - 0x14]
call fcn.1006ed00
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edx, esi
push 0
call fcn.1012c700
add esp, 4
push dword [ebp - 0x14]
call fcn.1006f560
add esp, 4
mov byte [0x101e6ba4], 1
mov ecx, dword [ebp - 0x178]
test ecx, ecx
je 0x1013f111
mov eax, dword [0x101e6b78]
test eax, eax
je 0x1013f107
dec dword [eax + 0x36c]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3