Function at 0x412b90
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
mov eax, dword [0x43f040]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x80]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x6c]
call fcn.00405cb0
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
lea edx, [esp + 0x68]
lea ecx, [esp + 0x38]
mov esi, eax
push 0x43b894
call fcn.004177c0
add esp, 4
cmp dword [eax + 0x14], 7
jbe 0x412bff
mov eax, dword [eax]
push esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfreopen_s]
push 0x43b890
push eax
lea eax, [esp + 0x20]
push eax
call esi
mov ecx, dword [esp + 0x5c]
add esp, 0x10
cmp ecx, 7
jbe 0x412c54
mov edx, dword [esp + 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412c4a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412c4a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00418a9c
add esp, 8
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [esp + 0xc], eax
lea edx, [esp + 0x68]
lea ecx, [esp + 0x38]
push str..err.log
call fcn.004177c0
add esp, 4
cmp dword [eax + 0x14], 7
jbe 0x412c80
mov eax, dword [eax]
push dword [esp + 0xc]
push 0x43b890
push eax
lea eax, [esp + 0x24]
push eax
call esi
mov ecx, dword [esp + 0x5c]
add esp, 0x10
cmp ecx, 7
jbe 0x412cd2
mov edx, dword [esp + 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412cc8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412cc8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00418a9c
add esp, 8
sub esp, 0x10
mov dword [esp + 0x48], 0x5a
mov eax, esp
mov dword [esp + 0x4c], 5
mov dword [esp + 0x50], str.C:Users_nicok_source_reposVardianVardian.cpp
lea edx, [esp + 0x1c]
mov dword [esp + 0x54], str.int___stdcall_wWinMain_struct_HINSTANCE____struct_HINSTANCE____wchar_t__int_
xor ecx, ecx
movups xmm0, xmmword [esp + 0x48]
mov dword [esp + 0x1c], str.Start_Vardian
mov dword [esp + 0x20], 0xd
movups xmmword [eax], xmm0
call fcn.00406e20
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
add esp, 0x10
push 0x64
push 0x43f770
push 0x67
push edi
call esi
push 0x64
push 0x43f690
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push edi
mov dword [esp + 0x40], 0x30
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 0x413050
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], edi
call esi
push 0x7f88
push 0
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push dword [esp + 0x50]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 6
mov dword [esp + 0x64], 0x6d
mov dword [esp + 0x68], 0x43f690
call esi
mov dword [esp + 0x64], eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0x82000000
push 0x43f770
push 0x43f690
push 0x80008
mov dword [0x43f688], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x412e3c
sub esp, 0x10
mov dword [esp + 0x48], 0xc7
mov eax, esp
mov dword [esp + 0x4c], 8
mov dword [esp + 0x50], str.C:Users_nicok_source_reposVardianVardian.cpp
lea edx, [esp + 0x1c]
mov dword [esp + 0x54], str.int___cdecl_InitInstance_struct_HINSTANCE____int_struct_HWND____
lea ecx, [esi + 2]
movups xmm0, xmmword [esp + 0x48]
mov dword [esp + 0x1c], str.Could_not_create_main_window.
mov dword [esp + 0x20], 0x1d
movups xmmword [eax], xmm0
call fcn.00406e20
add esp, 0x10
jmp 0x412ff4
push 2
push 0xff
push 0
push esi
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push 2
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov ecx, esi
mov dword [esp + 0xc], eax
call fcn.004167a0
push 0x6b
push dword [0x43f688]
mov dword [0x43f838], 0x3bc
mov dword [0x43f83c], esi
mov dword [0x43f840], 0x65
mov dword [0x43f844], 7
mov dword [0x43f848], 0x464
call dword [sym.imp.USER32.dll_LoadIconW]
push str.Right_mouse_click_for_menu.
push 0x80
push 0x43f850
mov dword [0x43f84c], eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
push 0x43f838
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x1c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x412f2d
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x10]
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x412f1c
lea eax, [esp + 0x1c]
push eax
call edi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
call esi
test eax, eax
jne 0x412ef3
push 0x43f838
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push dword [0x43f758]
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov al, byte [0x43fc4d]
test al, al
jne 0x412f6d
mov al, 1
mov ecx, 0x43fc4c
xchg byte [ecx], al
cmp dword [0x43fc44], 0
je 0x412f6d
mov ecx, 0x43fc40
call fcn.00402900
push dword [0x43fc48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x10
mov dword [esp + 0x48], 0x85
mov eax, esp
mov dword [esp + 0x4c], 5
mov dword [esp + 0x50], str.C:Users_nicok_source_reposVardianVardian.cpp
lea edx, [esp + 0x1c]
mov dword [esp + 0x54], str.int___stdcall_wWinMain_struct_HINSTANCE____struct_HINSTANCE____wchar_t__int_
xor ecx, ecx
movups xmm0, xmmword [esp + 0x48]
mov dword [0x43fc48], 0xffffffff
mov dword [esp + 0x1c], str.Finish_Vardian
mov dword [esp + 0x20], 0xe
movups xmmword [eax], xmm0
call fcn.00406e20
mov eax, dword [esp + 0x24]
add esp, 0x10
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
je 0x412fe2
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x412ff0
push eax
call esi
add esp, 4
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
cmp ecx, 7
jbe 0x413032
mov edx, dword [esp + 0x68]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413028
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x413028
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00418a9c
add esp, 8
mov ecx, dword [esp + 0x28c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00418a59
mov esp, ebp
pop ebp
ret 0x10