Function at 0x4026a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e880
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x446040]
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
push 0
mov dword [0x446610], 0x30
mov dword [0x446614], 0x40
mov dword [0x446618], 0x401000
mov dword [0x44661c], 0
mov dword [0x446620], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov dword [0x446624], eax
push 0x446610
movups xmmword [0x446628], xmm0
mov dword [0x446638], 0x43f258
mov dword [0x44663c], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x446624]
push 0
push 0
push 0x12c
push 0x1f4
push 0x64
push 0x64
push 0x80000000
push str.Vital_External
push str.class001
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0xa
push eax
mov dword [0x446608], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x446608]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x20
mov dword [ebp - 4], 0
call dword [sym.imp.d3d9.dll_Direct3DCreate9]
mov ecx, eax
mov dword [0x446604], ecx
test ecx, ecx
je 0x402824
push 0x44660c
push 0x446640
push 0x40
push dword [0x446608]
xorps xmm0, xmm0
mov dword [0x446654], 0
push 1
movlpd qword [0x446640], xmm0
movlpd qword [0x44664c], xmm0
mov dword [0x44665c], 0
movlpd qword [0x44666c], xmm0
mov dword [0x446660], 1
mov dword [0x446658], 1
mov dword [0x446648], 0
mov dword [0x446664], 1
mov dword [0x446668], 0x50
mov dword [0x446674], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
call fcn.004012b0
cmp byte [0x44609c], 0
je 0x402ae2
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
call ebx
test eax, eax
je 0x402885
lea eax, [ebp - 0x3c]
push eax
call esi
lea eax, [ebp - 0x3c]
push eax
call edi
cmp dword [ebp - 0x38], 0x12
je 0x402896
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call ebx
test eax, eax
jne 0x402861
mov eax, dword [0x446684]
test eax, eax
je 0x4028a6
mov ecx, dword [eax + 0xc8]
jmp 0x4028a8
cmp byte [0x44609c], 0
sete byte [0x44609c]
jmp 0x4028d0
xor ecx, ecx
cmp dword [ecx + 0xc], 0
jne 0x4028c6
test eax, eax
je 0x4028c6
mov eax, dword [eax + 0xc8]
test eax, eax
je 0x4028c6
cmp dword [eax], 0
je 0x4028c6
call fcn.00429640
call fcn.00429bc0
call fcn.00408b50
call fcn.00401f30
mov dword [ebp - 4], 2
call fcn.0040ada0
mov ecx, dword [0x44660c]
push 0
push 7
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x44660c]
push 0
push 0x1b
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x44660c]
push 0
push 0xae
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x44660c]
push 0
push ecx
mov dword [esp], 0x3f800000
mov eax, dword [ecx]
push 0xff000000
push 3
push 0
push 0
push ecx
call dword [eax + 0xac]
mov eax, dword [0x44660c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x402982
call fcn.0040b130
mov eax, dword [0x446684]
xor ecx, ecx
mov eax, dword [eax + 0x1d4c]
mov eax, dword [eax]
add eax, 0x34
cmp byte [eax], cl
cmovne ecx, eax
call fcn.00429140
mov eax, dword [0x44660c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov ecx, dword [0x44660c]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
cmp eax, 0x88760868
jne 0x4029b4
mov eax, dword [0x44660c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x4029b4
call fcn.004011e0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.00402580
mov esi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x54]
cmp esi, 0xffb3b4bf
jne 0x4029d9
cmp ebx, 0x7fffffff
je 0x402a00
cmp ebx, 0x7fffffff
jg 0x4029ef
jl 0x4029eb
cmp esi, 0xffb3b4bf
jae 0x4029ef
or al, 0xff
jmp 0x4029f1
mov al, 1
test al, al
jns 0x402a00
add esi, 0x4c4b40
adc ebx, 0
jmp 0x402a08
or esi, 0xffffffff
mov ebx, 0x7fffffff
mov dword [ebp - 0x40], esi
nop dword [eax + eax]
lea ecx, [ebp - 0x48]
call fcn.00402580
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
cmp esi, ecx
jne 0x402a2a
cmp ebx, eax
je 0x402ac3
cmp ebx, eax
jg 0x402a38
jl 0x402a34
cmp esi, ecx
jae 0x402a38
or al, 0xff
jmp 0x402a3a
mov al, 1
test al, al
jle 0x402ac3
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
push 0
push 0x64
push edx
push eax
call fcn.0043e4b0
mov esi, eax
mov ecx, ebx
mov eax, dword [ebp - 0x40]
mov edi, edx
sub eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
sbb ecx, dword [ebp - 0x44]
mov dword [ebp - 0x50], ecx
mov edx, ecx
mov ecx, eax
call fcn.0043e690
comisd xmm0, xmmword [0x443ef0]
jbe 0x402a89
add esi, 0xad160000
adc edi, 0x311cd
jmp 0x402a8f
add esi, dword [ebp - 0x4c]
adc edi, dword [ebp - 0x50]
push 0
push 0x3b9aca00
push edi
push esi
call fcn.0043e320
mov dword [ebp - 0x20], eax
imul eax, eax, 0x3b9aca00
mov dword [ebp - 0x1c], edx
sub esi, eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.MSVCP140.dll__Thrd_sleep]
mov esi, dword [ebp - 0x40]
add esp, 4
jmp 0x402a10
cmp byte [0x44609c], 0
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
jne 0x402848
mov dword [ebp - 4], 3
mov ecx, dword [0x446684]
test ecx, ecx
je 0x402afb
mov edi, dword [ecx + 0xc8]
jmp 0x402afd
xor edi, edi
lea ebx, [ecx + 8]
test ecx, ecx
je 0x402b6e
mov esi, dword [ecx + 0xc8]
test esi, esi
je 0x402b6e
cmp dword [esi], 0
je 0x402b6e
mov edx, dword [esi + 4]
test edx, edx
je 0x402b2d
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x446684]
mov dword [esi + 4], 0
mov edx, dword [esi + 8]
test edx, edx
je 0x402b47
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x446684]
mov dword [esi + 8], 0
mov edx, dword [esi + 0xc]
test edx, edx
je 0x402b6e
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x446684]
mov dword [esi + 0xc], 0
mov eax, dword [ecx + 0x98]
mov dword [eax + 4], 0
mov edx, dword [edi]
test edx, edx
je 0x402b80
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov ecx, dword [0x446684]
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xc0], 0
test ecx, ecx
je 0x402b9e
dec dword [ecx + 0x36c]
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call edi
mov eax, dword [0x446684]
add esp, 4
test eax, eax
je 0x402bbb
mov esi, dword [eax + 0xc4]
jmp 0x402bbd
xor esi, esi
mov ecx, dword [esi + 0x28]
lea ebx, [eax + 8]
test ecx, ecx
je 0x402bd3
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x446684]
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xbc], 0
test eax, eax
je 0x402bf1
dec dword [eax + 0x36c]
push esi
call edi
mov esi, dword [0x446684]
add esp, 4
mov ecx, esi
call fcn.0040a1d0
cmp dword [0x446684], esi
jne 0x402c16
mov dword [0x446684], 0
test esi, esi
je 0x402c36
mov ecx, esi
call fcn.00418e10
mov eax, dword [0x446684]
test eax, eax
je 0x402c30
dec dword [eax + 0x36c]
push esi
call edi
add esp, 4
mov dword [ebp - 4], 4
mov ecx, dword [0x44660c]
test ecx, ecx
je 0x402c57
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x44660c], 0
mov ecx, dword [0x446604]
test ecx, ecx
je 0x402c71
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x446604], 0
push dword [0x446608]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x446624]
push dword [0x446638]
call dword [sym.imp.USER32.dll_UnregisterClassA]
xor eax, eax
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.0043d4f4
mov esp, ebp
pop ebp
ret 0x10