Function at 0x405460
Capabilities:
Check mutex on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bd60
mov eax, dword fs:[0]
push eax
sub esp, 0xe60
mov eax, dword [0x453144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0xc20]
push 0
push eax
call fcn.00419520
add esp, 0xc
lea eax, [ebp - 0xc20]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.uninst_mynovel.log
lea eax, [ebp - 0xc20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0xc20]
push eax
call fcn.00417a80
push 0x208
lea eax, [ebp - 0xe28]
push 0
push eax
call fcn.00419520
add esp, 0xc
lea eax, [ebp - 0xe28]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call fcn.00417780
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x4056bf
push 0x53
push str.d:jenkins.jenkinsworkspaceweiduangamewdgameboxwdgameboxuninst_srcuninst.cpp
lea ecx, [ebp - 0xe6c]
mov dword [ebp - 0xe5c], 0
mov dword [ebp - 0xe58], 0xf
mov byte [ebp - 0xe6c], 0
call fcn.00407580
push 3
push 0x44d57c
lea ecx, [ebp - 0xe54]
mov dword [ebp - 0xe44], 0
mov dword [ebp - 0xe40], 0xf
mov byte [ebp - 0xe54], 0
call fcn.00407580
call fcn.00417780
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0x35
lea eax, [ebp - 0xe6c]
push eax
lea eax, [ebp - 0xe54]
push eax
call fcn.00404d90
mov esi, eax
mov edx, str.WorkPath
mov ecx, esi
call fcn.00404c20
lea eax, [ebp - 0xe28]
push eax
push esi
call fcn.00407bf0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xac], eax
lea ecx, [ebp - 0xa4]
call fcn.00406b50
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xac], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.00411d35
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov edx, dword [ebp - 0xe40]
cmp edx, 0x10
jb 0x40566a
mov ecx, dword [ebp - 0xe54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405660
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4061d5
push edx
push ecx
call fcn.004155ab
add esp, 8
mov edx, dword [ebp - 0xe58]
mov dword [ebp - 0xe44], 0
mov dword [ebp - 0xe40], 0xf
mov byte [ebp - 0xe54], 0
cmp edx, 0x10
jb 0x4056bf
mov ecx, dword [ebp - 0xe6c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4056b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4061da
push edx
push ecx
call fcn.004155ab
add esp, 8
push 0x208
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.00419520
add esp, 0xc
lea eax, [ebp - 0xa18]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0xa18]
push eax
lea eax, [ebp - 0xe28]
push eax
call fcn.0041ea6a
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add esp, 8
test eax, eax
je 0x4058d7
lea eax, [ebp - 0xa18]
push eax
call ebx
call fcn.00417780
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x4058d7
push 0x53
push str.d:jenkins.jenkinsworkspaceweiduangamewdgameboxwdgameboxuninst_srcuninst.cpp
lea ecx, [ebp - 0xe6c]
mov dword [ebp - 0xe5c], 0
mov dword [ebp - 0xe58], 0xf
mov byte [ebp - 0xe6c], 0
call fcn.00407580
push 3
push 0x44d57c
lea ecx, [ebp - 0xe54]
mov dword [ebp - 0xe44], 0
mov dword [ebp - 0xe40], 0xf
mov byte [ebp - 0xe54], 0
call fcn.00407580
call fcn.00417780
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0x3c
lea eax, [ebp - 0xe6c]
push eax
lea eax, [ebp - 0xe54]
push eax
call fcn.00404d90
mov esi, eax
mov edx, str.set_WorkPath
mov ecx, esi
call fcn.00404c20
lea eax, [ebp - 0xa18]
push eax
push esi
call fcn.00407bf0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xac], eax
lea ecx, [ebp - 0xa4]
call fcn.00406b50
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xac], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.00411d35
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov edx, dword [ebp - 0xe40]
cmp edx, 0x10
jb 0x405882
mov ecx, dword [ebp - 0xe54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405878
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4061df
push edx
push ecx
call fcn.004155ab
add esp, 8
mov edx, dword [ebp - 0xe58]
mov dword [ebp - 0xe44], 0
mov dword [ebp - 0xe40], 0xf
mov byte [ebp - 0xe54], 0
cmp edx, 0x10
jb 0x4058d7
mov ecx, dword [ebp - 0xe6c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4058cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4061e4
push edx
push ecx
call fcn.004155ab
add esp, 8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0xe3c]
mov dword [ebp - 0xe3c], 8
push eax
mov dword [ebp - 0xe38], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x44d59c
push 0
call fcn.0041ed54
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00419520
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x810]
add esp, 0x14
push 0x400
push eax
push 0
call edi
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push str.WdGameUninstMutext
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0xe2c], esi
test esi, esi
je 0x405bb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405b74
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.WdGameUninstSetupMainWnd
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x4059af
push 0
push 0
push 0x1400
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.00417780
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x405b5b
push 0x53
push str.d:jenkins.jenkinsworkspaceweiduangamewdgameboxwdgameboxuninst_srcuninst.cpp
lea ecx, [ebp - 0xe6c]
mov dword [ebp - 0xe5c], 0
mov dword [ebp - 0xe58], 0xf
mov byte [ebp - 0xe6c], 0
call fcn.00407580
push 3
push 0x44d57c
lea ecx, [ebp - 0xe54]
mov dword [ebp - 0xe44], 0
mov dword [ebp - 0xe40], 0xf
mov byte [ebp - 0xe54], 0
call fcn.00407580
call fcn.00417780
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0x49
lea eax, [ebp - 0xe6c]
push eax
lea eax, [ebp - 0xe54]
push eax
call fcn.00404d90
mov esi, eax
mov edx, str.CheckSingleInstance_failed__exit
mov ecx, esi
call fcn.00404c20
mov edx, dword [edi]
mov ecx, edi
push esi
call dword [edx + 0x1c]
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xac], eax
lea ecx, [ebp - 0xa4]
call fcn.00406b50
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xac], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.00411d35
mov edx, dword [ebp - 0xe40]
add esp, 4
cmp edx, 0x10
jb 0x405b06
mov ecx, dword [ebp - 0xe54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405afc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4061e9
push edx
push ecx
call fcn.004155ab
add esp, 8
mov edx, dword [ebp - 0xe58]
mov dword [ebp - 0xe44], 0
mov dword [ebp - 0xe40], 0xf
mov byte [ebp - 0xe54], 0
cmp edx, 0x10
jb 0x405b5b
mov ecx, dword [ebp - 0xe6c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405b51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4061ee
push edx
push ecx
call fcn.004155ab
add esp, 8
push 0
push 0x44d5c4
push 0x44d5cc
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4061b5
push 0x453ad0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x453ac8]
cmp dword [0x453acc], eax
je 0x405b97
mov dword [eax], esi
add dword [0x453ac8], 4
jmp 0x405ba9
lea ecx, [ebp - 0xe2c]
push ecx
push eax
mov ecx, 0x453ac4
call fcn.004036f0
push 0x453ad0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0040b8f0
test eax, eax
jne 0x405dc0
call fcn.00417780
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x4061b5
push 0x53
push str.d:jenkins.jenkinsworkspaceweiduangamewdgameboxwdgameboxuninst_srcuninst.cpp
lea ecx, [ebp - 0xe6c]
mov dword [ebp - 0xe5c], 0
mov dword [ebp - 0xe58], 0xf
mov byte [ebp - 0xe6c], 0
call fcn.00407580
push 3
push 0x44d57c
lea ecx, [ebp - 0xe54]
mov dword [ebp - 0xe44], 0
mov dword [ebp - 0xe40], 0xf
mov byte [ebp - 0xe54], 0
call fcn.00407580
call fcn.00417780
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0x4f
lea eax, [ebp - 0xe6c]
push eax
lea eax, [ebp - 0xe54]
push eax
call fcn.00404d90
mov esi, eax
mov edx, str.cur_path_is_not_in_temp__path:
mov ecx, esi
call fcn.00404c20
lea eax, [ebp - 0xe2c]
push eax
call fcn.0040e490
add esp, 4
mov ecx, dword [eax]
test ecx, ecx
mov eax, str._null_
cmovne eax, ecx
push eax
push esi
call fcn.00407bf0
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xac], eax
lea ecx, [ebp - 0xa4]
call fcn.00406b50
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xac], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 3
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.00411d35
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov edx, dword [ebp - 0xe2c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405d28
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xe40]
cmp edx, 0x10
jb 0x405d62
mov ecx, dword [ebp - 0xe54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405d58
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4061f3
push edx
push ecx
call fcn.004155ab
add esp, 8
mov edx, dword [ebp - 0xe58]
mov dword [ebp - 0xe44], 0
mov dword [ebp - 0xe40], 0xf
mov byte [ebp - 0xe54], 0
cmp edx, 0x10
jb 0x4061b5
mov ecx, dword [ebp - 0xe6c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405db1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4061f8
push edx
push ecx
call fcn.004155ab
add esp, 8
jmp 0x4061b5
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00419520
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call ebx
push 1
push 0x44d5c4
push str._fTnx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
je 0x4061b5
push 0x44c208
push str.InstalledGameIds
push str.SOFTWAREWdGame
lea eax, [ebp - 0xe30]
mov dword [ebp - 0xe30], 0
push SysReAllocString
push eax
call fcn.0040eae0
mov eax, dword [ebp - 0xe30]
add esp, 0x14
or ebx, 0xffffffff
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x406085
jns 0x405e61
or edi, 0xffffffff
jmp 0x405e82
push 0x44d650
push eax
call fcn.00418ade
mov edi, eax
add esp, 8
test edi, edi
jne 0x405e7a
or edi, 0xffffffff
jmp 0x405e82
sub edi, dword [ebp - 0xe30]
sar edi, 1
call fcn.004018e0
test eax, eax
je 0x406211
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xe2c], esi
test edi, edi
js 0x4060e9
push edi
lea eax, [ebp - 0xe38]
push eax
lea ecx, [ebp - 0xe30]
call fcn.00407030
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x405f18
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x405f03
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x405f03
push edx
call fcn.00402e80
add esp, 4
mov dword [ebp - 0xe2c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x405efe
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0xe2c]
lea esi, [eax + 0x10]
jmp 0x405f18
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0xe2c]
call fcn.00402f50
mov esi, dword [ebp - 0xe2c]
mov edx, dword [ebp - 0xe38]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405f36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [edi + 1]
xor edx, edx
test eax, eax
mov ecx, SysReAllocString
cmovns edx, eax
mov eax, dword [ebp - 0xe30]
sub ecx, edx
mov edi, dword [eax - 0xc]
js 0x406207
cmp edx, edi
mov ebx, edi
cmovle ebx, edx
test ebx, ebx
jle 0x405fea
sub edi, ebx
cmp dword [eax - 4], 1
jle 0x405f81
push dword [eax - 0xc]
lea ecx, [ebp - 0xe30]
call fcn.004030d0
mov eax, dword [ebp - 0xe30]
lea edx, [edi*2 + 2]
lea ecx, [eax + ebx*2]
test edx, edx
je 0x405fb9
test eax, eax
jne 0x405faa
call fcn.0041ea52
mov dword [eax], 0x16
call fcn.0041e979
mov eax, 0x16
jmp 0x405fbb
test ecx, ecx
je 0x405f93
push edx
push ecx
push eax
call fcn.004196f0
add esp, 0xc
xor eax, eax
push eax
call fcn.004038c0
add esp, 4
test edi, edi
js 0x4061fd
mov eax, dword [ebp - 0xe30]
cmp edi, dword [eax - 8]
jg 0x4061fd
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0xe30]
mov word [eax + edi*2], cx
cmp dword [esi - 0xc], 0
je 0x40605a
push ecx
mov ecx, dword [esi - 0x10]
mov dword [ebp - 0xe2c], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
mov ecx, eax
lea eax, [esi - 4]
jl 0x406017
cmp ecx, dword [esi - 0x10]
jne 0x406017
lea ebx, [esi - 0x10]
lock inc dword [eax]
jmp 0x406047
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x40621b
mov ecx, dword [esi - 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [esi - 0xc]
lea edx, [ecx*2 + 2]
push edx
push esi
lea ecx, [ebx + 0x10]
call fcn.00401580
add esp, 8
mov ecx, dword [ebp - 0xe2c]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.004050e0
add esp, 4
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406074
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xe30]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x405e5a
push 0x44c208
push str.Setup_Path
push str.SOFTWAREWdGame
lea eax, [ebp - 0xe34]
mov dword [ebp - 0xe34], 0
push SysReAllocString
push eax
call fcn.0040eae0
mov eax, dword [ebp - 0xe34]
add esp, 0x14
cmp dword [eax - 0xc], 0
je 0x406158
lea esi, [eax - 0x10]
push ecx
mov ecx, dword [esi]
mov dword [ebp - 0xe2c], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x406102
cmp ecx, dword [esi]
jne 0x406102
mov edi, esi
lock inc dword [eax]
jmp 0x406135
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406085
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x406085
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
je 0x40621b
mov eax, dword [esi + 4]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea edx, [eax*2 + 2]
push edx
lea eax, [esi + 0x10]
push eax
call fcn.00401580
add esp, 8
mov ecx, dword [ebp - 0xe2c]
lea eax, [edi + 0x10]
mov dword [ecx], eax
call fcn.00409020
mov ecx, dword [ebp - 0xe34]
add esp, 4
call fcn.0040c1a0
call fcn.004094f0
push 0
push 0x2a
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov edx, dword [ebp - 0xe34]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40619a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xe30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4061b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415060
mov esp, ebp
pop ebp
ret 0x10
call fcn.0041e989
call fcn.0041e989
call fcn.0041e989
call fcn.0041e989
call fcn.0041e989
call fcn.0041e989
call fcn.0041e989
call fcn.0041e989
push 0x80070057
call fcn.00401660
push 0x80070216
call fcn.00401660
push 0x80004005
call fcn.00401660
call fcn.00403150
int3