Function at 0x64b9b0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Delete file
Get common file path
Read .ini file
Resolve function by parsing pe exports
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6a2281
push eax
mov eax, dword [0x6d920c]
mov dword fs:[0], esp
sub esp, 0x888
push ebx
push ebp
push esi
push edi
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
jne 0x64ba09
xor eax, eax
mov ecx, dword [esp + 0x898]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x894
ret 0x10
nop
nop
nop
nop
nop
test al, al
jmp 0x64ba19
mov cl, byte [0x6dfe28]
xor eax, eax
mov byte [esp + 0x194], cl
mov ecx, 0x40
lea edi, [esp + 0x195]
lea edx, [esp + 0x194]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
push 0
lea ecx, [esp + 0x40]
mov al, byte [esp + 0x17]
mov byte [esp + 0x40], al
call fcn.004031c0
lea edi, [esp + 0x194]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x40]
push ebp
call fcn.00403350
test al, al
je 0x64baa9
mov edi, dword [esp + 0x40]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x194]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], ebp
mov byte [eax + ebp], 0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x8a0], 0
push ecx
call fcn.0042e410
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x8a0], 0xffffffff
push 1
call fcn.004031c0
mov dl, byte [0x6dfe28]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x91]
mov byte [esp + 0x90], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x6e25dc]
test eax, eax
jne 0x64bb05
mov eax, 0x6a3560
mov ebx, dword [sym.imp.kernel32.dll_lstrcpyA]
push eax
lea eax, [esp + 0x94]
push eax
call ebx
lea ecx, [esp + 0x90]
push 0x6d9594
push ecx
call dword [sym.imp.kernel32.dll_lstrcatA]
mov esi, dword [sym.imp.kernel32.dll_GetPrivateProfileIntA]
lea edx, [esp + 0x90]
xor edi, edi
push edx
push edi
push 0x6d958c
push 0x6d9584
call esi
inc eax
mov dword [0x6e265c], eax
jns 0x64bb56
mov dword [0x6e265c], edi
jmp 0x64bb65
cmp eax, 2
jl 0x64bb65
mov dword [0x6e265c], 1
lea eax, [esp + 0x90]
push eax
push edi
push 0x6d9578
push 0x6d9584
call esi
cmp eax, edi
mov dword [0x6e2660], eax
jge 0x64bb8b
mov dword [0x6e2660], edi
jmp 0x64bb9a
cmp eax, 2
jl 0x64bb9a
mov dword [0x6e2660], 1
lea ecx, [esp + 0x90]
push ecx
push edi
push 0x6d956c
push 0x6d9584
call esi
cmp eax, edi
mov dword [0x6e2664], eax
jge 0x64bbc0
mov dword [0x6e2664], edi
jmp 0x64bbcf
cmp eax, 2
jl 0x64bbcf
mov dword [0x6e2664], 1
lea edx, [esp + 0x90]
push edx
push 1
push 0x6d9568
push 0x6d9560
call esi
mov dword [0x6e2658], eax
lea eax, [esp + 0x90]
mov ebp, 0x400
push eax
push ebp
push 0x6d9558
push 0x6d954c
call esi
lea ecx, [esp + 0x90]
mov edi, 0x300
push ecx
push edi
push 0x6d9544
push 0x6d954c
mov dword [0x6e2668], eax
call esi
cmp eax, 0
jle 0x64bc34
mov edi, eax
mov eax, dword [0x6e2668]
cmp eax, 0
jg 0x64bc43
mov ebp, 0x400
mov eax, 0x400
mov edi, 0x300
mov dword [0x6e2668], eax
mov dword [0x6e266c], edi
jmp 0x64bc5a
lea edx, [esp + 0x90]
push edx
push 0x10
push 0x6d9538
push 0x6d954c
call esi
cmp eax, 0x10
mov dword [0x6e2670], eax
je 0x64bc89
cmp eax, 0x20
je 0x64bc89
mov dword [0x6e2670], 0x10
lea eax, [esp + 0x90]
push eax
push 0x200
push 0x6d952c
push 0x6d954c
call esi
cmp eax, 0x80
mov dword [0x6e2674], eax
jge 0x64bcba
mov dword [0x6e2674], 0x80
jmp 0x64bccb
cmp eax, 0x200
jle 0x64bccb
mov dword [0x6e2674], 0x200
lea ecx, [esp + 0x90]
push ecx
push 0x7d0
push 0x6d5484
push 0x6d9524
call esi
cmp eax, 0x3e8
mov dword [0x6e2680], eax
jge 0x64bcfc
mov dword [0x6e2680], 0x3e8
jmp 0x64bd0d
cmp eax, 0x7d0
jle 0x64bd0d
mov dword [0x6e2680], 0x7d0
lea edx, [esp + 0x90]
push edx
push 0x30
push 0x6d952c
push 0x6d951c
call esi
cmp eax, 0x14
mov dword [0x6e267c], eax
jge 0x64bd39
mov dword [0x6e267c], 0x14
jmp 0x64bd48
cmp eax, 0x30
jle 0x64bd48
mov dword [0x6e267c], 0x30
lea eax, [esp + 0x90]
push eax
push 1
push 0x6d9518
push 0x6d951c
call esi
xor edi, edi
lea edx, [esp + 0x90]
cmp eax, edi
push edx
push 1
push 0x6d9524
setne cl
push 0x6d951c
mov byte [0x6e2689], cl
call esi
cmp eax, edi
setne al
test al, al
mov byte [0x6e268a], al
jne 0x64bd9f
mov al, byte [0x6e2689]
mov byte [0x6e2688], 0
test al, al
je 0x64bda6
mov byte [0x6e2688], 1
lea eax, [esp + 0x90]
push eax
push edi
push 0x6d950c
push 0x6d951c
call esi
lea edx, [esp + 0x90]
cmp eax, edi
push edx
push 1
setne cl
push 0x6d94fc
push 0x6d94f4
mov byte [0x6e268b], cl
call esi
lea ecx, [esp + 0x90]
cmp eax, edi
push ecx
push edi
setne al
push 0x6d94e8
push 0x6d94e0
mov byte [0x6e268c], al
call esi
cmp eax, edi
lea eax, [esp + 0x90]
push eax
push 1
setne dl
push 0x6d94d0
push 0x6d94c0
mov byte [0x6e268d], dl
call esi
cmp eax, edi
mov eax, dword [0x6e25dc]
setne cl
cmp eax, edi
mov byte [0x6e268e], cl
jne 0x64be35
mov eax, 0x6a3560
lea edx, [esp + 0x90]
push eax
push edx
call ebx
lea eax, [esp + 0x90]
push 0x6d94b4
push eax
call dword [sym.imp.kernel32.dll_lstrcatA]
lea ecx, [esp + 0x90]
push ecx
push edi
push 0x6d94ac
push 0x6d94a4
call esi
push 5
mov dword [0x6e2684], eax
mov ebx, dword [esp + 0x8ac]
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], 0x64b1c0
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
call dword [sym.imp.gdi32.dll_GetStockObject]
lea edx, [esp + 0x4c]
mov dword [esp + 0x6c], edi
push edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], 0x6d9258
call dword [sym.imp.user32.dll_RegisterClassA]
test ax, ax
jne 0x64bed0
push 0x6d9238
call fcn.0044a330
add esp, 4
push 0xffffffffffffffff
call fcn.006747a7
push edi
push ebx
push edi
push edi
push edi
push edi
push edi
push edi
push SysReAllocString
push 0x6d9258
push 0x6d9258
push edi
call dword [sym.imp.user32.dll_CreateWindowExA]
mov esi, dword [sym.imp.user32.dll_ShowWindow]
mov ebp, eax
push edi
push ebp
mov dword [esp + 0x40], ebp
call esi
push ebx
call fcn.0064b200
add esp, 4
cmp eax, edi
mov dword [esp + 0x34], eax
je 0x64c4c6
cmp ebp, edi
je 0x64c4c6
mov eax, dword [esp + 0x8b4]
mov edi, dword [esp + 0x34]
push eax
push edi
call esi
push edi
call dword [sym.imp.user32.dll_SetActiveWindow]
xor ebx, ebx
mov cl, byte [esp + 0x13]
mov dword [esp + 0x28], ebx
mov byte [esp + 0x24], cl
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dl, byte [esp + 0x13]
mov dword [esp + 0x8a0], 1
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov edi, 0x6d9494
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x8a4], 2
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00403350
test al, al
je 0x64bfb3
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov eax, ecx
mov esi, 0x6d9494
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov byte [ecx + ebp], bl
mov edi, 0x6d9484
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403350
test al, al
je 0x64bff9
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x6d9484
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x64c006
mov eax, 0x6a3560
push 0x6d4084
push eax
call fcn.00674b94
mov edi, dword [sym.imp.kernel32.dll_Sleep]
mov ebp, dword [sym.imp.kernel32.dll_DeleteFileA]
add esp, 8
cmp eax, ebx
je 0x64c114
push eax
call fcn.00674ab9
add esp, 4
push 0x64
call edi
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x64c042
mov eax, 0x6a3560
push eax
call ebp
test eax, eax
je 0x64c069
mov eax, dword [esp + 0x28]
mov ecx, 0x6a3560
cmp eax, ebx
je 0x64c058
mov ecx, eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x64c10a
jmp 0x64c105
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x64c076
mov eax, 0x6a3560
push 0x6d4084
push eax
call fcn.00674b94
add esp, 8
cmp eax, ebx
je 0x64c114
push eax
call fcn.00674ab9
add esp, 4
push 0x12c
call edi
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x64c0a9
mov eax, 0x6a3560
push 0x6d4084
push eax
call fcn.00674b94
add esp, 8
cmp eax, ebx
je 0x64c0ee
push eax
call fcn.00674ab9
mov eax, dword [esp + 0x2c]
add esp, 4
cmp eax, ebx
jne 0x64c0d1
mov eax, 0x6a3560
push eax
call ebp
test eax, eax
je 0x64c114
mov eax, dword [esp + 0x28]
mov ecx, 0x6a3560
cmp eax, ebx
je 0x64c058
jmp 0x64c056
mov eax, dword [esp + 0x28]
mov ecx, 0x6a3560
cmp eax, ebx
je 0x64c0fd
mov ecx, eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x64c10a
mov eax, 0x6a3560
push ecx
push eax
call fcn.006761eb
add esp, 8
push 0x6d4084
push 0x6d9470
call fcn.00674b94
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x64c159
push 0x3e8
call edi
push esi
call fcn.00674ab9
add esp, 4
push 0x6d9460
call ebp
test eax, eax
je 0x64c159
push 0x6d9460
push 0x6d9470
call fcn.006761eb
add esp, 8
mov esi, dword [esp + 0x8b0]
cmp esi, ebx
je 0x64c379
mov edi, dword [sym.imp.kernel32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x64c379
push esi
call edi
cmp eax, 0x200
jge 0x64c379
mov dl, byte [0x6dfe28]
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x699]
mov byte [esp + 0x698], dl
mov byte [esp + 0x298], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x299]
mov byte [esp + 0x498], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x499]
lea edx, [esp + 0x298]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x498]
stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x69c]
push edx
push eax
push 0x6d9454
push esi
call fcn.006753e5
lea edi, [esp + 0x2ac]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
cmp ebp, 0xfffffffd
jbe 0x64c21e
call fcn.006713ab
mov edi, dword [0x81896c]
cmp edi, ebx
je 0x64c24b
mov al, byte [edi - 1]
test al, al
je 0x64c24b
cmp al, 0xff
je 0x64c24b
cmp ebp, ebx
jne 0x64c277
mov cl, al
push ebx
dec cl
mov byte [edi - 1], cl
mov ecx, 0x818968
call fcn.004031c0
jmp 0x64c2ae
cmp ebp, ebx
jne 0x64c25d
push 1
mov ecx, 0x818968
call fcn.004031c0
jmp 0x64c2ae
mov eax, dword [0x818974]
cmp eax, 0x1f
ja 0x64c26b
cmp eax, ebp
jae 0x64c288
push 1
mov ecx, 0x818968
call fcn.004031c0
push ebp
mov ecx, 0x818968
call fcn.00403480
mov edi, dword [0x81896c]
mov ecx, ebp
lea esi, [esp + 0x298]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x81896c]
mov dword [0x818970], ebp
mov byte [eax + ebp], 0
lea edi, [esp + 0x498]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
cmp ebp, 0xfffffffd
jbe 0x64c2cb
call fcn.006713ab
mov edi, dword [0x81890c]
cmp edi, ebx
je 0x64c2f8
mov al, byte [edi - 1]
test al, al
je 0x64c2f8
cmp al, 0xff
je 0x64c2f8
cmp ebp, ebx
jne 0x64c324
mov cl, al
push ebx
dec cl
mov byte [edi - 1], cl
mov ecx, 0x818908
call fcn.004031c0
jmp 0x64c35b
cmp ebp, ebx
jne 0x64c30a
push 1
mov ecx, 0x818908
call fcn.004031c0
jmp 0x64c35b
mov eax, dword [0x818914]
cmp eax, 0x1f
ja 0x64c318
cmp eax, ebp
jae 0x64c335
push 1
mov ecx, 0x818908
call fcn.004031c0
push ebp
mov ecx, 0x818908
call fcn.00403480
mov edi, dword [0x81890c]
mov ecx, ebp
lea esi, [esp + 0x498]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x81890c]
mov dword [0x818910], ebp
mov byte [eax + ebp], 0
lea ecx, [esp + 0x698]
push 0x6d9430
push ecx
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
sete dl
mov byte [0x818a25], dl
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x8a8]
push eax
push edi
push ecx
call fcn.006453b0
add esp, 0xc
test al, al
je 0x64c3a6
mov edx, dword [0x8189cc]
push edx
call fcn.00646b50
add esp, 4
push edi
mov byte [0x818a30], 0
call dword [sym.imp.user32.dll_GetDC]
push ebx
mov esi, eax
push 0x64b560
push ebx
push esi
call dword [sym.imp.gdi32.dll_EnumFontFamiliesA]
push esi
push edi
call dword [sym.imp.user32.dll_ReleaseDC]
mov al, byte [0x818a30]
test al, al
jne 0x64c3e7
push 0x6d92ec
push 0x6d92e4
call fcn.0064b330
add esp, 8
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x74]
mov ebx, 0x12
rep stosd dword es:[edi], eax
cmp dword [esp + 0x78], ebx
je 0x64c447
mov esi, dword [sym.imp.user32.dll_PeekMessageA]
mov edi, dword [sym.imp.user32.dll_TranslateMessage]
mov ebp, dword [sym.imp.user32.dll_DispatchMessageA]
push 1
push 0
push 0
lea eax, [esp + 0x80]
push 0
push eax
call esi
test eax, eax
je 0x64c437
lea ecx, [esp + 0x74]
push ecx
call edi
lea edx, [esp + 0x74]
push edx
call ebp
jmp 0x64c441
call fcn.006468e0
call fcn.00646920
cmp dword [esp + 0x78], ebx
jne 0x64c411
call fcn.00645ea0
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x7c]
xor edi, edi
mov byte [esp + 0x8a0], 1
cmp eax, edi
je 0x64c47f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x64c476
cmp al, 0xff
je 0x64c476
dec al
mov byte [ecx], al
jmp 0x64c47f
push ecx
call fcn.006713a0
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
cmp ecx, edi
mov dword [esp + 0x8a0], 0xffffffff
je 0x64c4bf
mov al, byte [ecx - 1]
test al, al
je 0x64c4b5
cmp al, 0xff
je 0x64c4b5
dec al
mov byte [ecx - 1], al
mov eax, esi
jmp 0x64b9ee
dec ecx
push ecx
call fcn.006713a0
add esp, 4
mov eax, esi
jmp 0x64b9ee
push 0x6d9418
call fcn.0044a330
add esp, 4
push 0xffffffffffffffff
call fcn.006747a7
nop
nop
nop
nop
nop
nop
mov cl, byte [0x81a2dc]
mov al, 1
test al, cl
jne 0x64c4f4
or cl, al
mov byte [0x81a2dc], cl
push fcn.004465e0
call fcn.00673ac4
pop ecx
ret