Function at 0x401970
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430740
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x439008]
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 [0x439400], 0x30
mov dword [0x439404], 0x40
mov dword [0x439408], 0x401000
mov dword [0x43940c], 0
mov dword [0x439410], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov dword [0x439414], eax
push 0x439400
movups xmmword [0x439418], xmm0
mov dword [0x439428], 0x431324
mov dword [0x43942c], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x439414]
push 0
push 0
push 0x12c
push 0x1f4
push 0x64
push 0x64
push 0x80000000
push str.Chat_Menu
push str.Chat_Menu_Class
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0xa
push eax
mov dword [0x4393bc], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4393bc]
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 [0x4393b8], ecx
test ecx, ecx
je 0x401af4
push 0x4393fc
push 0x4393c4
push 0x40
push dword [0x4393bc]
xorps xmm0, xmm0
mov dword [0x4393d8], 0
push 1
movlpd qword [0x4393c4], xmm0
movlpd qword [0x4393d0], xmm0
mov dword [0x4393e0], 0
movlpd qword [0x4393f0], xmm0
mov dword [0x4393e4], 1
mov dword [0x4393dc], 1
mov dword [0x4393cc], 0
mov dword [0x4393e8], 1
mov dword [0x4393ec], 0x50
mov dword [0x4393f8], 1
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x40]
call fcn.00401280
cmp byte [0x439028], 0
je 0x401d96
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call fcn.00401670
mov dword [ebp - 4], 1
mov edx, 0x439028
mov eax, dword [0x439440]
mov ecx, str.Suck_My_Balls_TrashCan
push 0x126
or dword [eax + 0x491c], 3
mov dword [eax + 0x492c], 0
mov dword [eax + 0x4930], 0
mov dword [eax + 0x4934], 0
mov dword [eax + 0x4938], 0
mov dword [eax + 0x4920], 1
mov dword [eax + 0x493c], 0x43fa0000
mov dword [eax + 0x4940], 0x43960000
mov dword [eax + 0x4924], 1
call fcn.0040d1b0
lea edx, [ebp - 0x40]
call fcn.0042e100
add esp, 4
call fcn.0040fb80
mov dword [ebp - 4], 2
call fcn.00409d80
mov ecx, dword [0x4393fc]
push 0
push 7
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x4393fc]
push 0
push 0x1b
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x4393fc]
push 0
push 0xae
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe4]
mov ecx, dword [0x4393fc]
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 [0x4393fc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
test eax, eax
js 0x401c4d
call fcn.0040a160
mov eax, dword [0x439440]
xor ecx, ecx
mov eax, dword [eax + 0x49fc]
mov eax, dword [eax]
add eax, 0x38
cmp byte [eax], cl
cmovne ecx, eax
call fcn.00429f30
mov eax, dword [0x4393fc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov ecx, dword [0x4393fc]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x44]
cmp eax, 0x88760868
jne 0x401c7f
mov eax, dword [0x4393fc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, 0x88760869
jne 0x401c7f
call fcn.004011b0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.004018c0
mov esi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x44]
cmp esi, 0xff67697f
jne 0x401ca4
cmp ebx, 0x7fffffff
je 0x401ccb
cmp ebx, 0x7fffffff
jg 0x401cba
jl 0x401cb6
cmp esi, 0xff67697f
jae 0x401cba
or al, 0xff
jmp 0x401cbc
mov al, 1
test al, al
jns 0x401ccb
add esi, 0x989680
adc ebx, 0
jmp 0x401cd3
or esi, 0xffffffff
mov ebx, 0x7fffffff
mov dword [ebp - 0x24], esi
lea ecx, [ebp - 0x30]
call fcn.004018c0
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
cmp esi, ecx
jne 0x401cf0
cmp ebx, eax
je 0x401d89
cmp ebx, eax
jg 0x401cfe
jl 0x401cfa
cmp esi, ecx
jae 0x401cfe
or al, 0xff
jmp 0x401d00
mov al, 1
test al, al
jle 0x401d89
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
push 0
push 0x64
push edx
push eax
call fcn.00430580
mov esi, eax
mov ecx, ebx
mov eax, dword [ebp - 0x24]
mov edi, edx
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
sbb ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], ecx
mov edx, ecx
mov ecx, eax
call fcn.00430630
comisd xmm0, xmmword [0x436b80]
jbe 0x401d4f
add esi, 0xad160000
adc edi, 0x311cd
jmp 0x401d55
add esi, dword [ebp - 0x34]
adc edi, dword [ebp - 0x38]
push 0
push 0x3b9aca00
push edi
push esi
call fcn.004303f0
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 - 0x24]
add esp, 4
jmp 0x401cd6
cmp byte [0x439028], 0
jne 0x401b14
call fcn.00401430
mov dword [ebp - 4], 3
mov ecx, dword [0x4393fc]
test ecx, ecx
je 0x401dbc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x4393fc], 0
mov ecx, dword [0x4393b8]
test ecx, ecx
je 0x401dd6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x4393b8], 0
push dword [0x4393bc]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x439414]
push dword [0x439428]
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.0042f68b
mov esp, ebp
pop ebp
ret 0x10