Function at 0x4021b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458c20
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x465040]
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 [0x4654bc], 0x30
mov dword [0x4654c0], 0x40
mov dword [0x4654c4], 0x4015b0
mov dword [0x4654c8], 0
mov dword [0x4654cc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov dword [0x4654d0], eax
push 0x4654bc
movups xmmword [0x4654d4], xmm0
mov dword [0x4654e4], 0x45ea7c
mov dword [0x4654e8], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x4654d0]
push 0
push 0
push 0x190
push 0x258
push 0x64
push 0x64
push 0x80000000
push str.menu
push str.menu_Class
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0xa
push eax
mov dword [0x4654b4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4654b4]
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 [0x4654b0], ecx
test ecx, ecx
je 0x402334
push 0x4654b8
push 0x4654ec
push 0x40
push dword [0x4654b4]
xorps xmm0, xmm0
mov dword [0x465500], 0
push 1
movlpd qword [0x4654ec], xmm0
movlpd qword [0x4654f8], xmm0
mov dword [0x465508], 0
movlpd qword [0x465518], xmm0
mov dword [0x46550c], 1
mov dword [0x465504], 1
mov dword [0x4654f4], 0
mov dword [0x465510], 1
mov dword [0x465514], 0x50
mov dword [0x465520], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
call fcn.00401860
cmp byte [0x4650a8], 0
je 0x402603
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 - 0x2c]
mov dword [ebp - 4], 1
push eax
call ebx
test eax, eax
je 0x40238f
lea eax, [ebp - 0x2c]
push eax
call esi
lea eax, [ebp - 0x2c]
push eax
call edi
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call ebx
test eax, eax
jne 0x402371
mov eax, dword [0x465538]
test eax, eax
je 0x40239d
mov ecx, dword [eax + 0x7c]
jmp 0x40239f
xor ecx, ecx
cmp dword [ecx + 0xc], 0
jne 0x4023ba
test eax, eax
je 0x4023ba
mov eax, dword [eax + 0x7c]
test eax, eax
je 0x4023ba
cmp dword [eax], 0
je 0x4023ba
call fcn.00435920
call fcn.00436520
call fcn.0040b5f0
call fcn.00401c60
mov dword [ebp - 4], 2
call fcn.0040d1a0
mov ecx, dword [0x4654b8]
push 0
push 7
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x4654b8]
push 0
push 0x1b
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x4654b8]
push 0
push 0xae
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x4654b8]
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 [0x4654b8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x402476
call fcn.0040d770
mov eax, dword [0x465538]
xor ecx, ecx
mov eax, dword [eax + 0x4ad4]
mov eax, dword [eax]
add eax, 0x40
cmp byte [eax], cl
cmovne ecx, eax
call fcn.004353f0
mov eax, dword [0x4654b8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov ecx, dword [0x4654b8]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
cmp eax, 0x88760868
jne 0x4024a8
mov eax, dword [0x4654b8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x4024a8
call fcn.00401790
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.004020b0
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
cmp ebx, 0xff67697f
jne 0x4024cd
cmp esi, 0x7fffffff
je 0x4024f4
cmp esi, 0x7fffffff
jg 0x4024e3
jl 0x4024df
cmp ebx, 0xff67697f
jae 0x4024e3
or al, 0xff
jmp 0x4024e5
mov al, 1
test al, al
jns 0x4024f4
add ebx, 0x989680
adc esi, 0
jmp 0x4024fc
or ebx, 0xffffffff
mov esi, 0x7fffffff
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], ebx
lea ecx, [ebp - 0x48]
call fcn.004020b0
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
cmp ebx, edx
jne 0x40251c
cmp esi, ecx
je 0x4025e4
cmp esi, ecx
jg 0x40252a
jl 0x402526
cmp ebx, edx
jae 0x40252a
or al, 0xff
jmp 0x40252c
mov al, 1
test al, al
jle 0x4025e4
sub ebx, edx
sbb esi, ecx
cmp ebx, 0x914f0000
jne 0x402566
cmp esi, 0x4e94
jne 0x40256c
push 0
push 0xf4240
push esi
push ebx
call fcn.004584e0
mov edi, eax
push edi
call sub.KERNEL32.dll_Sleep
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
jmp 0x402502
cmp esi, 0x4e94
jg 0x40257c
jl 0x402578
cmp ebx, 0x914f0000
jae 0x40257c
or al, 0xff
jmp 0x40257e
mov al, 1
test al, al
jle 0x402598
mov edi, 0x5265c00
push edi
call sub.KERNEL32.dll_Sleep
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
jmp 0x402502
push 0
push 0xf4240
push esi
push ebx
call fcn.004584e0
push 0
push 0xf4240
mov edi, eax
push edx
push edi
call fcn.00458670
cmp eax, ebx
jne 0x4025be
cmp edx, esi
je 0x4025d3
cmp edx, esi
jg 0x4025cc
jl 0x4025c8
cmp eax, ebx
jae 0x4025cc
or al, 0xff
jmp 0x4025ce
mov al, 1
test al, al
jns 0x4025d3
inc edi
push edi
call sub.KERNEL32.dll_Sleep
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
jmp 0x402502
cmp byte [0x4650a8], 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 0x402358
call fcn.00401a20
mov dword [ebp - 4], 3
mov ecx, dword [0x4654b8]
test ecx, ecx
je 0x402629
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x4654b8], 0
mov ecx, dword [0x4654b0]
test ecx, ecx
je 0x402643
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x4654b0], 0
push dword [0x4654b4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x4654d0]
push dword [0x4654e4]
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.00457551
mov esp, ebp
pop ebp
ret 0x10