Function at 0x4a0c40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x801aa8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, dword [ebp + 8]
push eax
push 0x585544
call fcn.004a5e70
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push eax
call fcn.00510191
add esp, 4
push 0xa
lea ecx, [ebp - 0x10]
push ecx
call fcn.004a1420
add esp, 8
push 8
lea edx, [ebp - 0x18]
push edx
call fcn.004a1420
add esp, 8
mov eax, 1
imul ecx, eax, 9
mov dword [ebp - 0x80], ecx
cmp dword [ebp - 0x80], 0xa
jae 0x4a0ca3
jmp 0x4a0ca8
call fcn.004fc77a
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 0x4a0cc9
jmp 0x4a0cce
call fcn.004fc77a
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], 0x4a0b70
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 0x4a13f7
push str.class_registered
call fcn.004a5e70
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 - 0x90], eax
mov eax, dword [ebp - 0x38]
cdq
sub eax, edx
sar eax, 1
sub eax, 0x4b
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xc8], 0xce0000
mov ecx, dword [0x805530]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + ecx*4]
mov ecx, dword [0x802dbc]
cmp ecx, dword [eax + 4]
jle 0x4a0e06
push 0x802dbc
call fcn.004fc0f9
add esp, 4
cmp dword [0x802dbc], 0xffffffff
jne 0x4a0e06
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 [0x802db8], edx
push 0x802dbc
call fcn.004fc0af
add esp, 4
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov ecx, dword [0x802db8]
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 - 0x8c]
push edx
mov eax, dword [ebp - 0x90]
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 [0x802d5c], eax
cmp dword [0x802d5c], 0
je 0x4a13e1
push str.window_created
call fcn.004a5e70
add esp, 4
push 0x58557c
call fcn.004a5e70
add esp, 4
push 0xfffffffffffffff0
mov eax, dword [0x802d5c]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x78], eax
push 0x585580
call fcn.004a5e70
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 [0x802d5c]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x585584
call fcn.004a5e70
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 0x4a0eed
push 0x585594
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4a0f01
push 0x10
push 0x5855a4
push 0x5855c8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x20
call sub.d3d9.dll_Direct3DCreate9
mov dword [ebp - 0x70], eax
push 0x5855c4
call fcn.004a5e70
add esp, 4
push 0x38
push 0
push 0x802d6c
call fcn.004fdef0
add esp, 0xc
push 0x58563c
call fcn.004a5e70
add esp, 4
mov dword [0x802d8c], 1
mov dword [0x802d84], 1
mov dword [0x802d74], 0
mov dword [0x802d90], 1
mov dword [0x802d94], 0x50
mov dword [0x802da0], 1
mov edx, dword [ebp - 0x70]
mov eax, dword [edx]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x94], ecx
push 0x802d68
push 0x802d6c
push 0x40
mov edx, dword [0x802d5c]
push edx
push 1
push 0
mov eax, dword [ebp - 0x70]
push eax
call dword [ebp - 0x94]
test eax, eax
jl 0x4a13b6
push str.d3d_device_created
call fcn.004a5e70
add esp, 4
push 0
call fcn.004652d0
add esp, 4
mov ecx, dword [0x802d5c]
push ecx
call fcn.0048d6b0
add esp, 4
mov edx, dword [0x802d68]
push edx
call fcn.0048c760
add esp, 4
call fcn.00468010
mov dword [ebp - 0x74], eax
mov dword [ebp - 0xcc], str.D:_f_BAHNSCHRIFT.TTF
mov dword [ebp - 0xd0], str.D:_f_consolab.ttf
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x90]
mov dword [ebp - 0x9c], ecx
mov edx, dword [ebp - 0x74]
mov ecx, dword [edx + 0x90]
call fcn.0047c8f0
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
push eax
push 0
push ecx
movss xmm0, dword [0x53551c]
movss dword [esp], xmm0
push 0x4246c
push 0x5430d8
mov ecx, dword [ebp - 0x9c]
call fcn.004797b0
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x18], 0
push str.imgui_initialized
call fcn.004a5e70
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
push 0xa
mov eax, dword [0x802d5c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x802d5c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.004a14c0
push str.styles_setuped
call fcn.004a5e70
add esp, 4
movzx edx, byte [0x802da4]
test edx, edx
jne 0x4a1358
push 1
push 0
push 0
mov eax, dword [0x802d5c]
push eax
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4a10f0
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [ebp - 0x30], 0x12
jne 0x4a10ee
mov byte [0x802da4], 1
jmp 0x4a10a4
call fcn.0048c850
call fcn.0048d8d0
call fcn.0046f2c0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
lea ecx, [ebp - 0xe0]
call fcn.0045b9b0
mov dword [ebp - 0xa0], eax
lea ecx, [ebp - 0xe8]
call fcn.0045e780
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xa0]
push ecx
push 0
mov edx, dword [ebp - 0xc0]
push edx
call fcn.00474010
add esp, 0xc
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
lea ecx, [ebp - 0xf0]
call fcn.0045b9b0
mov dword [ebp - 0xbc], eax
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
lea ecx, [ebp - 0xd8]
call fcn.0045b9b0
mov eax, dword [ebp - 0xbc]
push eax
push 0
lea ecx, [ebp - 0xd8]
push ecx
call fcn.00474010
add esp, 0xc
push 0x127
push ecx
movss xmm0, dword [0x5354dc]
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 - 0xf8]
call fcn.0045b9b0
push eax
push 0
lea edx, [ebp - 0x10]
push edx
call fcn.0045f6b0
add esp, 0x14
call dword [ebp + 0xc]
movzx eax, al
test eax, eax
jne 0x4a11f7
mov byte [0x802da4], 1
call fcn.00465810
call fcn.00465bc0
mov ecx, dword [0x802d68]
mov edx, dword [ecx]
mov eax, dword [edx + 0xe4]
mov dword [ebp - 0xb8], eax
push 0
push 7
mov ecx, dword [0x802d68]
push ecx
call dword [ebp - 0xb8]
mov edx, dword [0x802d68]
mov eax, dword [edx]
mov ecx, dword [eax + 0xe4]
mov dword [ebp - 0xb4], ecx
push 0
push 0x1b
mov edx, dword [0x802d68]
push edx
call dword [ebp - 0xb4]
mov eax, dword [0x802d68]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xe4]
mov dword [ebp - 0xc4], edx
push 0
push 0xae
mov eax, dword [0x802d68]
push eax
call dword [ebp - 0xc4]
mov dword [ebp - 0xa4], 0xffa0b4c8
mov ecx, dword [0x802d68]
mov edx, dword [ecx]
mov eax, dword [edx + 0xac]
mov dword [ebp - 0xa8], eax
push 0
push ecx
movss xmm0, dword [0x5354dc]
movss dword [esp], xmm0
mov ecx, dword [ebp - 0xa4]
push ecx
push 3
push 0
push 0
mov edx, dword [0x802d68]
push edx
call dword [ebp - 0xa8]
mov eax, dword [0x802d68]
mov ecx, dword [eax]
mov edx, dword [0x802d68]
push edx
mov eax, dword [ecx + 0xa4]
call eax
test eax, eax
jl 0x4a12fc
call fcn.00470b00
call fcn.00467d40
push eax
call fcn.0048c870
add esp, 4
mov ecx, dword [0x802d68]
mov edx, dword [ecx]
mov eax, dword [0x802d68]
push eax
mov ecx, dword [edx + 0xa8]
call ecx
mov edx, dword [0x802d68]
mov eax, dword [edx]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0xac], ecx
push 0
push 0
push 0
push 0
mov edx, dword [0x802d68]
push edx
call dword [ebp - 0xac]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0x88760868
jne 0x4a1353
mov eax, dword [0x802d68]
mov ecx, dword [eax]
mov edx, dword [0x802d68]
push edx
mov eax, dword [ecx + 0xc]
call eax
cmp eax, 0x88760869
jne 0x4a1353
call fcn.004a0b10
jmp 0x4a10a4
mov ecx, dword [ebp - 0x74]
mov ecx, dword [ecx + 0x90]
call fcn.0047c1d0
push str.destroying_imgui
call fcn.004a5e70
add esp, 4
call fcn.0048d680
call fcn.0048dab0
push 0
call fcn.004657d0
add esp, 4
call fcn.004a0ab0
mov edx, dword [0x802d5c]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.USER32.dll_UnregisterClassA]
push str.window_destroyed
call fcn.004a5e70
add esp, 4
jmp 0x4a13df
push str.failed_to_create_d3d_device
call fcn.004a5e70
add esp, 4
mov edx, dword [ebp - 0x70]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.USER32.dll_UnregisterClassA]
jmp 0x4a13f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_create_window:__x
call fcn.004a5e70
add esp, 8
jmp 0x4a140b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_register_class:__x
call fcn.004a5e70
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fbb88
mov esp, ebp
pop ebp
ret