Function at 0x4083e0
Capabilities:
Create process on windows
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4158e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7e0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
lea eax, [esp + 0x2a8]
push 0xff
push eax
mov ebp, ecx
push 0
call esi
lea ecx, [esp + 0x2a8]
push 0x5c
push ecx
call fcn.00410f90
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [esp + 0x2a8]
mov byte [eax], 0
push edx
lea eax, [esp + 0x4ec]
push 0x418040
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x4e8]
lea edx, [esp + 0x90]
push ecx
push 0xff
push edx
push 0x41a588
push 0x41802c
push 0x418020
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x1a8]
mov byte [esp + 0x1a8], 0
push eax
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov al, byte [esp + 0x1a8]
test al, al
jne 0x4084bf
lea ecx, [esp + 0x2a8]
lea edx, [esp + 0x1a8]
push ecx
push 0x41801c
push edx
call ebx
add esp, 0xc
jmp 0x4084e6
lea eax, [esp + 0x90]
lea ecx, [esp + 0x1a8]
push eax
push 0x418004
push ecx
lea edx, [esp + 0x1b4]
push 0x417ff4
push edx
call ebx
add esp, 0x14
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x74]
mov byte [esp + 0x74], al
call fcn.00409270
lea edi, [esp + 0x1a8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x1ac]
push ecx
lea ecx, [esp + 0x78]
call fcn.00409380
mov edi, 0x417fe8
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x7f8], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x417fe8
lea ecx, [esp + 0x78]
call fcn.004092c0
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x408552
mov eax, 0x4160f0
push eax
push 0
push 0x417fe0
push 0x417fd0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x40882d
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], dl
call fcn.00409270
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x7fc], 1
mov byte [esp + 0x18], al
call fcn.00409270
lea ecx, [esp + 0x28]
mov byte [esp + 0x7f8], 2
push ecx
mov ecx, ebp
call fcn.00407ec0
mov edx, dword [0x4160ec]
lea ecx, [esp + 0x38]
push edx
push 0
push eax
mov byte [esp + 0x804], 3
call fcn.00409000
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x7fc], 2
call fcn.00409270
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
call fcn.00408150
mov ecx, dword [0x4160ec]
mov byte [esp + 0x7f8], 4
push ecx
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.00409000
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x7fc], 2
call fcn.00409270
lea edx, [esp + 0xa4]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xa4]
push 0x104
push edx
rep stosd dword es:[edi], eax
push eax
call esi
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4c], al
call fcn.00409270
lea edi, [esp + 0xa4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x50]
call fcn.00409380
mov edi, 0x417fcc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4160ec]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x7f8], 5
push ecx
push edx
push 0x417fcc
lea ecx, [esp + 0x54]
call fcn.00409200
cmp eax, 0xffffffff
je 0x4087b0
mov ecx, dword [esp + 0x18]
mov byte [esp + eax + 0xa5], 0
test ecx, ecx
jne 0x4086b8
mov ecx, 0x4160f0
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4086c5
mov eax, 0x4160f0
push 0x417fc4
push ecx
lea edx, [esp + 0xac]
push eax
mov eax, dword [ebp + 4]
push edx
push 0x417fb0
push eax
call ebx
mov edx, dword [ebp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0x18
lea ecx, [esp + 0x3a8]
push ecx
push edx
call esi
cmp eax, 0xffffffff
jne 0x4087e9
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x40870c
mov eax, 0x4160f0
mov ecx, dword [ebp + 4]
push 0x417fc4
push eax
lea eax, [esp + 0xac]
push eax
push 0x417fa0
push ecx
call ebx
mov eax, dword [ebp + 4]
add esp, 0x14
lea edx, [esp + 0x3a8]
push edx
push eax
call esi
cmp eax, 0xffffffff
jne 0x4087e9
mov edx, dword [ebp + 4]
push 0x417fc4
lea ecx, [esp + 0xa8]
push 0x417670
push ecx
push 0x417fa0
push edx
call ebx
mov ecx, dword [ebp + 4]
add esp, 0x14
lea eax, [esp + 0x3a8]
push eax
push ecx
call esi
cmp eax, 0xffffffff
jne 0x4087e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea edx, [esp + 0x28]
push 0
push edx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x24]
push 0x40
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x7fc], 2
call fcn.00409270
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x7fc], 1
call fcn.00409270
mov byte [esp + 0x7f8], 0
push 1
lea ecx, [esp + 0x3c]
jmp 0x408ec7
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x7fc], 2
call fcn.00409270
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x7fc], 1
call fcn.00409270
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7fc], 0
call fcn.00409270
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
jmp 0x408de5
mov al, byte [0x41a588]
mov cl, byte [esp + 0x13]
mov byte [esp + 0x64], al
mov byte [esp + 0x58], al
xor eax, eax
xor edx, edx
mov dword [esp + 0x59], eax
mov dword [esp + 0x65], edx
mov dword [esp + 0x5d], eax
mov dword [esp + 0x69], edx
mov byte [esp + 0x38], cl
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x71], dl
mov byte [esp + 0x65], al
call fcn.00409270
lea edi, [esp + 0x2a8]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x3c]
push ebx
call fcn.00409440
test al, al
je 0x4088b0
mov edi, dword [esp + 0x3c]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x2a8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call fcn.00409420
mov edi, 0x417f98
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x7f8], 6
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x417f98
lea ecx, [esp + 0x40]
call fcn.004092c0
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4088e3
mov eax, 0x4160f0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea eax, [esp + 0x68]
push 0xa
push eax
push 0x41a588
push 0x417f8c
push 0x417f80
call esi
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x40890f
mov eax, 0x4160f0
push eax
lea ecx, [esp + 0x5c]
push 0xa
push ecx
push 0x41a588
push 0x417f6c
push 0x417f80
call esi
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], dl
call fcn.00409270
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x2c]
push ebx
call fcn.00409440
test al, al
je 0x40897d
mov edi, dword [esp + 0x2c]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0x64]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.00409420
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
mov byte [esp + 0x7fc], 7
call fcn.00409270
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
call fcn.00409440
test al, al
je 0x4089da
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00409420
mov eax, dword [esp + 0x30]
mov byte [esp + 0x7f8], 8
test eax, eax
je 0x4089f6
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x408a76
lea eax, [esp + 0x80]
mov ecx, ebp
push eax
call fcn.00407ec0
mov ecx, dword [0x4160ec]
mov byte [esp + 0x7f8], 9
push ecx
push 0
push eax
lea ecx, [esp + 0x34]
call fcn.00409000
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x7fc], 8
call fcn.00409270
lea edx, [esp + 0x80]
mov ecx, ebp
push edx
call fcn.00408150
mov ecx, dword [0x4160ec]
mov byte [esp + 0x7f8], 0xa
push ecx
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.00409000
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x7fc], 8
call fcn.00409270
lea edx, [esp + 0xa4]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xa4]
push 0x104
push edx
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4c], al
call fcn.00409270
lea edi, [esp + 0xa4]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x4c]
push ebx
call fcn.00409440
test al, al
je 0x408af5
mov edi, dword [esp + 0x4c]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0xa4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
call fcn.00409420
mov edi, 0x417fcc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4160ec]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x7f8], 0xb
push ecx
push edx
push 0x417fcc
lea ecx, [esp + 0x54]
call fcn.00409200
cmp eax, 0xffffffff
je 0x408e80
mov ecx, dword [esp + 0x18]
mov byte [esp + eax + 0xa5], 0
test ecx, ecx
jne 0x408b40
mov ecx, 0x4160f0
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x408b4d
mov eax, 0x4160f0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x417fc4
push ecx
mov ecx, dword [ebp + 4]
push eax
lea eax, [esp + 0xb0]
push eax
push 0x417fb0
push ecx
call esi
mov eax, dword [ebp + 4]
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0x18
lea edx, [esp + 0x3a8]
push edx
push eax
call edi
cmp eax, 0xffffffff
jne 0x408d2f
mov eax, dword [esp + 0x2c]
xor ebx, ebx
cmp eax, ebx
jne 0x408b9c
mov eax, 0x4160f0
mov edx, dword [ebp + 4]
push 0x417fc4
lea ecx, [esp + 0xa8]
push eax
push ecx
push 0x417fa0
push edx
call esi
mov ecx, dword [ebp + 4]
add esp, 0x14
lea eax, [esp + 0x3a8]
push eax
push ecx
call edi
cmp eax, 0xffffffff
jne 0x408d31
mov eax, dword [ebp + 4]
push 0x417fc4
lea edx, [esp + 0xa8]
push 0x417670
push edx
push 0x417fa0
push eax
call esi
mov edx, dword [ebp + 4]
add esp, 0x14
lea ecx, [esp + 0x3a8]
push ecx
push edx
call edi
cmp eax, 0xffffffff
jne 0x408d31
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea ecx, [esp + 0x28]
push ebx
push ecx
push 0x400
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0x24]
push 0x40
push ebx
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
je 0x408c63
mov al, byte [ecx - 1]
test al, al
je 0x408c59
cmp al, 0xff
je 0x408c59
dec al
mov byte [ecx - 1], al
jmp 0x408c63
dec ecx
push ecx
call fcn.004106c0
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], ebx
cmp ecx, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
je 0x408c93
mov al, byte [ecx - 1]
test al, al
je 0x408c89
cmp al, 0xff
je 0x408c89
dec al
mov byte [ecx - 1], al
jmp 0x408c93
dec ecx
push ecx
call fcn.004106c0
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x408cc3
mov al, byte [ecx - 1]
test al, al
je 0x408cb9
cmp al, 0xff
je 0x408cb9
dec al
mov byte [ecx - 1], al
jmp 0x408cc3
dec ecx
push ecx
call fcn.004106c0
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], ebx
cmp ecx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
je 0x408cf3
mov al, byte [ecx - 1]
test al, al
je 0x408ce9
cmp al, 0xff
je 0x408ce9
dec al
mov byte [ecx - 1], al
jmp 0x408cf3
dec ecx
push ecx
call fcn.004106c0
add esp, 4
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
cmp ecx, ebx
je 0x408ee2
mov al, byte [ecx - 1]
test al, al
je 0x408d20
cmp al, 0xff
je 0x408d20
dec al
mov byte [ecx - 1], al
jmp 0x408ee2
dec ecx
push ecx
call fcn.004106c0
add esp, 4
jmp 0x408ee2
xor ebx, ebx
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
je 0x408d55
mov al, byte [ecx - 1]
test al, al
je 0x408d4b
cmp al, 0xff
je 0x408d4b
dec al
mov byte [ecx - 1], al
jmp 0x408d55
dec ecx
push ecx
call fcn.004106c0
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], ebx
cmp ecx, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
je 0x408d85
mov al, byte [ecx - 1]
test al, al
je 0x408d7b
cmp al, 0xff
je 0x408d7b
dec al
mov byte [ecx - 1], al
jmp 0x408d85
dec ecx
push ecx
call fcn.004106c0
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x408db5
mov al, byte [ecx - 1]
test al, al
je 0x408dab
cmp al, 0xff
je 0x408dab
dec al
mov byte [ecx - 1], al
jmp 0x408db5
dec ecx
push ecx
call fcn.004106c0
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], ebx
cmp ecx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
je 0x408de5
mov al, byte [ecx - 1]
test al, al
je 0x408ddb
cmp al, 0xff
je 0x408ddb
dec al
mov byte [ecx - 1], al
jmp 0x408de5
dec ecx
push ecx
call fcn.004106c0
add esp, 4
mov ecx, dword [ebp + 4]
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
push 0
push 0
push ecx
push 0x417f64
push 0
call ebx
cmp eax, 0x20
jge 0x408e56
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x5e9]
mov byte [esp + 0x5e8], 0
rep stosd dword es:[edi], eax
mov edx, dword [ebp + 4]
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x5ec]
push 0x417f44
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x5e8]
push 5
push 0
push ecx
push 0x417f34
push 0
push 0
call ebx
mov ecx, dword [esp + 0x74]
test ecx, ecx
jmp 0x408d05
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x408e7c
mov al, byte [ecx - 1]
test al, al
je 0x408e72
cmp al, 0xff
je 0x408e72
dec al
mov byte [ecx - 1], al
mov al, 1
jmp 0x408ee4
dec ecx
push ecx
call fcn.004106c0
add esp, 4
mov al, 1
jmp 0x408ee4
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x7fc], 8
call fcn.00409270
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x7fc], 7
call fcn.00409270
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x7fc], 6
call fcn.00409270
mov byte [esp + 0x7f8], 0
push 1
lea ecx, [esp + 0x3c]
call fcn.00409270
push 1
lea ecx, [esp + 0x74]
mov dword [esp + 0x7fc], 0xffffffff
call fcn.00409270
xor al, al
mov ecx, dword [esp + 0x7f0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x7ec
ret