Function at 0x413870
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4592d0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x46600c]
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 [0x466b94], 0x30
mov dword [0x466b98], 0x40
mov dword [0x466b9c], 0x409480
mov dword [0x466ba0], 0
mov dword [0x466ba4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov dword [0x466ba8], eax
push 0x466b94
movups xmmword [0x466bac], xmm0
mov dword [0x466bbc], 0x45b0ec
mov dword [0x466bc0], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x466ba8]
push 0
push 0
push 0x285
push 0x258
push 0x64
push 0x64
push 0x80000000
push str.Lightning_Macros
push str.class001
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0xa
push eax
mov dword [0x466b8c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x466b8c]
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 [0x466b88], ecx
test ecx, ecx
je 0x4139f4
push 0x466b90
push 0x466bc4
push 0x40
push dword [0x466b8c]
xorps xmm0, xmm0
mov dword [0x466bd8], 0
push 1
movlpd qword [0x466bc4], xmm0
movlpd qword [0x466bd0], xmm0
mov dword [0x466be0], 0
movlpd qword [0x466bf0], xmm0
mov dword [0x466be4], 1
mov dword [0x466bdc], 1
mov dword [0x466bcc], 0
mov dword [0x466be8], 1
mov dword [0x466bec], 0x50
mov dword [0x466bf8], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
call fcn.00409730
cmp byte [0x4660b8], 0
je 0x413cb2
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 0x413a55
lea eax, [ebp - 0x3c]
push eax
call esi
lea eax, [ebp - 0x3c]
push eax
call edi
cmp dword [ebp - 0x38], 0x12
je 0x413a66
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call ebx
test eax, eax
jne 0x413a31
mov eax, dword [0x466c90]
test eax, eax
je 0x413a76
mov ecx, dword [eax + 0xc8]
jmp 0x413a78
cmp byte [0x4660b8], 0
sete byte [0x4660b8]
jmp 0x413aa0
xor ecx, ecx
cmp dword [ecx + 0xc], 0
jne 0x413a96
test eax, eax
je 0x413a96
mov eax, dword [eax + 0xc8]
test eax, eax
je 0x413a96
cmp dword [eax], 0
je 0x413a96
call fcn.00439b30
call fcn.0043a0b0
call fcn.004195f0
call fcn.00409bf0
mov dword [ebp - 4], 2
call fcn.0041b810
mov ecx, dword [0x466b90]
push 0
push 7
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x466b90]
push 0
push 0x1b
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x466b90]
push 0
push 0xae
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x466b90]
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 [0x466b90]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x413b52
call fcn.0041bb70
mov eax, dword [0x466c90]
xor ecx, ecx
mov eax, dword [eax + 0x1d4c]
mov eax, dword [eax]
add eax, 0x34
cmp byte [eax], cl
cmovne ecx, eax
call fcn.00439600
mov eax, dword [0x466b90]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov ecx, dword [0x466b90]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
cmp eax, 0x88760868
jne 0x413b84
mov eax, dword [0x466b90]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x413b84
call fcn.00409660
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.00401330
mov esi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x54]
cmp esi, 0xffb3b4bf
jne 0x413ba9
cmp ebx, 0x7fffffff
je 0x413bd0
cmp ebx, 0x7fffffff
jg 0x413bbf
jl 0x413bbb
cmp esi, 0xffb3b4bf
jae 0x413bbf
or al, 0xff
jmp 0x413bc1
mov al, 1
test al, al
jns 0x413bd0
add esi, 0x4c4b40
adc ebx, 0
jmp 0x413bd8
or esi, 0xffffffff
mov ebx, 0x7fffffff
mov dword [ebp - 0x40], esi
nop dword [eax + eax]
lea ecx, [ebp - 0x48]
call fcn.00401330
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
cmp esi, ecx
jne 0x413bfa
cmp ebx, eax
je 0x413c93
cmp ebx, eax
jg 0x413c08
jl 0x413c04
cmp esi, ecx
jae 0x413c08
or al, 0xff
jmp 0x413c0a
mov al, 1
test al, al
jle 0x413c93
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
push 0
push 0x64
push edx
push eax
call fcn.00458430
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.00458610
comisd xmm0, xmmword [0x460d98]
jbe 0x413c59
add esi, 0xad160000
adc edi, 0x311cd
jmp 0x413c5f
add esi, dword [ebp - 0x4c]
adc edi, dword [ebp - 0x50]
push 0
push 0x3b9aca00
push edi
push esi
call fcn.004582a0
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 0x413be0
cmp byte [0x4660b8], 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 0x413a18
call fcn.004099f0
mov dword [ebp - 4], 3
mov ecx, dword [0x466b90]
test ecx, ecx
je 0x413cd8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x466b90], 0
mov ecx, dword [0x466b88]
test ecx, ecx
je 0x413cf2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x466b88], 0
push dword [0x466b8c]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x466ba8]
push dword [0x466bbc]
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.004571c9
mov esp, ebp
pop ebp
ret 0x10