Function at 0x41b590
Capabilities:
Check mutex on windows
Enumerate gui resources
Get common file path
Get hostname
Manipulate console buffer
Query environment variable
Read .ini file

Disassembly:
mov eax, 0x104c
call fcn.00411b70
cmp dword [0x2b75d04], 0x422
push ebx
push ebp
push esi
push edi
jne 0x41b5fd
push 0
push 0
push 0
call fcn.00403d3d
add esp, 0xc
push 0x403738
push 0
call fcn.00403d3d
push 0
call fcn.0041add6
fldz
add esp, 8
fstp dword [esp]
call fcn.00403af0
fstp st(0)
push 0x403744
push 0x403748
push 0x44c4f0
call fcn.00403d3d
add esp, 0xc
push 0
push 0
call fcn.00403e9f
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
xor esi, esi
cmp esi, 0xc0a
jne 0x41b618
mov eax, 0x38d6
add dword [0x2b75d04], eax
cmp dword [0x2b75d04], 0xd04
jne 0x41b62c
push 0
push 0
push 0
call edi
inc esi
cmp esi, 0x33a146
jl 0x41b605
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp esi, 0x1c275
jge 0x41b651
push 0
call ebp
cmp esi, 0x1ea070f3
jle 0x41b669
cmp edi, 0xacd436
je 0x41b669
cmp ebx, 0xad1af0c
jne 0x41b672
inc esi
cmp esi, 0x8c238a18
jb 0x41b645
mov eax, dword [0x2b75d04]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
mov edi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
mov ebx, dword [sym.imp.KERNEL32.dll_SearchPathA]
mov dword [0x2b757e8], eax
mov eax, dword [0x2b75d04]
mov dword [esp + 0x14], 0x962ae8
lea ebx, [ebx]
cmp eax, 3
jne 0x41b6c7
lea ecx, [esp + 0x58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x2b75d04]
cmp eax, 0xd
jne 0x41b748
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call edi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x5c]
push eax
push 0
call ebp
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x45c]
push edx
push 0
push 0x403750
push 0x4037c0
push 0x4037a4
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x403868
push 0
lea eax, [esp + 0x860]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x4038b8
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
mov eax, dword [0x2b75d04]
dec dword [esp + 0x14]
jne 0x41b6b0
xor esi, esi
test eax, eax
je 0x41b799
mov edi, dword [sym.imp.KERNEL32.dll__lclose]
mov ebx, dword [sym.imp.KERNEL32.dll_FatalAppExitA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp eax, 0xfe
jne 0x41b77e
push 0
call edi
push 0x403908
push 0
call ebx
call fcn.0041b2d0
mov eax, dword [0x2b75d04]
cmp eax, 0x29
jne 0x41b794
call ebp
mov eax, dword [0x2b75d04]
inc esi
cmp esi, eax
jb 0x41b76a
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x41b7d2
push 0x403930
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x40384c
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, dword [sym.imp.USER32.dll_LoadMenuA]
mov esi, 0x8dc
push 0
push 0
call edi
dec esi
jne 0x41b7dd
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 0x25865
mov ebp, 0x15a
cmp dword [0x2b75d04], ebp
jne 0x41b808
push 0
call ebx
push 0
push 0
call esi
dec edi
jne 0x41b7f6
mov byte [0x44c4f0], 0
call fcn.0041ae10
call fcn.0041b560
call fcn.0041b2b0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov ebp, 0xdd7b3
jmp 0x41b840
cmp dword [0x2b75d04], 0x21
jne 0x41b869
call esi
push 0
push 0
lea edx, [esp + 0x860]
push edx
push 0
call edi
lea eax, [esp + 0x18]
push eax
push 0x40397c
push 0
call ebx
dec ebp
jne 0x41b840
call fcn.0041b500
cmp dword [0x2b75d04], 0x58c
mov byte [0x44c4f1], 0x73
jne 0x41b8f9
lea ecx, [esp + 0x58]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
push ebp
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push 0x30
lea edx, [esp + 0x2c]
push ebp
push edx
mov dword [esp + 0x30], ebp
call fcn.00409540
add esp, 0xc
push ebp
lea eax, [esp + 0x28]
push eax
push 0x4039b0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push 0x4039c4
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
lea ecx, [esp + 0x18]
push ecx
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
call fcn.0041b2c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104c
ret