Function at 0x40f220
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 0x40f29a
mov dword [edi + 0x24], 0
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x40f294
mov eax, dword [ecx]
push edi
mov eax, dword [eax]
call eax
mov dword [edi + 0x24], eax
add dword [esi + 4], 0x28
jmp 0x40f2a7
lea eax, [esp + 0x40]
mov ecx, esi
push eax
push edi
call fcn.0040fab0
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x40f2c1
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 0x40f3f3
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 0x40f3d0
cmp byte [0x4597a4], 0
mov byte [0x4597a5], 1
je 0x40f41d
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push 0x64
call esi
cmp byte [0x4597a4], 0
jne 0x40f410
xor dl, dl
lea ecx, [esp + 0x40]
call fcn.00408a90
cmp dword [esp + 0x50], 0
je 0x40f4e8
mov byte [esp + 0x78], 0
lea edx, [esp + 0x40]
push dword [esp + 0x78]
lea ecx, [esp + 0x14]
call fcn.0040d270
add esp, 4
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x10]
push eax
call fcn.0041180e
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 0x40f4a4
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 0x40f684
mov edx, dword [esp + 0x24]
cmp edx, 8
jb 0x40f4e8
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f4de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f697
push edx
push ecx
call fcn.0041382e
add esp, 8
mov edx, dword [esp + 0x54]
cmp edx, 8
jb 0x40f524
mov ecx, dword [esp + 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f51a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f69c
push edx
push ecx
call fcn.0041382e
add esp, 8
cmp byte [0x4597a2], 0
je 0x40f66c
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.0040b020
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.0040fef0
xor cl, cl
call fcn.004094e0
mov edx, dword [esp + 0x54]
add esp, 0x18
cmp edx, 8
jb 0x40f5ca
mov ecx, dword [esp + 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f5c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f6a1
push edx
push ecx
call fcn.0041382e
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 0x40f61d
mov ecx, dword [esp + 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f613
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f6a1
push edx
push ecx
call fcn.0041382e
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 0x40f66c
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f662
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f6a1
push edx
push ecx
call fcn.0041382e
add esp, 8
mov ecx, dword [esp + 0x8c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00413245
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.0041df19
call fcn.0041df19
call fcn.0041df19
int3