Function at 0x413fe0
Capabilities:
Extract resource via kernel32 functions
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5e8
mov eax, dword [0x5a83f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401f90
push 0x59cfb0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00406700
add esp, 8
movzx edx, al
test edx, edx
je 0x414020
mov byte [0x5aac7c], 1
jmp 0x414027
mov byte [0x5aac7c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.00406240
add esp, 8
push eax
mov ecx, 0x5aad24
call fcn.00403d60
lea ecx, [ebp - 0x4c]
call fcn.00401c90
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x5c4], eax
cmp dword [ebp - 0x5c4], 0
jge 0x41407c
mov dword [ebp - 0x5c8], 0
lea ecx, [ebp - 0x1c]
call fcn.00401f40
mov eax, dword [ebp - 0x5c8]
jmp 0x414336
mov ecx, dword [ebp + 8]
push ecx
call fcn.00479b30
add esp, 4
push 0x59cfb4
push 0x65
call fcn.00472cd0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x5b0], eax
cmp dword [ebp - 0x5b0], 0
jne 0x4140c7
mov dword [ebp - 0x5cc], 0
lea ecx, [ebp - 0x1c]
call fcn.00401f40
mov eax, dword [ebp - 0x5cc]
jmp 0x414336
mov dword [ebp - 0x5b4], 0
mov edx, dword [ebp - 0x5b0]
push edx
call fcn.00472cd0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x5c0], eax
cmp dword [ebp - 0x5c0], 0
jne 0x41411d
mov eax, dword [ebp - 0x5b0]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0x5d0], 0
lea ecx, [ebp - 0x1c]
call fcn.00401f40
mov eax, dword [ebp - 0x5d0]
jmp 0x414336
mov ecx, dword [ebp - 0x5b0]
push ecx
call fcn.00472cd0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x5b4], eax
cmp dword [ebp - 0x5b4], 0
jne 0x41415c
mov dword [ebp - 0x5d4], 0
lea ecx, [ebp - 0x1c]
call fcn.00401f40
mov eax, dword [ebp - 0x5d4]
jmp 0x414336
mov edx, dword [ebp - 0x5b4]
push edx
call fcn.0046ee78
add esp, 4
mov dword [ebp - 0x5d8], eax
mov eax, dword [ebp - 0x5d8]
mov dword [ebp - 0x5bc], eax
cmp dword [ebp - 0x5bc], 0
je 0x4141aa
mov ecx, dword [ebp - 0x5b4]
push ecx
mov edx, dword [ebp - 0x5c0]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov eax, dword [ebp - 0x5bc]
push eax
call fcn.004effe0
add esp, 0xc
mov ecx, dword [ebp - 0x5b0]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0
mov edx, dword [ebp - 0x5b4]
push edx
mov eax, dword [ebp - 0x5bc]
push eax
call fcn.0047a050
add esp, 0xc
push str.Global_ONCE_RUN_ChatAI_Chrome_setup_
lea ecx, [ebp - 0x34]
call fcn.00401f90
push 0x59cfec
lea ecx, [ebp - 0x34]
call fcn.00401f20
push str.install_
lea ecx, [ebp - 0x34]
call fcn.00401f20
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x5e8]
call fcn.00403490
lea ecx, [ebp - 0x5e8]
call fcn.00403510
test eax, eax
je 0x4142a8
push 0x59d004
push str.CMainWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x5b8], eax
cmp dword [ebp - 0x5b8], 0
je 0x4142a8
push 9
mov edx, dword [ebp - 0x5b8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x5b8]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
mov ecx, dword [ebp - 0x5b8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0x5dc], 0
lea ecx, [ebp - 0x5e8]
call fcn.004034e0
lea ecx, [ebp - 0x34]
call fcn.00401f40
lea ecx, [ebp - 0x1c]
call fcn.00401f40
mov eax, dword [ebp - 0x5dc]
jmp 0x414336
call fcn.00401600
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x5ac]
call fcn.00414420
push 0
push 0
push 0
push 0
push 0
push 0
push 0x16000000
push 0x59d02c
push 0
lea ecx, [ebp - 0x5ac]
call fcn.0047b5b0
lea ecx, [ebp - 0x5ac]
call fcn.0047b390
lea ecx, [ebp - 0x5ac]
call fcn.0047ba40
call fcn.00401630
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 0x5e0], 0
lea ecx, [ebp - 0x5ac]
call fcn.00414500
lea ecx, [ebp - 0x5e8]
call fcn.004034e0
lea ecx, [ebp - 0x34]
call fcn.00401f40
lea ecx, [ebp - 0x1c]
call fcn.00401f40
mov eax, dword [ebp - 0x5e0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ec22
mov esp, ebp
pop ebp
ret 0x10