Function at 0x4a0e30
Capabilities:
Check if file exists
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x814868]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, dword [ebp + 8]
push eax
push str.create_window:__x
call fcn.004a60c0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push eax
call fcn.00515ed1
add esp, 4
push 0xa
lea ecx, [ebp - 0x10]
push ecx
call fcn.004a1670
add esp, 8
push 8
lea edx, [ebp - 0x18]
push edx
call fcn.004a1670
add esp, 8
mov eax, 1
imul ecx, eax, 9
mov dword [ebp - 0x80], ecx
cmp dword [ebp - 0x80], 0xa
jae 0x4a0e93
jmp 0x4a0e98
call fcn.005024ba
mov edx, dword [ebp - 0x80]
mov byte [ebp + edx - 0x10], 0
mov eax, 1
imul ecx, eax, 7
mov dword [ebp - 0x84], ecx
cmp dword [ebp - 0x84], 8
jae 0x4a0eb9
jmp 0x4a0ebe
call fcn.005024ba
mov edx, dword [ebp - 0x84]
mov byte [ebp + edx - 0x18], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x7c], eax
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x68], 0x4a0d60
mov dword [ebp - 0x6c], 3
mov edx, dword [ebp + 8]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x48], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0xc
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x6c]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
movzx edx, ax
test edx, edx
je 0x4a1645
push str.class_registered
call fcn.004a60c0
add esp, 4
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x3c]
cdq
sub eax, edx
sar eax, 1
sub eax, 0x96
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x38]
cdq
sub eax, edx
sar eax, 1
sub eax, 0x4b
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xd8], 0xce0000
mov ecx, dword [0x8182c8]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + ecx*4]
mov ecx, dword [0x815b6c]
cmp ecx, dword [eax + 4]
jle 0x4a0ff6
push 0x815b6c
call fcn.00501ea1
add esp, 4
cmp dword [0x815b6c], 0xffffffff
jne 0x4a0ff6
push 0x1f
push 0
call dword [sym.imp.UxTheme.dll_GetThemeSysSize]
mov esi, eax
push 0x5c
push 0
call dword [sym.imp.UxTheme.dll_GetThemeSysSize]
lea edx, [esi + eax*2]
mov dword [0x815b68], edx
push 0x815b6c
call fcn.00501e50
add esp, 4
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov ecx, dword [0x815b68]
mov edx, dword [ebp + 0x14]
lea eax, [edx + ecx + 9]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
push ecx
mov edx, dword [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x94]
push eax
push 0xce0000
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x815b0c], eax
cmp dword [0x815b0c], 0
je 0x4a162f
push str.window_created
call fcn.004a60c0
add esp, 4
push 0x54942c
call fcn.004a60c0
add esp, 4
push 0xfffffffffffffff0
mov eax, dword [0x815b0c]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x78], eax
push 0x549430
call fcn.004a60c0
add esp, 4
mov ecx, dword [ebp - 0x78]
and ecx, 0xfffbffff
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
push edx
push 0xfffffffffffffff0
mov eax, dword [0x815b0c]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x549434
call fcn.004a60c0
add esp, 4
push str.D3d9.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x4a10dd
push 0x549444
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4a10f1
push 0x10
push 0x549454
push 0x549478
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x20
call sub.d3d9.dll_Direct3DCreate9
mov dword [ebp - 0x74], eax
push 0x5494ec
call fcn.004a60c0
add esp, 4
push 0x38
push 0
push 0x815b1c
call fcn.00503c30
add esp, 0xc
push 0x5494f0
call fcn.004a60c0
add esp, 4
mov dword [0x815b3c], 1
mov dword [0x815b34], 1
mov dword [0x815b24], 0
mov dword [0x815b40], 1
mov dword [0x815b44], 0x50
mov dword [0x815b50], 1
mov edx, dword [ebp - 0x74]
mov eax, dword [edx]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x98], ecx
push 0x815b18
push 0x815b1c
push 0x40
mov edx, dword [0x815b0c]
push edx
push 1
push 0
mov eax, dword [ebp - 0x74]
push eax
call dword [ebp - 0x98]
test eax, eax
jl 0x4a1604
push str.d3d_device_created
call fcn.004a60c0
add esp, 4
push 0
call fcn.004652c0
add esp, 4
mov ecx, dword [0x815b0c]
push ecx
call fcn.0048d890
add esp, 4
mov edx, dword [0x815b18]
push edx
call fcn.0048c940
add esp, 4
call fcn.00468000
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x8c], str.C:_Windows_Fonts_BAHNSCHRIFT.TTF
mov dword [ebp - 0xd0], str.C:_Windows_Fonts_consolab.ttf
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4a1247
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x90]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x90]
call fcn.0047cae0
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
push ecx
push 0
push ecx
movss xmm0, dword [0x53b65c]
movss dword [esp], xmm0
mov edx, dword [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0xa0]
call fcn.004796f0
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x90]
mov dword [ebp - 0xcc], ecx
mov edx, dword [ebp - 0x70]
mov ecx, dword [edx + 0x90]
call fcn.0047cae0
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
push eax
push 0
push ecx
movss xmm0, dword [0x544150]
movss dword [esp], xmm0
mov ecx, dword [ebp - 0xd0]
push ecx
mov ecx, dword [ebp - 0xcc]
call fcn.004796f0
mov dword [0x815b10], eax
mov edx, dword [ebp - 0x70]
mov dword [edx + 0x18], 0
push str.imgui_initialized
call fcn.004a60c0
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push 0xa
mov ecx, dword [0x815b0c]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x815b0c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.004a1710
push str.styles_setuped
call fcn.004a60c0
add esp, 4
movzx eax, byte [0x815b54]
test eax, eax
jne 0x4a15a7
push 1
push 0
push 0
mov ecx, dword [0x815b0c]
push ecx
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4a1341
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [ebp - 0x30], 0x12
jne 0x4a133f
mov byte [0x815b54], 1
jmp 0x4a12f4
call fcn.0048ca30
call fcn.0048dab0
call fcn.0046f2b0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
lea ecx, [ebp - 0xe8]
call fcn.0045b9a0
mov dword [ebp - 0xc8], eax
lea ecx, [ebp - 0xf0]
call fcn.0045e770
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 0xc8]
push edx
push 0
mov eax, dword [ebp - 0xc4]
push eax
call fcn.00474000
add esp, 0xc
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
lea ecx, [ebp - 0xf8]
call fcn.0045b9a0
mov dword [ebp - 0xd4], eax
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
lea ecx, [ebp - 0xe0]
call fcn.0045b9a0
mov ecx, dword [ebp - 0xd4]
push ecx
push 0
lea edx, [ebp - 0xe0]
push edx
call fcn.00474000
add esp, 0xc
push 0x127
push ecx
movss xmm0, dword [0x53b61c]
movss dword [esp], xmm0
cvtsi2ss xmm0, dword [ebp + 0x14]
push ecx
movss dword [esp], xmm0
cvtsi2ss xmm0, dword [ebp + 0x10]
push ecx
movss dword [esp], xmm0
lea ecx, [ebp - 0x100]
call fcn.0045b9a0
push eax
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.0045f6a0
add esp, 0x14
call dword [ebp + 0xc]
movzx ecx, al
test ecx, ecx
jne 0x4a1448
mov byte [0x815b54], 1
call fcn.00465800
call fcn.00465bb0
mov edx, dword [0x815b18]
mov eax, dword [edx]
mov ecx, dword [eax + 0xe4]
mov dword [ebp - 0xa8], ecx
push 0
push 7
mov edx, dword [0x815b18]
push edx
call dword [ebp - 0xa8]
mov eax, dword [0x815b18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
mov dword [ebp - 0xac], edx
push 0
push 0x1b
mov eax, dword [0x815b18]
push eax
call dword [ebp - 0xac]
mov ecx, dword [0x815b18]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
mov dword [ebp - 0xb0], eax
push 0
push 0xae
mov ecx, dword [0x815b18]
push ecx
call dword [ebp - 0xb0]
mov dword [ebp - 0xb4], 0xffa0b4c8
mov edx, dword [0x815b18]
mov eax, dword [edx]
mov ecx, dword [eax + 0xac]
mov dword [ebp - 0xb8], ecx
push 0
push ecx
movss xmm0, dword [0x53b61c]
movss dword [esp], xmm0
mov edx, dword [ebp - 0xb4]
push edx
push 3
push 0
push 0
mov eax, dword [0x815b18]
push eax
call dword [ebp - 0xb8]
mov ecx, dword [0x815b18]
mov edx, dword [ecx]
mov eax, dword [0x815b18]
push eax
mov ecx, dword [edx + 0xa4]
call ecx
test eax, eax
jl 0x4a154d
call fcn.00470af0
call fcn.00467d30
push eax
call fcn.0048ca50
add esp, 4
mov edx, dword [0x815b18]
mov eax, dword [edx]
mov ecx, dword [0x815b18]
push ecx
mov edx, dword [eax + 0xa8]
call edx
mov eax, dword [0x815b18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
mov dword [ebp - 0xbc], edx
push 0
push 0
push 0
push 0
mov eax, dword [0x815b18]
push eax
call dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0x88760868
jne 0x4a15a2
mov ecx, dword [0x815b18]
mov edx, dword [ecx]
mov eax, dword [0x815b18]
push eax
mov ecx, dword [edx + 0xc]
call ecx
cmp eax, 0x88760869
jne 0x4a15a2
call fcn.004a0d00
jmp 0x4a12f4
mov edx, dword [ebp - 0x70]
mov ecx, dword [edx + 0x90]
call fcn.0047c3c0
push str.destroying_imgui
call fcn.004a60c0
add esp, 4
call fcn.0048d860
call fcn.0048dc90
push 0
call fcn.004657c0
add esp, 4
call fcn.004a0ca0
mov eax, dword [0x815b0c]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.USER32.dll_UnregisterClassA]
push str.window_destroyed
call fcn.004a60c0
add esp, 4
jmp 0x4a162d
push str.failed_to_create_d3d_device
call fcn.004a60c0
add esp, 4
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x74]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.USER32.dll_UnregisterClassA]
jmp 0x4a1643
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_create_window:__x
call fcn.004a60c0
add esp, 8
jmp 0x4a1659
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_register_class:__x
call fcn.004a60c0
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005019e1
mov esp, ebp
pop ebp
ret