Function at 0x41f960
Capabilities:
Check mutex on windows
Delete file
Enumerate gui resources
Get disk information
Get file attributes
Move file
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4250a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2518
call fcn.0041e810
cmp dword [0x7ffbb0], 0x12
push ebx
push ebp
push esi
push edi
jne 0x41f9ee
xor ebx, ebx
push ebx
push ebx
call fcn.004098fb
push ebx
call fcn.0041f16e
add esp, 0xc
lea eax, [esp + 0x90]
push eax
call fcn.004065b0
lea esi, [esp + 0x40]
mov dword [esp + 0x2534], ebx
call fcn.00406e70
sub esp, 0x1c
mov byte [esp + 0x2550], 1
mov ecx, esp
mov dword [esp + 0x30], esp
push ebx
call fcn.00406130
mov ecx, esi
call fcn.00406ea0
push ebx
call fcn.0040a171
add esp, 4
call fcn.0040a193
mov eax, 0x38d6
add dword [0x7ffbb0], eax
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x74]
xor ebx, ebx
xor esi, esi
cmp esi, 0x1c41e
jge 0x41fa19
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, 0x1ea07e81
jle 0x41fa31
cmp edi, 0xad13aa
je 0x41fa31
cmp ebp, 0x8cb0c58
jne 0x41fa3a
inc esi
cmp esi, 0x8c6ffc0e
jb 0x41fa05
mov ecx, dword [0x7ffbb0]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov ebp, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov esi, dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
mov dword [0x7fc020], eax
mov eax, dword [0x7ffbb0]
mov dword [esp + 0x14], 0x963510
lea esp, [esp]
cmp eax, 3
jne 0x41fa81
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [0x7ffbb0]
cmp eax, 0xbc5
jne 0x41fc0d
push ebx
push ebx
push ebx
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
call ebp
push ebx
push ebx
lea edx, [esp + 0xd30]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push ebx
lea eax, [esp + 0x92c]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_QueryDepthSList]
push ebx
push ebx
push ebx
call esi
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x4c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
push ebx
push ebx
push ebx
call esi
lea eax, [esp + 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_RtlCaptureContext]
push ebx
lea ecx, [esp + 0x112c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebx
lea edx, [esp + 0x192c]
push edx
push 0x404450
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommState]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFix]
push ebx
lea eax, [esp + 0x52c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
lea ecx, [esp + 0x2c]
push ecx
xor eax, eax
lea edx, [esp + 0x6c]
push edx
push ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push 0x4044a8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebx
lea eax, [esp + 0x1d2c]
push eax
push 0x4044c8
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push 0x404588
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateJobSet]
push 0x404650
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x404660
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push ebx
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
mov eax, dword [0x7ffbb0]
dec dword [esp + 0x14]
jne 0x41fa70
xor esi, esi
cmp eax, ebx
jbe 0x41fc3e
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
call fcn.0041f660
mov eax, dword [0x7ffbb0]
cmp eax, 0x29
jne 0x41fc39
call edi
mov eax, dword [0x7ffbb0]
inc esi
cmp esi, eax
jb 0x41fc23
cmp eax, 0x19c
jne 0x41fc84
push 0x4046a0
call dword [sym.imp.KERNEL32.dll_FindAtomA]
lea edx, [esp + 0x14]
push edx
push ebx
push 0x4046a8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeExW]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x404720
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push ebx
push 0x404730
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edi, dword [sym.imp.USER32.dll_GetMenuBarInfo]
mov esi, 0x8dc
nop
push ebx
push ebx
push ebx
push ebx
call edi
dec esi
jne 0x41fc90
mov esi, dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
mov edi, 0x250a9
cmp dword [0x7ffbb0], 0x92
jne 0x41fcb8
push 0x404754
push ebx
call esi
dec edi
jne 0x41fca4
mov byte [0x45eeb8], bl
call fcn.0041f1a0
call fcn.0041f930
call fcn.0041f640
mov esi, dword [sym.imp.USER32.dll_DefDlgProcA]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp + 0x14], 0xf3743
lea ebx, [ebx]
cmp dword [0x7ffbb0], 0x21
jne 0x41fd13
push ebx
push ebx
push ebx
push ebx
call esi
push ebx
push ebx
lea eax, [esp + 0x1d30]
push eax
push ebx
call edi
push 0x404770
call ebp
dec dword [esp + 0x14]
jne 0x41fcf0
call fcn.0041f8d0
cmp dword [0x7ffbb0], 0xd5c
mov byte [0x45eeb9], 0x73
jne 0x41fdd7
lea ecx, [esp + 0x258]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebx
lea eax, [esp + 0x52c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
push 0x404790
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push ebx
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push 0x4047a0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
lea ecx, [esp + 0x138]
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
push ebx
call dword [sym.imp.KERNEL32.dll_ZombifyActCtx]
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
push ebx
push ebx
push ebx
push 0x4047d8
push 0x4047e4
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
call fcn.0041f650
mov ecx, dword [esp + 0x252c]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret