Function at 0x401480
Capabilities:
Check mutex on windows
Create process on windows
Delete file
Get common file path

Disassembly:
sub esp, 0x25c
push ebx
push ebp
push esi
push edi
push str.ClientAgentSetup
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401f18
mov eax, dword [0x41b420]
mov ecx, dword [esp + 0x270]
lea edx, [esp + 0x10]
push 0x26
push edx
mov dword [esp + 0x28], eax
mov dword [0x41e894], ecx
call fcn.00401000
add esp, 8
mov ecx, 0x41e890
push eax
call fcn.0040f950
lea ecx, [esp + 0x10]
call fcn.0040f863
push 0x41b388
mov ecx, 0x41e890
call fcn.0040fb4c
mov eax, dword [0x41e890]
push eax
call fcn.0040ebc0
add esp, 4
mov ecx, 0x41e890
push str.Common_Files_
call fcn.0040fb4c
mov ecx, dword [0x41e890]
push ecx
call fcn.0040ebc0
add esp, 4
mov ecx, 0x41e890
push str.System_
call fcn.0040fb4c
mov edx, dword [0x41e890]
push edx
call fcn.0040ebc0
add esp, 4
mov ecx, 0x41e890
push str.ClientWlg_
call fcn.0040fb4c
push 0x41e890
lea ecx, [esp + 0x20]
call fcn.0040f5d8
mov eax, dword [0x41e890]
push eax
call fcn.0040ebc0
add esp, 4
lea ecx, [esp + 0x28]
call fcn.0040fcf4
push str.test.tmp
lea ecx, [esp + 0x14]
push 0x41e890
push ecx
call fcn.0040fa05
mov eax, dword [eax]
push 0
push 0x1041
push eax
lea ecx, [esp + 0x34]
call fcn.0040fe06
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0040f863
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
je 0x401631
lea ecx, [esp + 0x28]
call fcn.00410021
push str.test.tmp
lea edx, [esp + 0x14]
push 0x41e890
push edx
call fcn.0040fa05
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x10]
call fcn.0040f863
lea eax, [esp + 0x10]
push 3
push eax
mov ecx, 0x41e890
call fcn.0040ec82
push eax
lea ecx, [esp + 0x24]
call fcn.0040f950
lea ecx, [esp + 0x10]
call fcn.0040f863
push str.ClientWlgupdatemainprogram.tmp
lea ecx, [esp + 0x24]
call fcn.0040fb4c
push 0
push 0x1041
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x34]
call fcn.0040fe06
test eax, eax
je 0x401681
lea ecx, [esp + 0x28]
call fcn.00410021
jmp 0x401681
lea edx, [esp + 0x10]
push 3
push edx
mov ecx, 0x41e890
call fcn.0040ec82
push eax
mov ecx, 0x41e890
call fcn.0040f950
lea ecx, [esp + 0x10]
call fcn.0040f863
push str.ClientWlg_
mov ecx, 0x41e890
call fcn.0040fb4c
push 0x41e890
lea ecx, [esp + 0x20]
call fcn.0040f950
mov eax, dword [0x41e890]
push eax
call fcn.0040ebc0
add esp, 4
call fcn.00401380
push str.SSystem
call fcn.004011b0
mov ecx, esp
mov dword [esp + 0x14], esp
push str.SSystem
call fcn.0040f8d1
call fcn.00401210
push str.KeepProg
call fcn.004011b0
add esp, 4
mov ecx, esp
mov dword [esp + 0x14], esp
push str.dsrc.exe_intnet.exe_seagent.exe_ssystem.exe_KeepProg.exe_LanAgent.exe_SysWlg.exe_keepwlgclient.exe_WlgPj.exe_WlgSrc.exe_winipcfg.exe_arptable.exe_sentrybar.exe_shellnotify8.exe
call fcn.0040f8d1
call fcn.00401f30
add esp, 4
lea ecx, [esp + 0x10]
push str.WlgPj.exe
push 0x41e890
push ecx
call fcn.0040fa05
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x10]
call fcn.0040f863
push str.WlgSrc.exe
lea edx, [esp + 0x14]
push 0x41e890
push edx
call fcn.0040fa05
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x10]
call fcn.0040f863
mov eax, dword [esp + 0x278]
lea ecx, [esp + 0x24]
push eax
call fcn.0040f8d1
mov ecx, dword [0x41b420]
xor eax, eax
mov dword [esp + 0x10], ecx
mov ecx, 0x41
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0x14]
push 0x41b254
push edx
call fcn.0040f080
mov edi, dword [0x41e890]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x64]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x64]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.lanagent.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x64]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov edi, dword [0x41e890]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x168]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x168]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.GetWordNT.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x64]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
lea ecx, [esp + 0x168]
lea edx, [esp + 0x64]
push ecx
push edx
call fcn.0040434e
mov edi, dword [0x41e890]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x64]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x168]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41b230
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.iCall.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x64]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
lea ecx, [esp + 0x168]
lea edx, [esp + 0x64]
push ecx
push edx
call fcn.0040434e
mov edi, dword [0x41e890]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x64]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.keepprog.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x64]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
lea ecx, [esp + 0x10]
call fcn.0040f863
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x64]
push 0x104
push ecx
call ebx
mov edi, str.winbedrv.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x64]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x64]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x68]
push ecx
call ebx
mov edi, str.SSystem.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x64]
rep movsb byte es:[edi], byte [esi]
push eax
call ebp
lea ecx, [esp + 0x64]
push 0x104
push ecx
call ebx
mov edi, str._seagent.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x64]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
call fcn.00401440
lea ecx, [esp + 0x38]
call fcn.00403110
lea ecx, [esp + 0x1c]
push str.SysWlg.exe
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0040fa05
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.004031d3
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call fcn.0040f863
test bl, bl
je 0x401be3
lea ecx, [esp + 0x38]
call fcn.00403189
push str.SysWlg.exe
lea eax, [esp + 0x14]
push 0x41e890
push eax
call fcn.0040fa05
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.004031d3
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0040f863
test esi, esi
je 0x401cc8
lea ecx, [esp + 0x38]
call fcn.00403189
lea ecx, [esp + 0x54]
call fcn.0040fcf4
push str.updatemainprogram.tmp
lea ecx, [esp + 0x14]
push 0x41e890
push ecx
call fcn.0040fa05
mov eax, dword [eax]
push 0
push 0x1041
push eax
lea ecx, [esp + 0x60]
call fcn.0040fe06
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0040f863
test esi, esi
je 0x401b2f
lea ecx, [esp + 0x54]
call fcn.00410021
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call edi
push str.updatemainprogram.tmp
lea edx, [esp + 0x14]
push 0x41e890
push edx
xor ebx, ebx
call fcn.0040fa05
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x40]
call fcn.004031d3
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0040f863
test esi, esi
je 0x401bac
inc ebx
cmp ebx, 0x19
jg 0x401bac
push 0xc8
call edi
push str.updatemainprogram.tmp
lea eax, [esp + 0x14]
push 0x41e890
push eax
call fcn.0040fa05
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.004031d3
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0040f863
test esi, esi
jne 0x401b6e
push str.updatemainprogram.tmp
lea ecx, [esp + 0x14]
push 0x41e890
push ecx
call fcn.0040fa05
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x10]
call fcn.0040f863
push 0x1f4
call edi
lea ecx, [esp + 0x54]
call fcn.0040fd49
jmp 0x401cc8
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.SysWlg.exe_keepwlgclient.exe_WlgPj.exe_WlgSrc.exe
call fcn.0040f8d1
call fcn.00401f30
add esp, 4
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push str.SysWlg.exe
push edx
push eax
call fcn.0040fa05
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x10]
call fcn.0040f863
lea ecx, [esp + 0x1c]
push str.keepwlgclient.exe
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0040fa05
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x10]
call fcn.0040f863
lea eax, [esp + 0x1c]
push str.WlgSrc.exe
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0040fa05
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x10]
call fcn.0040f863
lea edx, [esp + 0x1c]
push str.WlgPj.exe
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0040fa05
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x10]
call fcn.0040f863
lea ecx, [esp + 0x1c]
push str.shellnotify8.exe
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0040fa05
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x10]
call fcn.0040f863
lea eax, [esp + 0x1c]
push str.Valuation.exe
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0040fa05
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x10]
call fcn.0040f863
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.WlgPj.exe_WlgSrc.exe
call fcn.0040f8d1
call fcn.00401f30
add esp, 4
call fcn.004022e0
mov edx, dword [0x41b420]
push 0xc9
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
call fcn.0040fc49
push str._____
lea ecx, [esp + 0x18]
call fcn.0040ecfa
push 0x41b12c
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0040ecfa
sub eax, esi
add esi, 5
sub eax, 5
lea ecx, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push esi
push eax
call fcn.0040ebec
push eax
lea ecx, [esp + 0x18]
call fcn.0040f950
lea ecx, [esp + 0x10]
call fcn.0040f863
lea ecx, [esp + 0x14]
call fcn.0040f0df
lea ecx, [esp + 0x14]
call fcn.0040f093
mov ecx, dword [esp + 0x14]
push 0x41e898
push ecx
call fcn.0040429f
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 8
test eax, eax
je 0x401ddb
mov edx, dword [esp + 0x14]
push edx
call fcn.00404294
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004012d0
add esp, 8
lea ecx, [esp + 0x14]
push eax
call fcn.0040f950
lea ecx, [esp + 0x10]
call fcn.0040f863
push str.server.ini
lea ecx, [esp + 0x14]
push 0x41e890
push ecx
call fcn.0040fa05
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
push eax
push edx
push 0x41b11c
push str.SERVER
call edi
lea ecx, [esp + 0x10]
call fcn.0040f863
mov eax, dword [0x41b420]
push 0xca
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.0040fc49
push 0x41b10c
lea ecx, [esp + 0x1c]
call fcn.0040ecfa
push 0x41b104
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.0040ecfa
sub eax, esi
add esi, 5
sub eax, 5
lea ecx, [esp + 0x10]
push eax
push esi
push ecx
lea ecx, [esp + 0x24]
call fcn.0040ebec
push eax
lea ecx, [esp + 0x1c]
call fcn.0040f950
lea ecx, [esp + 0x10]
call fcn.0040f863
lea ecx, [esp + 0x18]
call fcn.0040f0df
lea ecx, [esp + 0x18]
call fcn.0040f093
mov edx, dword [esp + 0x18]
push 0x41e898
push edx
call fcn.0040429f
add esp, 8
test eax, eax
je 0x401e94
push str.server.ini
lea eax, [esp + 0x14]
push 0x41e890
push eax
call fcn.0040fa05
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push str.PORT
push str.SERVER
call edi
lea ecx, [esp + 0x10]
call fcn.0040f863
push str.SysWlg.exe
lea edx, [esp + 0x14]
push 0x41e890
push edx
call fcn.0040fa05
mov eax, dword [eax]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp + 0x10]
call fcn.0040f863
mov eax, dword [esp + 0x20]
push 0x41e898
push eax
call fcn.0040429f
add esp, 8
test eax, eax
je 0x401ed9
mov ecx, dword [esp + 0x20]
push ecx
call ebp
lea ecx, [esp + 0x18]
call fcn.0040f863
lea ecx, [esp + 0x14]
call fcn.0040f863
lea ecx, [esp + 0x38]
call fcn.0040314d
lea ecx, [esp + 0x24]
call fcn.0040f863
lea ecx, [esp + 0x28]
call fcn.0040fd49
lea ecx, [esp + 0x1c]
call fcn.0040f863
lea ecx, [esp + 0x20]
call fcn.0040f863
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x25c
ret 0x10