Function at 0x40f310
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x45701c]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
lea eax, [esp + 0x78]
mov dword [esp + 0x78], 8
push eax
mov dword [esp + 0x80], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
lea eax, [esp + 0x40]
mov dword [esp + 0x40], vtable.std::_Func_impl_no_alloc_class__lambda_89bd8753b79c0ddeb2cd17805264ab9c___void___.0
xor ecx, ecx
mov dword [esp + 0x64], eax
call fcn.004012e0
mov esi, eax
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
je 0x40f38a
mov dword [edi + 0x24], 0
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x40f384
mov eax, dword [ecx]
push edi
mov eax, dword [eax]
call eax
mov dword [edi + 0x24], eax
add dword [esi + 4], 0x28
jmp 0x40f397
lea eax, [esp + 0x40]
mov ecx, esi
push eax
push edi
call fcn.0040fba0
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x40f3b1
mov edx, dword [ecx]
lea eax, [esp + 0x40]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
mov edi, eax
push 0x6b
push edi
mov dword [esp + 0x48], 0x30
mov dword [esp + 0x4c], 3
mov dword [esp + 0x50], 0x401c20
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], edi
call esi
push 0x7f00
push 0
mov dword [esp + 0x60], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6b
push edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 6
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], str.LicenseWindow
call esi
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0x1d6
push 0x276
push 0x80000000
push 0x80000000
push 0xce0000
push str.Setup___Ninja_Browser
push str.LicenseWindow
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 5
push eax
mov dword [0x459790], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x459790]
push eax
mov dword [0x459794], eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
xorps xmm0, xmm0
mov dword [esp + 0x60], 0
push 0
lea eax, [esp + 0x4c]
movaps xmmword [esp + 0x4c], xmm0
push eax
movq qword [esp + 0x60], xmm0
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40f4e3
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [eax + eax]
lea eax, [esp + 0x40]
push eax
call esi
lea eax, [esp + 0x40]
push eax
call edi
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x40f4c0
cmp byte [0x4597a4], 0
mov byte [0x4597a5], 1
je 0x40f50d
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push 0x64
call esi
cmp byte [0x4597a4], 0
jne 0x40f500
xor dl, dl
lea ecx, [esp + 0x40]
call fcn.00408a90
cmp dword [esp + 0x50], 0
je 0x40f5d8
mov byte [esp + 0x78], 0
lea edx, [esp + 0x40]
push dword [esp + 0x78]
lea ecx, [esp + 0x14]
call fcn.0040d3f0
add esp, 4
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x10]
push eax
call fcn.004118fe
mov ecx, edx
movzx eax, al
cdq
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], 0x457908
cmp ecx, 0x91
jne 0x40f594
lea eax, [esp + 0x80]
push eax
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x14]
call fcn.004079e0
mov ecx, dword [esp + 0x7c]
add esp, 4
test ecx, ecx
jne 0x40f774
mov edx, dword [esp + 0x24]
cmp edx, 8
jb 0x40f5d8
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f5ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f787
push edx
push ecx
call fcn.0041391e
add esp, 8
mov edx, dword [esp + 0x54]
cmp edx, 8
jb 0x40f614
mov ecx, dword [esp + 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f60a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f78c
push edx
push ecx
call fcn.0041391e
add esp, 8
cmp byte [0x4597a2], 0
je 0x40f75c
push 0x2a
push str.OWWzEHqgYHS_YcrhFPaNvorquZGQ_hUnrnS._av
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 7
call fcn.0040b200
lea edx, [esp + 0x10]
lea ecx, [esp + 0x40]
call fcn.00404390
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00408d60
sub esp, 0x18
mov ecx, esp
push esi
push eax
push dword [esp + 0x98]
call fcn.0040ffe0
xor cl, cl
call fcn.00409770
mov edx, dword [esp + 0x54]
add esp, 0x18
cmp edx, 8
jb 0x40f6ba
mov ecx, dword [esp + 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f6b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f791
push edx
push ecx
call fcn.0041391e
add esp, 8
mov edx, dword [esp + 0x54]
xor eax, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 7
mov word [esp + 0x28], ax
cmp edx, 8
jb 0x40f70d
mov ecx, dword [esp + 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f703
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f791
push edx
push ecx
call fcn.0041391e
add esp, 8
mov edx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 7
mov word [esp + 0x40], ax
cmp edx, 8
jb 0x40f75c
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f752
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f791
push edx
push ecx
call fcn.0041391e
add esp, 8
mov ecx, dword [esp + 0x8c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00413335
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x10]
mov ecx, str.remove_all
push eax
lea edx, [esp + 0x7c]
call fcn.00406830
call fcn.0041e009
call fcn.0041e009
call fcn.0041e009
int3