Function at 0x406310
Capabilities:
Check os version
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41e686
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
mov eax, dword [0x428230]
push ebx
push ebp
push esi
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x198]
push edi
xor ebx, ebx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [0x4201f0]
mov ebp, dword [sym.imp.CommonSrv.dll_struct_ResourcePack____cdecl_GetConfPack_void_]
mov dword [esp + 0x194], ebx
call fcn.00403f70
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
push str.IDS_PRODUCTNAME
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 0x3c
mov dword [esp + 0x50], 0x440
mov dword [esp + 0x58], str.open
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x198], 1
call ebp
mov ecx, eax
call fcn.00417dc0
push eax
lea ecx, [esp + 0x3c]
call dword [0x4201f0]
mov ecx, eax
mov byte [esp + 0x194], 2
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_1]
push eax
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x34]
mov byte [esp + 0x194], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov edx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
push 4
push eax
push str..exe
lea ecx, [esp + 0x90]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
jne 0x406431
push str..exe
lea ecx, [esp + 0x88]
call dword [0x42036c]
lea ecx, [esp + 0xa0]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0xbc]
mov byte [esp + 0x194], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0xd8]
mov byte [esp + 0x194], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0xf4]
mov byte [esp + 0x194], 8
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [esp + 0x110], bl
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x198], 9
call fcn.004173f0
add esp, 4
mov eax, dword [eax]
cmp eax, ebx
mov byte [esp + 0x194], 0xa
je 0x4064b4
mov dl, byte [eax]
xor ecx, ecx
cmp dl, bl
setne cl
cmp cl, bl
jne 0x4064cb
cmp dword [esp + 0xb4], ebx
je 0x406514
lea ecx, [esp + 0xa0]
call fcn.00407e70
jmp 0x406514
mov dword [esp + 0x30], eax
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0xdc]
push ecx
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
call fcn.00405420
mov byte [esp + 0x110], al
lea ecx, [esp + 0x14]
mov byte [esp + 0x194], 9
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
sub esp, 0x1c
lea edx, [esp + 0xa0]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0xbc]
call fcn.00404a80
mov eax, dword [esp + 0xb8]
mov edi, 0x10
cmp eax, edi
jb 0x406566
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x58], eax
jmp 0x406571
lea ecx, [esp + 0xa4]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x114]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x130]
mov byte [esp + 0x194], 0xb
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x14c]
mov byte [esp + 0x194], 0xc
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x168]
mov byte [esp + 0x194], 0xd
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [esp + 0x184], bl
lea esi, [esp + 0x114]
mov byte [esp + 0x194], 0xe
call fcn.00406270
cmp dword [eax + 0x18], edi
jb 0x4065e2
mov eax, dword [eax + 4]
jmp 0x4065e5
add eax, 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
push eax
push ecx
push edx
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x48]
mov esi, 1
push str.Livesticker_command_line_:_exe_:__s___args_:__s___work._dir._:__s.
mov edi, str..WinMain.cpp
push eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x78], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], 0x7b
call fcn.00416b40
add esp, 0x14
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40680c
mov edx, dword [esp + 0x80]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x406887
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4068af
mov edx, dword [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4068df
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push str.The_application_exit_with_the_following_code_:__d
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x95
call fcn.00416b40
mov eax, dword [esp + 0x38]
mov edx, eax
and edx, 0x80000000
add esp, 0xc
cmp edx, 0x80000000
jne 0x40673c
mov eax, dword [esp + 0x24]
mov ecx, eax
inc eax
cmp ecx, 3
mov dword [esp + 0x24], eax
jl 0x40674b
lea ecx, [esp + 0x114]
mov byte [esp + 0x194], 9
call fcn.00401af0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x194], 4
call fcn.00401af0
lea ecx, [esp + 0x84]
mov byte [esp + 0x194], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov al, 1
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x188]
call fcn.0041d44e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
cmp eax, 0xa
jne 0x4066cf
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Empty]
lea ecx, [esp + 0x168]
mov byte [esp + 0x194], 0x15
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14c]
mov byte [esp + 0x194], 0x14
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x130]
mov byte [esp + 0x194], 0x13
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x114]
mov byte [esp + 0x194], 9
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xf4]
mov byte [esp + 0x194], 0x18
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xd8]
mov byte [esp + 0x194], 0x17
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xbc]
mov byte [esp + 0x194], 0x16
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xa0]
mov byte [esp + 0x194], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x84]
mov byte [esp + 0x194], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x406364
push str.IDS_PRODUCTNAME
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x198], 0xf
call fcn.00402ae0
add esp, 4
mov esi, eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x198], 0x10
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x7f
call ebp
mov ecx, eax
call fcn.00417dc0
mov ecx, dword [eax]
mov edx, dword [esi]
push ecx
push edx
lea eax, [esp + 0x20]
push str.LAUNCHER_:_Toolbar_launch_failed._CurrentDirectory_s__IDS_PRODUCTNAME_s_n
push eax
call fcn.00416b40
add esp, 0x10
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x24]
jmp 0x40691e
lea ecx, [esp + 0x18]
push str.LAUNCHER_:_The_toolbar_has_closed_unexpectedly__n
push ecx
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0x85
call fcn.00416b40
add esp, 8
jmp 0x406924
lea edx, [esp + 0x14]
push edx
call fcn.00401c60
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x8b
mov eax, dword [eax]
push eax
mov byte [esp + 0x19c], 0x11
push str.LAUNCHER_:_GetExitCodeProcess_failed._Reason_:__s_n
jmp 0x40690d
lea edx, [esp + 0x14]
push edx
call fcn.00401c60
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x91
mov eax, dword [eax]
push eax
mov byte [esp + 0x19c], 0x12
push str.LAUNCHER_:_CloseHandle_failed._Reason_:__s_n
lea ecx, [esp + 0x24]
push ecx
call fcn.00416b40
add esp, 0x10
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x114]
mov byte [esp + 0x194], 9
call fcn.00401af0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x194], 4
call fcn.00401af0
lea ecx, [esp + 0x84]
mov byte [esp + 0x194], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor al, al
jmp 0x406717