Function at 0x4af5e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b15d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push esi
push edi
push 0
mov dword [ebp - 0xf4], 0x30
mov dword [ebp - 0xf0], 0x40
mov dword [ebp - 0xec], 0x4b0250
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0xe0], eax
xorps xmm0, xmm0
lea eax, [ebp - 0xf4]
mov dword [ebp - 0xcc], str.ImGui_Example
push eax
movups xmmword [ebp - 0xdc], xmm0
mov dword [ebp - 0xc8], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [ebp - 0xe0]
push 0
push 0
push 0x320
push 0x500
push 0x64
push 0x64
push 0xcf0000
push str.Dear_ImGui_DirectX11_Example
push dword [ebp - 0xcc]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x4dca64
mov esi, dword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
mov ebx, eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x48], ebx
push eax
push 0x4dca60
push 0x4dca58
lea eax, [ebp - 0x90]
mov dword [ebp - 0x68], 2
push eax
push 7
push 2
lea eax, [ebp - 0x34]
mov dword [ebp - 0x90], 0
push eax
push 0
push 0
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x8c], 0
push 0
movlpd qword [ebp - 0x7c], xmm0
mov dword [ebp - 0x80], 0x1c
mov dword [ebp - 0x88], 0x3c
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x6c], 0x20
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x34], 0xb000
mov dword [ebp - 0x30], 0xa000
call esi
cmp eax, 0x887a0004
jne 0x4af781
push 0x4dca64
lea eax, [ebp - 0x20]
push eax
push 0x4dca60
push 0x4dca58
lea eax, [ebp - 0x90]
push eax
push 7
push 2
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 5
push 0
call esi
test eax, eax
je 0x4af7b2
call fcn.004b01e0
push dword [ebp - 0xe0]
push dword [ebp - 0xcc]
call dword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4dca58]
lea edx, [ebp - 0x14]
push edx
push 0x4d55bc
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [0x4dca60]
push 0x4dca54
push 0
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0xa
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, dword [0x4dca24]
push 0x5f68
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [0x4dca24]
add esp, 4
mov dword [ebp - 0x14], 6
mov esi, eax
test ecx, ecx
je 0x4af865
movsx edx, word [ecx + 0x5e1c]
lea eax, [ecx + 0x5e20]
mov ebx, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], ebx
je 0x4af858
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x14]
movzx eax, dx
mov word [ecx + 0x5e1c], ax
cwde
add eax, 0xbc4
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], ebx
mov dword [eax + 4], edx
inc word [eax + 4]
inc dword [ecx + 0x5e14]
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x25]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4af887
push 0
mov ecx, esi
call fcn.004013d0
jmp 0x4af889
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x4dca24], eax
call fcn.00407ab0
mov ecx, dword [0x4dca24]
test edi, edi
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmovne ecx, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], ecx
mov dword [0x4dca24], ecx
test ecx, ecx
jne 0x4af8d7
push 0x10c6
push str.C:UsersAdminDownloadsimgui_masterimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call eax
mov ecx, dword [0x4dca24]
add esp, 0xc
mov dword [ebp - 0x38], ecx
or dword [ecx + 8], 3
xor ecx, ecx
call fcn.0045ccb0
mov ecx, ebx
call fcn.0049cb80
call fcn.0049c990
push 0x4b8200
lea eax, [ebp - 0x54]
mov dword [ebp - 0x3c], 0
push str.img.png
push eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov esi, dword [ebp - 0x54]
xor ecx, ecx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0xc
test eax, eax
mov dword [ebp - 0x20], ebx
cmovne esi, ecx
mov dword [ebp - 0x54], esi
test esi, esi
jne 0x4af959
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.cant_fopen
jmp 0x4afa96
push esi
lea ecx, [ebp - 0x228]
call fcn.0049eea0
push ecx
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x228]
call fcn.0049f6f0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4afa8c
mov ecx, dword [ebp - 0x17c]
sub ecx, dword [ebp - 0x178]
push 1
push ecx
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x3c], eax
shl eax, 2
push edx
mov dword [ebp - 0xc0], eax
lea edx, [ebp - 0xc4]
mov eax, dword [0x4dca60]
push edx
mov dword [ebp - 0x68], 0
lea edx, [ebp - 0x80]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], 0x1c
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 8
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xbc], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x140], eax
lea edx, [ebp - 0x14c]
mov eax, dword [0x4dca60]
xorps xmm0, xmm0
push edx
push dword [ebp - 0x2c]
movlpd qword [ebp - 0x13c], xmm0
mov dword [ebp - 0x14c], 0x1c
mov dword [ebp - 0x148], 4
mov dword [ebp - 0x144], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call ebx
jmp 0x4afa93
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
movaps xmm0, xmmword [0x4d60c0]
xor bl, bl
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov eax, dword [sym.imp.USER32.dll_DispatchMessageW]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov byte [ebp - 0xe], 1
mov byte [ebp - 0xd], 0
movups xmmword [ebp - 0x134], xmm0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], eax
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x168]
push eax
call edi
test eax, eax
je 0x4afb21
nop word [eax + eax]
lea eax, [ebp - 0x168]
push eax
call esi
lea eax, [ebp - 0x168]
push eax
call dword [ebp - 0x24]
cmp dword [ebp - 0x164], 0x12
mov eax, 1
push eax
push 0
push 0
movzx ebx, bl
cmove ebx, eax
lea eax, [ebp - 0x168]
push 0
push eax
call edi
test eax, eax
jne 0x4afae0
test bl, bl
jne 0x4aff6d
mov esi, dword [0x4dca50]
test esi, esi
je 0x4afbbe
mov edx, dword [0x4dca5c]
test edx, edx
je 0x4afbbe
mov ecx, dword [0x4dca54]
test ecx, ecx
je 0x4afb63
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esi, dword [0x4dca50]
mov edx, dword [0x4dca5c]
mov dword [0x4dca54], 0
mov eax, dword [0x4dca58]
push 0
push 0
push edx
mov ecx, dword [eax]
push esi
push 0
push eax
call dword [ecx + 0x34]
mov eax, dword [0x4dca58]
lea edx, [ebp - 0x18]
push edx
push 0x4d55bc
push 0
mov ecx, dword [eax]
push eax
mov dword [0x4dca5c], 0
mov dword [0x4dca50], 0
call dword [ecx + 0x24]
mov eax, dword [0x4dca60]
push 0x4dca54
push 0
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [0x4dca24]
test esi, esi
je 0x4afbd1
mov esi, dword [esi + 0x74]
test esi, esi
jne 0x4afbe8
jmp 0x4afbd3
xor esi, esi
push 0x255
push str.C:UsersAdminDownloadsimgui_master_backendsimgui_impl_dx11.cpp
push str.bd___nullptr___Did_you_call_ImGui_ImplDX11_Init____
call dword [ebp - 0x1c]
add esp, 0xc
cmp dword [esi + 0x24], 0
jne 0x4afbf3
call fcn.0049c550
call fcn.0049d870
call fcn.0040a570
cmp byte [ebp - 0xe], 0
je 0x4afc0b
lea ecx, [ebp - 0xe]
call fcn.0042c430
push 0
xor edx, edx
mov ecx, 0x4c01b8
call fcn.00410080
add esp, 4
push str.This_is_some_useful_text.
call fcn.00475a30
add esp, 4
lea edx, [ebp - 0xe]
mov ecx, str.Demo_Window
call fcn.00478820
lea edx, [ebp - 0xd]
mov ecx, str.Another_Window
call fcn.00478820
push 0
push str._.3f
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x4c], 0x3f800000
push eax
push 0x4dd19c
mov edx, 8
mov ecx, str.float
call fcn.0047d4d0
add esp, 0x14
lea edx, [ebp - 0x134]
mov ecx, str.clear_color
push 2
call fcn.00485fb0
add esp, 4
mov dword [ebp - 0x98], 0
lea edx, [ebp - 0x98]
mov dword [ebp - 0x94], 0
mov ecx, 0x4b3240
push 0
call fcn.00476a70
mov edx, dword [0x4dd198]
add esp, 4
test al, al
je 0x4afcc6
inc edx
mov dword [0x4dd198], edx
mov eax, dword [0x4dca24]
mov esi, dword [eax + 0x3f88]
cmp byte [esi + 0xaf], 0
jne 0x4afd2d
movss xmm1, dword [eax + 0x38f4]
addss xmm1, dword [esi + 0xf8]
movss xmm0, dword [esi + 0xfc]
movss dword [esi + 0xf0], xmm1
movss dword [esi + 0xf4], xmm0
mov eax, dword [esi + 0x120]
mov ecx, dword [esi + 0x124]
mov dword [esi + 0x118], eax
mov eax, dword [esi + 0x12c]
mov dword [esi + 0x11c], ecx
mov dword [esi + 0x128], eax
mov byte [esi + 0x130], 1
push edx
push str.counter___d
call fcn.00475a30
mov eax, dword [ebp - 0x38]
movss xmm1, dword [eax + 0x98]
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
sub esp, 8
movss xmm0, dword [0x4d58b4]
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.Application_average__.3f_ms_frame___.1f_FPS_
call fcn.00475a30
add esp, 0x14
call fcn.004129b0
cmp byte [ebp - 0xd], 0
je 0x4afe9b
push 0
lea edx, [ebp - 0xd]
mov ecx, str.Another_Window
call fcn.00410080
movd xmm0, dword [ebp - 0x3c]
lea eax, [ebp - 0x104]
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0xb0]
cvtdq2ps xmm0, xmm0
add esp, 4
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x114], 0x3f800000
push eax
movss dword [ebp - 0xb0], xmm0
lea eax, [ebp - 0x114]
movd xmm0, dword [ebp - 0x40]
push eax
cvtdq2ps xmm0, xmm0
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x100], 0
push eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x110], 0x3f800000
push eax
mov dword [ebp - 0xfc], 0
movss dword [ebp - 0xac], xmm0
mov dword [ebp - 0x10c], 0x3f800000
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0x108], 0x3f800000
mov dword [ebp - 0xa0], 0x3f800000
mov dword [ebp - 0x9c], 0x3f800000
call fcn.00477fa0
push str.Hello_from_another_window_
call fcn.00475a30
add esp, 0x14
mov dword [ebp - 0xb8], 0
lea edx, [ebp - 0xb8]
mov dword [ebp - 0xb4], 0
mov ecx, str.Close_Me
push 0
call fcn.00476a70
movzx ecx, byte [ebp - 0xd]
xor edx, edx
add esp, 4
test al, al
cmovne ecx, edx
mov byte [ebp - 0xd], cl
call fcn.004129b0
call fcn.0040c5d0
movss xmm2, dword [ebp - 0x128]
movups xmm1, xmmword [ebp - 0x134]
mov eax, dword [0x4dca64]
movaps xmm0, xmm2
movss dword [ebp - 0x118], xmm2
mulss xmm0, xmm1
push 0
push 0x4dca54
push 1
movss dword [ebp - 0x124], xmm0
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
shufps xmm1, xmm1, 0xaa
mulss xmm0, xmm2
push eax
mulss xmm1, xmm2
movss dword [ebp - 0x120], xmm0
movss dword [ebp - 0x11c], xmm1
mov ecx, dword [eax]
call dword [ecx + 0x84]
mov eax, dword [0x4dca64]
lea edx, [ebp - 0x124]
push edx
push dword [0x4dca54]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc8]
mov esi, dword [0x4dca24]
cmp dword [esi + 0x49e0], 0
jg 0x4aff3f
push 0x73e
push 0x4b2350
push str.i___0__i___Size
call dword [ebp - 0x1c]
add esp, 0xc
mov eax, dword [esi + 0x49e8]
xor ecx, ecx
mov eax, dword [eax]
add eax, 0x38
cmp byte [eax], cl
cmovne ecx, eax
call fcn.0049b990
mov eax, dword [0x4dca58]
push 0
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov esi, dword [ebp - 0x30]
jmp 0x4afac5
mov esi, dword [0x4dca24]
test esi, esi
je 0x4b004d
mov edi, dword [esi + 0x74]
test edi, edi
je 0x4b004f
mov ebx, dword [ebp - 0x1c]
test esi, esi
jne 0x4affa7
push 0x10c6
push str.C:UsersAdminDownloadsimgui_masterimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call ebx
mov esi, dword [0x4dca24]
add esp, 0xc
call fcn.0049c860
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4affb9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x4affc5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4affd2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [esi + 0xc], 0xfffffff7
mov ecx, dword [0x4dca24]
mov dword [esi + 0x6c], 0
mov dword [esi + 0x74], 0
test ecx, ecx
je 0x4b0033
movsx edx, word [ecx + 0x5e1c]
lea eax, [ecx + 0x5e20]
mov esi, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], esi
je 0x4b0029
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x14]
movzx eax, dx
mov word [ecx + 0x5e1c], ax
cwde
add eax, 0xbc4
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], esi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5e18]
push edi
call dword [ebp - 0x20]
mov ecx, dword [0x4dca24]
add esp, 4
test ecx, ecx
je 0x4b0071
mov esi, dword [ecx + 0x70]
test esi, esi
jne 0x4b008d
jmp 0x4b0073
xor edi, edi
mov ebx, dword [ebp - 0x1c]
push 0x245
push str.C:UsersAdminDownloadsimgui_master_backendsimgui_impl_dx11.cpp
push str.bd___nullptr___No_renderer_backend_to_shutdown__or_already_shutdown__
call ebx
mov esi, dword [0x4dca24]
add esp, 0xc
jmp 0x4aff89
xor esi, esi
push 0xca
push str.C:UsersAdminDownloadsimgui_master_backendsimgui_impl_win32.cpp
push str.bd___nullptr___No_platform_backend_to_shutdown__or_already_shutdown__
call ebx
mov ecx, dword [0x4dca24]
add esp, 0xc
test ecx, ecx
jne 0x4b00ab
push 0x10c6
push str.C:UsersAdminDownloadsimgui_masterimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call ebx
mov ecx, dword [0x4dca24]
add esp, 0xc
mov eax, dword [esi + 0x2c]
lea edi, [ecx + 8]
test eax, eax
je 0x4b00c2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x4dca24]
and dword [edi + 4], 0xfffffff8
mov dword [edi + 0x60], 0
mov dword [edi + 0x68], 0
test ecx, ecx
je 0x4b0122
movsx edx, word [ecx + 0x5e1c]
mov edi, dword [ecx + 0x3f08]
lea eax, [edx + 0xbc4]
cmp dword [ecx + eax*8], edi
lea eax, [ecx + eax*8]
je 0x4b0118
lea eax, [edx + 1]
mov ebx, 6
cdq
idiv ebx
movzx eax, dx
mov word [ecx + 0x5e1c], ax
cwde
add eax, 0xbc4
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], edi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5e18]
mov ebx, dword [ebp - 0x20]
push esi
call ebx
mov esi, dword [0x4dca24]
add esp, 4
mov dword [0x4dca24], esi
call fcn.00407f50
mov dword [0x4dca24], 0
test esi, esi
je 0x4b01a6
mov ecx, esi
call fcn.0042bd80
mov ecx, dword [0x4dca24]
test ecx, ecx
je 0x4b01a0
movsx edx, word [ecx + 0x5e1c]
lea eax, [ecx + 0x5e20]
mov edi, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], edi
je 0x4b0196
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x14]
movzx eax, dx
mov word [ecx + 0x5e1c], ax
cwde
add eax, 0xbc4
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], edi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5e18]
push esi
call ebx
add esp, 4
call fcn.004b01e0
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp - 0xe0]
push dword [ebp - 0xcc]
call dword [sym.imp.USER32.dll_UnregisterClassW]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret