Function at 0x409490
Capabilities:
Copy file
Get common file path
Read .ini file
Terminate thread

Disassembly:
sub esp, 0x918
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DebugBreak]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
xor edi, edi
mov edi, edi
push 0
call esi
cmp dword [0x45f844], 0x16
jne 0x4094e1
push 0
push 0
call ebx
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
call esi
cmp dword [0x45f844], 0x9e
jne 0x409518
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
cmp edi, 0x3775ee
jg 0x409529
inc edi
cmp edi, 0x332beaf6
jl 0x4094b0
mov edx, dword [0x45f844]
mov eax, dword [0x442ca0]
push 0x427010
push edx
push eax
call fcn.004090c0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnfix]
xor esi, esi
cmp dword [0x45f844], 0x10
jne 0x409573
push 0
call edi
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
call ebx
lea edx, [esp + 0x28]
push edx
call ebp
cmp esi, 0x1e673
jne 0x409580
call fcn.00409390
inc esi
cmp esi, 0x3e79e
jl 0x409554
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
mov dword [esp + 0x10], 0xdd9a7
lea esp, [esp]
cmp dword [0x45f844], 0xc01
jne 0x4095f0
push 0
push 0
call esi
call edi
push 0
push 0
push 0
push 0
call ebx
push 0
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
call ebp
sub dword [esp + 0x10], 1
jne 0x4095b0
mov cl, 0x6d
mov al, 0x6c
push 0x4385e8
mov byte [0x4385e8], cl
mov byte [0x4385e9], 0x73
mov byte [0x4385f2], al
mov byte [0x4385ee], 0x32
mov byte [0x4385ea], 0x69
mov byte [0x4385ed], 0x33
mov byte [0x4385f3], 0
mov byte [0x4385ec], 0x67
mov byte [0x4385f0], 0x64
mov byte [0x4385eb], cl
mov byte [0x4385f1], al
mov byte [0x4385ef], 0x2e
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x45f844], 0x1144
pop edi
pop esi
pop ebp
pop ebx
jne 0x4096e3
push 0x401390
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 0
push 0
lea edx, [esp + 0x120]
push edx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
push 0
push 0
push 0
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push 0
push 0
push 0x4013a8
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
push 0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFix]
push 0
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
add esp, 0x918
ret