Function at 0x405e40
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create process on windows
Read .ini file
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501b60
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1698
call fcn.00497150
mov eax, dword [0x548394]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0x10]
push str.Global214C9633_51FA_4072_8A4E_9D1198661143
push 1
push 0
mov dword [ebp - 0x16a8], eax
mov dword [ebp - 0x16a4], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x16a0], eax
test eax, eax
je 0x405fbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405fc2
mov ecx, esi
mov dword [ebp - 0x1020], 0
xor eax, eax
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ef0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x1030]
call fcn.004087e0
mov eax, dword [ebp - 0x1020]
add eax, eax
mov dword [ebp - 0x168c], 0x2716
cmp dword [ebp - 0x101c], 8
mov dword [ebp - 0x1688], eax
lea eax, [ebp - 0x1030]
cmovae eax, dword [ebp - 0x1030]
push 0
push str.AdBlockTrayMainWndClassName
mov dword [ebp - 0x1684], eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405f73
push 0
push 0x1388
push 1
lea eax, [ebp - 0x168c]
push eax
push 0
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov esi, dword [ebp - 0x16a0]
push esi
call edi
mov edx, dword [ebp - 0x101c]
cmp edx, 8
jb 0x405fc8
mov ecx, dword [ebp - 0x1030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405fb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fff
push edx
push ecx
call fcn.00496af7
add esp, 8
jmp 0x405fc8
mov esi, eax
jmp 0x405fc8
mov esi, dword [ebp - 0x16a0]
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x4061ad
push esi
call edi
lea ecx, [ebp - 0x103c]
call fcn.00413170
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x1699], al
mov dword [ebp - 4], 0
or edi, 0xffffffff
mov esi, dword [ebp - 0x1038]
test esi, esi
je 0x40602c
mov ecx, edi
lock xadd dword [esi + 4], ecx
jne 0x40602c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x406026
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x1699]
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x4060b0
sub esp, 8
lea ecx, [ebp - 0x1120]
call fcn.00407750
mov edx, str.app_need_adjust_privilege
lea ecx, [ebp - 0x1120]
call fcn.00405c40
lea ecx, [ebp - 0x103c]
call fcn.00413170
lea edx, [ebp - 0x1120]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x1038]
test esi, esi
je 0x40609e
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40609e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40609e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x1120]
mov dword [ebp - 4], 0xffffffff
call fcn.00405db0
push 0x210
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.004d82b0
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x108
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [ebp - 0x16a4]
lea eax, [ebp - 0x1038]
sub esp, 0x10
mov dword [ebp - 0x1038], 0
lea ecx, [ebp - 0x228]
push eax
call fcn.00411170
test eax, eax
jne 0x406284
lea ecx, [ebp - 0x1688]
call fcn.00413170
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x1699], al
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x1684]
test esi, esi
je 0x406157
mov ecx, edi
lock xadd dword [esi + 4], ecx
jne 0x406157
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x406151
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x1699]
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x406284
sub esp, 8
lea ecx, [ebp - 0x1120]
call fcn.00407750
lea eax, [ebp - 0x1120]
push str.Adjustprivilege:_CreateProcess_fail
push eax
call fcn.004091c0
add esp, 8
lea ecx, [ebp - 0x1688]
call fcn.00413170
lea edx, [ebp - 0x1120]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 3
jmp 0x406249
lea ecx, [ebp - 0x1688]
call fcn.00413170
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x1699], al
mov dword [ebp - 4], 4
or edi, 0xffffffff
mov esi, dword [ebp - 0x1684]
test esi, esi
je 0x406200
mov ecx, edi
lock xadd dword [esi + 4], ecx
jne 0x406200
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4061fa
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x1699]
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x406284
sub esp, 8
lea ecx, [ebp - 0x1120]
call fcn.00407750
mov edx, str.run_under_admin
lea ecx, [ebp - 0x1120]
call fcn.00405c40
lea ecx, [ebp - 0x1688]
call fcn.00413170
lea edx, [ebp - 0x1120]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 5
mov esi, dword [ebp - 0x1684]
test esi, esi
je 0x406272
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x406272
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x406272
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x1120]
mov dword [ebp - 4], 0xffffffff
call fcn.00405db0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x406376
push dword [ebp - 0x16a0]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
lea ecx, [ebp - 0x1688]
call fcn.00413170
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x1699], al
mov dword [ebp - 4], 6
mov esi, dword [ebp - 0x1684]
test esi, esi
je 0x4062f1
mov ecx, edi
lock xadd dword [esi + 4], ecx
jne 0x4062f1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4062eb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x1699]
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x406fdd
sub esp, 8
lea ecx, [ebp - 0x1120]
call fcn.00407750
mov edx, str.init_com_failed
lea ecx, [ebp - 0x1120]
call fcn.00405c40
lea ecx, [ebp - 0x1688]
call fcn.00413170
lea edx, [ebp - 0x1120]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 7
mov esi, dword [ebp - 0x1684]
test esi, esi
je 0x406366
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x406366
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x406366
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x1120]
call fcn.00405db0
jmp 0x406fdd
call fcn.0040f750
push ecx
call fcn.0040f6b0
add esp, 4
call fcn.004072a0
mov edx, dword [ebp - 0x16a4]
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 7
lea esi, [eax + 4]
xor eax, eax
mov word [ebp - 0x1030], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4063b2
sub edx, ecx
lea ecx, [ebp - 0x1030]
sar edx, 1
push edx
push dword [ebp - 0x16a4]
call fcn.004087e0
lea eax, [ebp - 0x1030]
mov ecx, esi
push eax
call fcn.00421a20
mov edx, dword [ebp - 0x101c]
cmp edx, 8
jb 0x406421
mov ecx, dword [ebp - 0x1030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406417
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407004
push edx
push ecx
call fcn.00496af7
add esp, 8
lea ecx, [ebp - 0x1688]
call fcn.00413170
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x1699], al
mov dword [ebp - 4], 8
mov esi, dword [ebp - 0x1684]
test esi, esi
je 0x406471
mov ecx, edi
lock xadd dword [esi + 4], ecx
jne 0x406471
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40646b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x1699]
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x406519
sub esp, 8
lea ecx, [ebp - 0x1120]
call fcn.00407750
mov edx, str.run_cmd_:
lea ecx, [ebp - 0x1120]
call fcn.00405c40
mov ecx, dword [ebp - 0x16a4]
mov eax, str._null_
test ecx, ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x1120]
push eax
call fcn.004091c0
add esp, 8
lea ecx, [ebp - 0x1688]
call fcn.00413170
lea edx, [ebp - 0x1120]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 9
mov esi, dword [ebp - 0x1684]
test esi, esi
je 0x406507
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x406507
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x406507
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x1120]
mov dword [ebp - 4], 0xffffffff
call fcn.00405db0
call fcn.004073b0
push reloc.OLEAUT32.dll_SysReAllocString
push str.SOFTWAREADBlockMaster
push str.ADBlockMaster.exe
mov ecx, eax
call fcn.00423440
push 0
push 0
push 0
push str.adbk
lea eax, [ebp - 0x1030]
mov dword [ebp - 0x1034], 0
push str.http:__s.91toolbox.com_adbk_pidpidtypetypeactionactionappappappverappvermidmidmid2mid2modvermodver
push eax
call fcn.004237f0
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x406565
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x1034]
call fcn.004083e0
mov edx, dword [ebp - 0x101c]
cmp edx, 8
jb 0x4065b1
mov ecx, dword [ebp - 0x1030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4065a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407009
push edx
push ecx
call fcn.00496af7
add esp, 8
call fcn.00407460
push dword [ebp - 0x1034]
mov ecx, eax
push str.operate
call fcn.004242e0
push dword [ebp - 0x16a8]
call fcn.0042afe0
add esp, 4
lea eax, [ebp - 0x1318]
push 0x84
push 0
push eax
call fcn.004d82b0
add esp, 0xc
lea eax, [ebp - 0x1318]
push eax
call fcn.00426660
add esp, 4
lea ecx, [ebp - 0x1318]
push str.skin
call fcn.0042cc20
lea ecx, [ebp - 0x1318]
call fcn.004267c0
push eax
call fcn.0042b260
add esp, 4
push 1
push str.adblocktray.zip
call fcn.0042b320
add esp, 8
call fcn.00407140
push dword [eax]
push 1
push 0x531e50
push str.auto_run
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x406914
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
call fcn.004072a0
mov esi, eax
mov dword [ebp - 0x1688], 0
push 4
xor eax, eax
mov dword [ebp - 0x1684], 7
push str.from
lea ecx, [ebp - 0x1698]
mov word [ebp - 0x1698], ax
call fcn.004087e0
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x1698]
lea ecx, [esi + 4]
push eax
call fcn.00421840
mov edx, dword [ebp - 0x1684]
cmp edx, 8
jb 0x4066f2
mov ecx, dword [ebp - 0x1698]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4066e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40700e
push edx
push ecx
call fcn.00496af7
add esp, 8
mov eax, dword [ebp - 0x101c]
lea ecx, [ebp - 0x1030]
mov esi, dword [ebp - 0x1030]
cmp eax, 8
mov edx, dword [ebp - 0x1020]
cmovae ecx, esi
cmp edx, 4
jne 0x406733
push edx
mov edx, str.task
call fcn.00409ed0
add esp, 4
test eax, eax
je 0x40678d
mov eax, dword [ebp - 0x101c]
mov edx, dword [ebp - 0x1020]
cmp eax, 8
lea ecx, [ebp - 0x1030]
cmovae ecx, esi
cmp edx, 3
jne 0x406762
push edx
mov edx, 0x531388
call fcn.00409ed0
add esp, 4
test eax, eax
je 0x40678d
mov eax, dword [ebp - 0x101c]
mov edx, dword [ebp - 0x1020]
cmp eax, 8
lea ecx, [ebp - 0x1030]
cmovae ecx, esi
cmp edx, 3
jne 0x4068e0
push edx
mov edx, 0x531390
call fcn.00409ed0
add esp, 4
test eax, eax
jne 0x4068da
lea ecx, [ebp - 0x1688]
call fcn.00413170
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x1699], al
mov dword [ebp - 4], 0xa
mov esi, dword [ebp - 0x1684]
test esi, esi
je 0x4067dd
mov ecx, edi
lock xadd dword [esi + 4], ecx
jne 0x4067dd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4067d7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x1699]
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x406869
sub esp, 8
lea ecx, [ebp - 0x1120]
call fcn.00407750
lea eax, [ebp - 0x1120]
push str.user_close_auto_run__exit
push eax
call fcn.004091c0
add esp, 8
lea ecx, [ebp - 0x1688]
call fcn.00413170
lea edx, [ebp - 0x1120]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 0xb
mov esi, dword [ebp - 0x1684]
test esi, esi
je 0x406857
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x406857
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x406857
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x1120]
mov dword [ebp - 4], 0xffffffff
call fcn.00405db0
call fcn.00407460
sub esp, 0x28
mov ecx, esp
push 0
push str.autoitem
push 1
push 0
mov dword [ecx + 0x24], 0
mov ecx, eax
push str.autooff
call fcn.00424330
mov edx, dword [ebp - 0x101c]
cmp edx, 8
jb 0x406f68
mov ecx, dword [ebp - 0x1030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4068cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407013
push edx
push ecx
call fcn.00496af7
add esp, 8
jmp 0x406f68
mov eax, dword [ebp - 0x101c]
cmp eax, 8
jb 0x406914
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x40690a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407018
push ecx
push esi
call fcn.00496af7
add esp, 8
cmp word [0x554810], 0
jne 0x40693b
push 0x104
push 0x554810
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x554810
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, 0x554810
mov dword [ebp - 0x1020], 0
xor eax, eax
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406960
sub ecx, edx
sar ecx, 1
push ecx
push 0x554810
lea ecx, [ebp - 0x1030]
call fcn.004087e0
push 0x208
lea eax, [ebp - 0x1290]
push 0
push eax
call fcn.004d82b0
add esp, 0xc
lea eax, [ebp - 0x1030]
cmp dword [ebp - 0x101c], 8
cmovae eax, dword [ebp - 0x1030]
push str.config.ini
push eax
lea eax, [ebp - 0x1290]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, dword [ebp - 0x101c]
cmp edx, 8
jb 0x4069fd
mov ecx, dword [ebp - 0x1030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4069f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40701d
push edx
push ecx
call fcn.00496af7
add esp, 8
mov esi, dword [ebp - 0x16a4]
lea ecx, [ebp - 0x1290]
xor eax, eax
mov dword [ebp - 0x1020], 0
push esi
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
call fcn.00418bd0
test al, al
jne 0x406b3d
call fcn.00407460
sub esp, 0x28
mov ecx, esp
push 0
push str.operate
push 0
push 0
mov dword [ecx + 0x24], 0
mov ecx, eax
push str.no_active
call fcn.00424330
lea ecx, [ebp - 0x1688]
call fcn.00413170
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x1699], al
mov dword [ebp - 4], 0xc
mov esi, dword [ebp - 0x1684]
test esi, esi
je 0x406aac
mov ecx, edi
lock xadd dword [esi + 4], ecx
jne 0x406aac
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x406aa6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x1699]
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x406f68
sub esp, 8
lea ecx, [ebp - 0x1120]
call fcn.00407750
lea eax, [ebp - 0x1120]
push str.CheckEnableAutoRun_False__exit
push eax
call fcn.004091c0
add esp, 8
lea ecx, [ebp - 0x1688]
call fcn.00413170
lea edx, [ebp - 0x1120]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 0xd
mov esi, dword [ebp - 0x1684]
test esi, esi
je 0x406b26
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x406b26
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x406b26
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x1120]
mov dword [ebp - 4], 0xffffffff
call fcn.00405db0
jmp 0x406f68
call fcn.00407050
call fcn.0041d7c0
test eax, eax
je 0x406dd8
call fcn.00407050
mov edx, esi
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x406b60
sub edx, esi
lea ecx, [eax + 0xc]
sar edx, 1
push edx
push dword [ebp - 0x16a4]
call fcn.004087e0
call fcn.00407050
push 0x208
mov esi, eax
lea eax, [ebp - 0x1290]
push 0
push eax
call fcn.004d82b0
add esp, 0xc
lea eax, [ebp - 0x1290]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1290]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.update_tempupdate.exe
lea eax, [ebp - 0x1290]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esi, 0xc
cmp dword [esi + 0x14], 8
jb 0x406bd9
mov esi, dword [esi]
xorps xmm0, xmm0
mov dword [ebp - 0x1088], 0x44
lea eax, [ebp - 0x1088]
movlpd qword [ebp - 0x1084], xmm0
push eax
movlpd qword [ebp - 0x107c], xmm0
movlpd qword [ebp - 0x1074], xmm0
movlpd qword [ebp - 0x106c], xmm0
movlpd qword [ebp - 0x1064], xmm0
movlpd qword [ebp - 0x105c], xmm0
movlpd qword [ebp - 0x1054], xmm0
movlpd qword [ebp - 0x104c], xmm0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
mov dword [ebp - 0x105c], 1
mov word [ebp - 0x1058], ax
xorps xmm0, xmm0
movups xmmword [ebp - 0x1690], xmm0
test esi, esi
je 0x406c9b
push 0x1000
push eax
lea eax, [ebp - 0x1018]
push eax
call fcn.004d82b0
add esp, 0xc
lea eax, [ebp - 0x1290]
push esi
push eax
lea eax, [ebp - 0x1018]
push str.__s___s
push eax
call fcn.004114d0
add esp, 0x10
lea eax, [ebp - 0x1690]
push eax
lea eax, [ebp - 0x1088]
push eax
lea eax, [ebp - 0x1018]
jmp 0x406caf
lea eax, [ebp - 0x1690]
push eax
lea eax, [ebp - 0x1088]
push eax
lea eax, [ebp - 0x1290]
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x406dd8
push dword [ebp - 0x168c]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
push dword [ebp - 0x1690]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x406dd8
lea ecx, [ebp - 0x1688]
call fcn.00413170
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x1699], al
mov dword [ebp - 4], 0xe
mov esi, dword [ebp - 0x1684]
test esi, esi
je 0x406d3f
mov ecx, edi
lock xadd dword [esi + 4], ecx
jne 0x406d3f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x406d39
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0x1699]
mov dword [ebp - 4], 0xffffffff
test al, al
je 0x406dc7
sub esp, 8
lea ecx, [ebp - 0x1120]
call fcn.00407750
lea eax, [ebp - 0x1120]
push str.need_update__exit
push eax
call fcn.004091c0
add esp, 8
lea ecx, [ebp - 0x1688]
call fcn.00413170
lea edx, [ebp - 0x1120]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 4], 0xf
mov esi, dword [ebp - 0x1684]
test esi, esi
je 0x406db5
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x406db5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x406db5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x1120]
mov dword [ebp - 4], 0xffffffff
call fcn.00405db0
push dword [ebp - 0x16a0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406f68
push 0x364
lea eax, [ebp - 0x1680]
push 0
push eax
call fcn.004d82b0
add esp, 0xc
lea ecx, [ebp - 0x1680]
call fcn.0040e000
xor eax, eax
mov dword [ebp - method.CMainWnd.3.virtual_0], vtable.CMainWnd.3.0
lea ecx, [ebp - 0x1680]
mov dword [ebp - method.DuiLib::WindowImplBase.4.virtual_0], vtable.CMainWnd.6.0
mov dword [ebp - method.DuiLib::WindowImplBase.2.virtual_0], vtable.CMainWnd.2.0
mov dword [ebp - method.DuiLib::WindowImplBase.1.virtual_0], vtable.CMainWnd.4.0
mov dword [ebp - method.DuiLib::CTxtWinHost.virtual_88], vtable.CMainWnd.1.0
mov dword [ebp - method.DuiLib::CAnimationOwner.virtual_16], vtable.CMainWnd.5.0
mov dword [ebp - method.DuiLib::CControlUI.virtual_384], vtable.CMainWnd.0
mov dword [ebp - 0x1364], 0
mov dword [ebp - 0x1360], 0xffffffff
mov dword [ebp - 0x135c], 0xffffffff
mov dword [ebp - 0x1354], 0
mov dword [ebp - 0x1340], 0
mov dword [ebp - 0x133c], 7
mov word [ebp - 0x1350], ax
mov byte [ebp - 0x1338], al
mov dword [ebp - 0x1334], eax
mov dword [ebp - 0x1330], eax
mov dword [ebp - 0x132c], eax
mov byte [ebp - 0x1328], al
mov dword [ebp - 0x1324], eax
call fcn.004140b0
lea eax, [ebp - 0x1680]
lea edx, [ebp - 0x16a8]
mov dword [ebp - 0x16a8], eax
lea ecx, [ebp - 0x16a0]
call fcn.00415ff0
lea ecx, [ebp - 0x1324]
cmp ecx, eax
je 0x406ef8
mov ecx, dword [eax]
mov dword [eax], 0
mov eax, dword [ebp - 0x1324]
mov dword [ebp - 0x1324], ecx
test eax, eax
je 0x406ef8
push eax
call fcn.00415f40
mov eax, dword [ebp - 0x16a0]
test eax, eax
je 0x406f08
push eax
call fcn.00415f40
push 0x53256c
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0x80
push SysReAllocString
push str.adbk_tray
push 0
lea ecx, [ebp - 0x1680]
mov dword [ebp - 0x1320], eax
call fcn.0042bc20
lea ecx, [ebp - 0x1680]
call fcn.0042bde0
mov ecx, eax
call fcn.00428d90
lea ecx, [ebp - 0x1680]
call fcn.00413d40
cmp dword [0x554168], 0
je 0x406fa1
push 0x549f0c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x554168]
test ecx, ecx
je 0x406f96
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x554168], 0
push 0x549f0c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x1318]
call fcn.00422820
mov edx, dword [ebp - 0x1034]
add edx, 0xfffffff0
mov dword [ebp - 4], 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x406fdd
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
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004965ac
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004dbc1d
call fcn.004dbc1d
call fcn.004dbc1d
call fcn.004dbc1d
call fcn.004dbc1d
call fcn.004dbc1d
call fcn.004dbc1d
int3