Function at 0x40d480
Capabilities:
Check if file exists
Enumerate processes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddf3d
mov eax, dword fs:[0]
push eax
sub esp, 0xcb4
mov eax, dword [0x518250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xcb4], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xcc0], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0xcac], esi
mov dword [ebp - 0xcb0], 0
call fcn.00404e50
mov ecx, eax
test ecx, ecx
je 0x40dd68
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
cmp dword [edi + 0xc], 0
push 0x208
mov dword [ebp - 4], 0
mov dword [ebp - 0xcb0], 1
push 0
jne 0x40d77f
lea eax, [ebp - 0x218]
push eax
call fcn.00487d10
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00487d10
mov edi, dword [edi + 0x10]
add esp, 0x18
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0xca8], esi
test esi, esi
je 0x40d5db
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00487d10
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [ebp - 0xca8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40d5db
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
lea edx, [ebp - 0x218]
mov eax, edx
mov esi, 0x208
sub edi, eax
nop
lea ecx, [esi + 0x7ffffdf6]
test ecx, ecx
je 0x40d5ce
movzx eax, word [edi + edx]
test ax, ax
je 0x40d5ce
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x40d5b0
test esi, esi
lea eax, [edx - 2]
cmovne eax, edx
jmp 0x40d6e6
push 0
push 2
mov dword [ebp - 0xca8], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40d69c
push 0x228
lea eax, [ebp - 0xc9c]
push 0
push eax
call fcn.00487d10
add esp, 0xc
mov dword [ebp - 0xca0], 0x22c
lea eax, [ebp - 0xca0]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40d695
nop word [eax + eax]
cmp dword [ebp - 0xc98], edi
je 0x40d64b
lea eax, [ebp - 0xca0]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40d630
jmp 0x40d695
lea ecx, [ebp - 0x218]
mov edx, 0x208
lea edi, [ebp - 0xc7c]
mov eax, ecx
sub edi, eax
lea eax, [edx + 0x7ffffdf6]
test eax, eax
je 0x40d67e
movzx eax, word [edi + ecx]
test ax, ax
je 0x40d67e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40d660
test edx, edx
mov dword [ebp - 0xca8], 1
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xca8], 0
jne 0x40d6eb
lea ecx, [ebp - 0x218]
mov esi, 0x4ec068
mov eax, ecx
mov edx, 0x208
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffdf6]
test eax, eax
je 0x40d6de
movzx eax, word [ecx + esi]
test ax, ax
je 0x40d6de
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40d6c0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0xcbc]
push eax
call fcn.004a4b8f
lea eax, [ebp - 0xcbc]
push eax
lea eax, [ebp - 0xa74]
push eax
call fcn.004a49dd
push dword [ebp - 0xa74]
mov eax, dword [ebp - 0xa64]
push dword [ebp - 0xa70]
inc eax
push dword [ebp - 0xa6c]
push dword [ebp - 0xa68]
push eax
mov eax, dword [ebp - 0xa60]
add eax, 0x76c
push eax
push str._d__02d__02d__02d__02d__02d
lea eax, [ebp - 0x830]
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea eax, [ebp - 0x830]
push eax
mov eax, dword [ebp - 0xcb4]
lea ecx, [ebp - 0x218]
push dword [eax + 0x10]
push ecx
push dword [eax + 4]
push str._s_s__d__s.dmp
push dword [ebp - 0xcac]
call fcn.0040d1f0
add esp, 0x48
jmp 0x40dd45
lea eax, [ebp - 0x420]
push eax
call fcn.00487d10
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00487d10
add esp, 0x18
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00448830
mov ecx, dword [0x51a9bc]
test ecx, ecx
jne 0x40d81e
push 0x5170f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x51a9bc], 0
jne 0x40d80d
push 8
call fcn.00450e0a
mov esi, eax
add esp, 4
mov dword [ebp - 0xca8], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x40d7f6
mov ecx, esi
call fcn.0044fdf0
jmp 0x40d7f8
xor esi, esi
mov byte [ebp - 4], 0
lea eax, [ebp - 0xca8]
xor ecx, ecx
lock or dword [eax], ecx
mov dword [0x51a9bc], esi
push 0x5170f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x51a9bc]
mov eax, dword [ecx]
lea edx, [ebp - 0xa68]
push edx
mov eax, dword [eax + 0x10]
call eax
mov esi, eax
mov ecx, 3
mov dword [ebp - 4], 2
mov dword [ebp - 0xca8], ecx
mov dword [ebp - 0xcb0], ecx
mov ecx, dword [str.entludashi]
mov edx, ecx
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40d851
sub edx, edi
mov edi, esi
sar edx, 1
cmp dword [esi + 0x14], 8
jb 0x40d86a
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
cmp esi, edx
jne 0x40d89d
test esi, esi
je 0x40d967
sub edi, ecx
nop dword [eax + eax]
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x40d89d
add ecx, 2
sub esi, 1
jne 0x40d880
mov byte [ebp - 0xca1], 1
jmp 0x40d978
mov ecx, dword [0x51a9bc]
test ecx, ecx
jne 0x40d909
push 0x5170f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x51a9bc], 0
jne 0x40d8f8
push 8
call fcn.00450e0a
mov esi, eax
add esp, 4
mov dword [ebp - 0xca8], esi
mov dword [ebp - 4], 3
test esi, esi
je 0x40d8e1
mov ecx, esi
call fcn.0044fdf0
jmp 0x40d8e3
xor esi, esi
mov byte [ebp - 4], 2
lea eax, [ebp - 0xca8]
xor ecx, ecx
lock or dword [eax], ecx
mov dword [0x51a9bc], esi
push 0x5170f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x51a9bc]
mov eax, dword [ecx]
lea edx, [ebp - 0xa50]
push edx
mov eax, dword [eax + 0x10]
call eax
mov ecx, 7
mov esi, eax
mov dword [ebp - 0xca8], ecx
mov ecx, dword [str.ludashicata]
mov edx, ecx
lea edi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40d930
sub edx, edi
mov edi, esi
sar edx, 1
cmp dword [esi + 0x14], 8
jb 0x40d949
mov edi, dword [esi]
mov esi, dword [esi + 0x10]
cmp esi, edx
jne 0x40d970
test esi, esi
je 0x40d967
sub edi, ecx
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x40d970
add ecx, 2
sub esi, 1
jne 0x40d956
mov byte [ebp - 0xca1], 1
jmp 0x40d978
xor al, al
mov byte [ebp - 0xca1], al
mov eax, dword [ebp - 0xca8]
test al, 4
je 0x40d9ee
mov edx, dword [ebp - 0xa3c]
and eax, 0xfffffffb
mov dword [ebp - 0xca8], eax
cmp edx, 8
jb 0x40d9d1
mov ecx, dword [ebp - 0xa50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d9c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd72
push edx
push ecx
call fcn.00450e3a
mov eax, dword [ebp - 0xca8]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 7
mov word [ebp - 0xa50], cx
mov edx, dword [ebp - 0xa54]
and eax, 0xfffffffd
mov dword [ebp - 4], 0
mov dword [ebp - 0xcb0], eax
cmp edx, 8
jb 0x40da3e
mov ecx, dword [ebp - 0xa68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40da34
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd77
push edx
push ecx
call fcn.00450e3a
add esp, 8
mov al, byte [ebp - 0xca1]
test al, al
je 0x40dccf
mov ecx, dword [0x51a9bc]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ecx, ecx
jne 0x40daba
push 0x5170f8
call edi
cmp dword [0x51a9bc], 0
jne 0x40daa9
push 8
call fcn.00450e0a
mov esi, eax
add esp, 4
mov dword [ebp - 0xca8], esi
mov dword [ebp - 4], 4
test esi, esi
je 0x40da92
mov ecx, esi
call fcn.0044fdf0
jmp 0x40da94
xor esi, esi
mov byte [ebp - 4], 0
lea eax, [ebp - 0xca8]
xor ecx, ecx
lock or dword [eax], ecx
mov dword [0x51a9bc], esi
push 0x5170f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x51a9bc]
mov eax, dword [ecx]
lea edx, [ebp - 0xa50]
push 0
push edx
mov eax, dword [eax + 0x34]
call eax
mov esi, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 5
jb 0x40dadb
mov esi, dword [esi]
call fcn.00404e50
mov ecx, eax
test ecx, ecx
je 0x40dd7c
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xca8], eax
mov byte [ebp - 4], 6
test esi, esi
je 0x40db31
test esi, 0xffff0000
jne 0x40db1b
movzx eax, si
lea ecx, [ebp - 0xca8]
push eax
call fcn.0040e240
jmp 0x40db40
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40db20
sub ecx, edx
sar ecx, 1
jmp 0x40db33
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0xca8]
call fcn.00406400
mov edx, dword [ebp - 0xa3c]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x40db84
mov ecx, dword [ebp - 0xa50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40db7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd86
push edx
push ecx
call fcn.00450e3a
add esp, 8
mov esi, dword [ebp - 0xca8]
xor eax, eax
push esi
push 0x104
mov word [ebp - 0xa50], ax
lea eax, [ebp - 0x420]
push eax
push 0x4eb534
push str.client_token
push str.general
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 7
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [0x51a9bc]
test ecx, ecx
jne 0x40dc2e
push 0x5170f8
call edi
cmp dword [0x51a9bc], 0
jne 0x40dc1d
push 8
call fcn.00450e0a
mov edi, eax
add esp, 4
mov dword [ebp - 0xcb8], edi
mov byte [ebp - 4], 9
test edi, edi
je 0x40dc06
mov ecx, edi
call fcn.0044fdf0
jmp 0x40dc08
xor edi, edi
mov byte [ebp - 4], 8
lea eax, [ebp - 0xcb8]
xor ecx, ecx
lock or dword [eax], ecx
mov dword [0x51a9bc], edi
push 0x5170f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x51a9bc]
mov eax, dword [ecx]
lea edx, [ebp - 0xa68]
push 0
push edx
mov eax, dword [eax + 0x6c]
call eax
sub esp, 0x18
mov ecx, esp
movups xmm0, xmmword [eax]
push 0x4ec0c4
push 0x104
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
lea eax, [ebp - 0xa38]
push eax
movq qword [ecx + 0x10], xmm0
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov edx, dword [ebp - 0xa54]
add esp, 0x24
cmp edx, 8
jb 0x40dcad
mov ecx, dword [ebp - 0xa68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40dca3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dd8b
push edx
push ecx
call fcn.00450e3a
add esp, 8
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40dcc9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0xca1]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
push esi
test al, al
je 0x40dd08
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0xcb4]
push dword [eax + 4]
push str._s_s__s__03d.dmp
push dword [ebp - 0xcac]
call fcn.0040d1f0
add esp, 0x18
jmp 0x40dd2b
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0xcb4]
push dword [eax + 4]
push str._s_s__03d.dmp
push dword [ebp - 0xcac]
call fcn.0040d1f0
add esp, 0x14
mov eax, dword [ebp - 0xcac]
push dword [eax]
call edi
test eax, eax
je 0x40dd45
mov al, byte [ebp - 0xca1]
inc esi
cmp esi, 0xa
jle 0x40dcd7
mov eax, dword [ebp - 0xcac]
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.0045124a
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404b40
call fcn.00491e86
call fcn.00491e86
push 0x80004005
call fcn.00404b40
call fcn.00491e86
call fcn.00491e86
int3