Function at 0x4093f0
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 [0x478784], 0x16
jne 0x409441
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 [0x478784], 0x9e
jne 0x409478
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 0x409489
inc edi
cmp edi, 0x332beaf6
jl 0x409410
mov edx, dword [0x478784]
mov eax, dword [0x45bbe0]
push 0x426010
push edx
push eax
call fcn.00409030
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
xor esi, esi
mov edi, edi
cmp dword [0x478784], 0x10
jne 0x4094d3
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 0x4094e0
call fcn.004092f0
inc esi
cmp esi, 0x3e79e
jl 0x4094b0
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 [0x478784], 0xc01
jne 0x409550
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 0x409510
mov cl, 0x6d
mov al, 0x6c
push 0x451528
mov byte [0x451528], cl
mov byte [0x451529], 0x73
mov byte [0x451532], al
mov byte [0x45152e], 0x32
mov byte [0x45152a], 0x69
mov byte [0x45152d], 0x33
mov byte [0x451533], 0
mov byte [0x45152c], 0x67
mov byte [0x451530], 0x64
mov byte [0x45152b], cl
mov byte [0x451531], al
mov byte [0x45152f], 0x2e
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x478784], 0x1144
pop edi
pop esi
pop ebp
pop ebx
jne 0x409653
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