Function at 0x4875e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7b36
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x681c40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
mov dword [ebp - 0xf0], 0x30
mov dword [ebp - 0xec], 0x40
mov dword [ebp - 0xe8], 0x487f80
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0x108], eax
call eax
mov dword [ebp - 0xdc], eax
xorps xmm0, xmm0
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xc8], str.Loader
push eax
movups xmmword [ebp - 0xd8], xmm0
mov dword [ebp - 0xc4], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [ebp - 0xdc]
push 0
push 0
push 0x32
push 0x32
push 0
push 0
push 0xcf0000
push str.Loader
push dword [ebp - 0xc8]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
push 0
mov dword [ebp - 0x10c], edi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0x20
call dword [sym.imp.d3d9.dll_Direct3DCreate9]
mov ecx, eax
mov dword [0x688848], ecx
test ecx, ecx
je 0x487f0f
push 0x68884c
push 0x688850
push 0x40
xorps xmm0, xmm0
mov dword [0x688864], 0
push edi
push 1
movlpd qword [0x688850], xmm0
movlpd qword [0x68885c], xmm0
mov dword [0x68886c], 0
movlpd qword [0x68887c], xmm0
mov dword [0x688870], 1
mov dword [0x688868], 1
mov dword [0x688858], 0
mov dword [0x688874], 1
mov dword [0x688878], 0x50
mov dword [0x688884], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
test eax, eax
js 0x487f09
push 0
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x688710]
test eax, eax
je 0x487782
inc dword [eax + 0x370]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push 0x3f48
call ebx
lea ecx, [ebp - 0xfd]
mov dword [ebp - 0x104], eax
add esp, 4
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0xfc], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4877c0
push 0
mov ecx, eax
call fcn.004473e0
jmp 0x4877c2
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [0x688710], 0
jne 0x4877d7
mov dword [0x688710], eax
mov ecx, eax
call fcn.0044df30
mov eax, dword [0x688710]
xor ecx, ecx
mov dword [ebp - 0x104], eax
or dword [eax + 8], 0x401
call fcn.0046f610
mov ecx, edi
call fcn.00479170
mov esi, dword [0x688710]
mov edi, dword [0x68884c]
test esi, esi
je 0x487814
inc dword [esi + 0x370]
push 0x18
call ebx
add esp, 4
lea ecx, [ebp - 0xfd]
test eax, eax
je 0x487850
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0x1388
mov dword [eax + 0x14], 0x2710
jmp 0x487852
xor eax, eax
or dword [esi + 0xc], 0x1008
mov dword [esi + 0xd0], eax
mov dword [esi + 0xc8], str.imgui_impl_dx9
mov dword [eax], edi
mov eax, dword [edi]
push edi
call dword [eax + 4]
test dword [esi + 8], 0x400
je 0x4878b1
mov eax, dword [0x688710]
mov dword [eax + 0x1574], 0x478e90
mov dword [eax + 0x1578], 0x478f70
mov dword [eax + 0x157c], 0x478fd0
mov dword [eax + 0x1580], 0x479030
mov dword [eax + 0x1584], 0x479150
mov eax, dword [ebp - 0x104]
push ecx
mov ecx, str.C:WindowsFontsVerdana.ttf
mov dword [ebp - 0xfc], 0
mov eax, dword [eax + 0x98]
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0xfc]
push eax
call fcn.004491d0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4879da
push 0x78
lea eax, [ebp - 0x188]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0xffff
mov byte [ebp - 0x180], 1
add esp, 0xc
mov dword [ebp - 0x174], 3
cmp byte [ebp - 0x13e], 0
lea esi, [ebp - 0x188]
mov ecx, 0x1e
mov dword [ebp - 0x170], 1
lea edi, [ebp - 0xb0]
mov dword [ebp - 0x150], 0x7f7fffff
mov dword [ebp - 0x144], 0x3f800000
mov word [ebp - 0x140], ax
rep movsd dword es:[edi], dword [esi]
jne 0x487999
mov eax, 0x6710b0
nop dword [eax + eax]
mov cl, byte [eax - 1]
cmp cl, 0x2f
je 0x487975
cmp cl, 0x5c
je 0x487975
dec eax
cmp eax, str.C:WindowsFontsVerdana.ttf
ja 0x487960
movsd xmm0, qword [0x672e18]
sub esp, 8
movsd qword [esp], xmm0
push eax
push str._s___.0fpx
lea eax, [ebp - 0x66]
push 0x28
push eax
call fcn.00448ff0
add esp, 0x18
mov eax, dword [ebp - 0xfc]
lea esi, [ebp - 0xb0]
mov ecx, 0x1e
lea edi, [ebp - 0x188]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0x184], eax
lea eax, [ebp - 0x188]
push eax
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x178], 0x41400000
call fcn.00473270
xor bl, bl
mov dword [ebp - 0xfc], ebx
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
nop
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
call esi
test eax, eax
je 0x487a40
lea eax, [ebp - 0x34]
push eax
call edi
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [ebp - 0x30], 0x12
mov eax, 1
push eax
push 0
push 0
movzx ebx, bl
cmove ebx, eax
lea eax, [ebp - 0x34]
push 0
push eax
call esi
test eax, eax
jne 0x487a02
mov dword [ebp - 0xfc], ebx
test bl, bl
jne 0x487db7
mov ebx, dword [0x688710]
test ebx, ebx
je 0x487a52
mov eax, dword [ebx + 0xd0]
jmp 0x487a54
xor eax, eax
cmp dword [eax + 0xc], 0
jne 0x487a65
call fcn.00478d20
mov ebx, dword [0x688710]
test ebx, ebx
je 0x487a71
mov esi, dword [ebx + 0xcc]
jmp 0x487a73
xor esi, esi
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xf4], esi
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0xc0], xmm0
push dword [esi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xb8]
sub eax, dword [ebp - 0xc0]
movd xmm1, eax
mov eax, dword [ebp - 0xb4]
sub eax, dword [ebp - 0xbc]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebx + 0x10], xmm1
movss dword [ebx + 0x14], xmm0
cmp byte [esi + 0x26], 0
je 0x487b32
mov eax, dword [0x688710]
test eax, eax
je 0x487adf
mov edx, dword [eax + 0xcc]
mov dword [ebp - 0xf8], edx
jmp 0x487ae9
mov dword [ebp - 0xf8], 0
mov ecx, dword [eax + 0x158c]
lea edi, [eax + 0x1588]
test ecx, ecx
jns 0x487b11
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.004677d0
push 0
push 0x479b50
push 0
push 0
mov dword [edi], 0
call dword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov eax, dword [ebp - 0xf8]
mov byte [eax + 0x26], 0
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [ebp - 0x18]
mov ecx, edi
sub ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0xf4]
mov esi, dword [ebp - 0x14]
mov edx, esi
sbb edx, dword [eax + 0x14]
call fcn.005f68b0
mov eax, dword [ebp - 0xf4]
cvtsd2ss xmm0, xmm0
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
movss dword [ebp - 0xf8], xmm0
call fcn.005f68b0
movss xmm1, dword [ebp - 0xf8]
cvtsd2ss xmm0, xmm0
mov eax, dword [ebp - 0xf4]
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [eax + 0x10], edi
mov edi, eax
mov dword [edi + 0x14], esi
call fcn.00479660
cmp byte [ebx + 0xb8], 0
je 0x487bb2
or eax, 0xffffffff
jmp 0x487bbd
mov eax, dword [0x688710]
mov eax, dword [eax + 0x1fc8]
cmp dword [edi + 0x20], eax
je 0x487bca
mov dword [edi + 0x20], eax
call fcn.00479530
call fcn.004798c0
call fcn.0044cd10
call fcn.00491e30
call fcn.0044f3c0
mov eax, dword [0x68884c]
push 0
push 7
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x68884c]
push 0
push 0x1b
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x68884c]
push 0
push 0xae
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe4]
mov eax, dword [0x68884c]
push 0
mov ecx, dword [eax]
push ecx
mov dword [esp], 0x3f800000
push 0
push 3
push 0
push 0
push eax
call dword [ecx + 0xac]
mov eax, dword [0x68884c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x487c78
call fcn.0044f890
mov eax, dword [0x688710]
xor ecx, ecx
mov eax, dword [eax + 0x1e1c]
mov eax, dword [eax]
sub eax, 0xffffff80
cmp byte [eax], cl
cmovne ecx, eax
call fcn.004785f0
mov eax, dword [0x68884c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov eax, dword [ebp - 0x104]
test dword [eax + 8], 0x400
je 0x487d51
call fcn.0045e540
mov esi, dword [0x688710]
mov edi, 1
mov eax, dword [esi + 0x1594]
lea ecx, [esi + 0x159c]
mov dword [ebp - 0xf4], ecx
cmp eax, edi
jle 0x487cf6
mov eax, dword [ecx]
mov ebx, dword [eax + edi*4]
test dword [ebx + 4], 0x400
jne 0x487ce3
mov eax, dword [esi + 0x155c]
test eax, eax
je 0x487cd1
push 0
push ebx
call eax
add esp, 8
mov eax, dword [esi + 0x1580]
test eax, eax
je 0x487ce3
push 0
push ebx
call eax
add esp, 8
mov eax, dword [esi + 0x1594]
inc edi
mov ecx, dword [ebp - 0xf4]
cmp edi, eax
jl 0x487cb1
jmp 0x487cfc
mov dword [ebp - 0xf4], ecx
mov edi, 1
cmp eax, edi
jle 0x487d51
nop word [eax + eax]
mov eax, dword [ecx]
mov ebx, dword [eax + edi*4]
test dword [ebx + 4], 0x400
jne 0x487d42
mov eax, dword [esi + 0x1560]
test eax, eax
je 0x487d30
push 0
push ebx
call eax
add esp, 8
mov eax, dword [esi + 0x1584]
test eax, eax
je 0x487d42
push 0
push ebx
call eax
add esp, 8
mov ecx, dword [ebp - 0xf4]
inc edi
cmp edi, dword [esi + 0x1594]
jl 0x487d10
mov ecx, dword [0x68884c]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
mov ebx, dword [ebp - 0xfc]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
cmp eax, 0x88760868
jne 0x4879f0
mov eax, dword [0x68884c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x4879f0
call fcn.00478d90
mov eax, dword [0x68884c]
push 0x688850
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
call fcn.00478d20
jmp 0x4879e2
mov esi, dword [0x688710]
test esi, esi
je 0x487dc9
mov edi, dword [esi + 0xd0]
jmp 0x487dcb
xor edi, edi
call fcn.0045ea80
call fcn.00478d90
mov ecx, dword [edi]
test ecx, ecx
je 0x487de1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x688710]
mov dword [esi + 0xc8], 0
mov dword [esi + 0xd0], 0
test eax, eax
je 0x487e04
dec dword [eax + 0x370]
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call edi
mov esi, dword [0x688710]
add esp, 4
test esi, esi
je 0x487e22
mov ebx, dword [esi + 0xcc]
jmp 0x487e24
xor ebx, ebx
push 0
call dword [ebp - 0x108]
push eax
push str.ImGui_Platform
call dword [sym.imp.USER32.dll_UnregisterClassA]
call fcn.0045ea80
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x487e4b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x688710]
mov dword [esi + 0xc4], 0
mov dword [esi + 0xcc], 0
test eax, eax
je 0x487e6e
dec dword [eax + 0x370]
push ebx
call edi
mov esi, dword [0x688710]
add esp, 4
mov ecx, esi
call fcn.0044e190
cmp dword [0x688710], esi
jne 0x487e93
mov dword [0x688710], 0
test esi, esi
je 0x487eb3
mov ecx, esi
call fcn.00467e20
mov eax, dword [0x688710]
test eax, eax
je 0x487ead
dec dword [eax + 0x370]
push esi
call edi
add esp, 4
mov ecx, dword [0x68884c]
test ecx, ecx
je 0x487ecd
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x68884c], 0
mov ecx, dword [0x688848]
test ecx, ecx
je 0x487ee7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x688848], 0
push dword [ebp - 0x10c]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp - 0xdc]
push dword [ebp - 0xc8]
call dword [sym.imp.USER32.dll_UnregisterClassA]
xor eax, eax
jmp 0x487f5a
mov ecx, dword [0x688848]
mov edx, dword [0x68884c]
test edx, edx
je 0x487f2f
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x688848]
mov dword [0x68884c], 0
test ecx, ecx
je 0x487f43
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x688848], 0
push dword [ebp - 0xdc]
push dword [ebp - 0xc8]
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005f582b
mov esp, ebp
pop ebp
ret