Function at 0x405390
Capabilities:
Get file attributes
Manipulate console buffer
Move file

Disassembly:
mov edx, 0x44eb58
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x405377
ret
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4487b1
push eax
mov eax, 0x11a0
mov dword fs:[0], esp
call fcn.004167c0
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x70c7ec], 0x6a6
jne 0x405516
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push edi
push edi
push edi
call dword [sym.imp.GDI32.dll_CreateDiscardableBitmap]
xor eax, eax
xor ecx, ecx
mov word [ebp - 0x12], cx
lea edx, [ebp - 0x10]
push edx
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x14]
push eax
push edi
lea ecx, [ebp - 0x9a8]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
call dword [sym.imp.KERNEL32.dll_SetHandleCount]
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], edi
mov byte [ebp - 0xbc], 0
push edi
push 0x4036bf
push 0x44eb58
mov dword [ebp - 4], edi
call fcn.00407c62
add esp, 0xc
call fcn.0040774b
push 1
push 0x44c760
lea ecx, [ebp - 0xa4]
call fcn.00407ce0
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x401284
call fcn.00407d5a
push edi
call fcn.00407f08
add esp, 4
push edi
call fcn.00407ed9
add esp, 4
push edi
push edi
call fcn.00407eef
push edi
push edi
call fcn.00408059
add esp, 0x10
jmp 0x405370
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidthI]
xor esi, esi
mov edi, edi
cmp esi, 0xabac
jge 0x405532
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
call ebx
inc esi
cmp esi, 0x139fa
jl 0x405520
mov eax, 0x11b1b
add dword [0x70c7ec], eax
call fcn.00405280
call fcn.004052a0
xor esi, esi
cmp dword [0x70c7ec], edi
jbe 0x4055ad
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
jmp 0x405570
mov ecx, dword [0x70d18c]
mov dl, byte [ecx + esi + 0x11b1b]
mov eax, dword [0x7096f4]
mov byte [eax + esi], dl
cmp dword [0x70c7ec], 0xa8
jne 0x4055a2
push 0
push 0
push 0
push 0
call edi
push 0x4038ec
call ebx
inc esi
cmp esi, dword [0x70c7ec]
jb 0x405570
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
xor eax, eax
mov dword [ebp - 0x10], eax
mov ecx, dword [0x70c7ec]
add ecx, eax
cmp ecx, 0xe
jne 0x405652
push 0x30
lea edx, [ebp - 0xd4]
push 0
push edx
mov dword [ebp - 0xd8], 0
call fcn.0040bb10
add esp, 0xc
push 0
lea eax, [ebp - 0xd8]
push eax
push 0
call esi
push 0
push 0
push 0
push 0
call edi
push 0
lea ecx, [ebp - 0x5a8]
push ecx
push 0
call ebx
push 0
push 0
lea edx, [ebp - 0x11a8]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push 0
push 0x403910
push 0x40392c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov eax, dword [ebp - 0x10]
inc eax
cmp eax, 0x4f95a3
mov dword [ebp - 0x10], eax
jl 0x4055c4
mov edi, dword [sym.imp.GDI32.dll_GetCharABCWidthsW]
mov esi, 0x4f4
lea esp, [esp]
lea eax, [ebp - 0xa4]
push eax
push 0
push 0
push 0
call edi
sub esi, 1
jne 0x405670
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
lea ebx, [ebx]
push 0
call edi
cmp esi, 0x26c0e8
jge 0x4059ef
mov dword [ebp - 0x98], 0x5fe961e3
mov dword [ebp - 0x58], 0x49a4f52f
mov dword [ebp - 0x7c], 0x7e2898d3
mov dword [ebp - 0x24], 0x4065fc82
mov dword [ebp - 0x74], 0x18c80701
mov dword [ebp - 0x2c], 0x5f9d0d56
mov dword [ebp - 0x6c], 0x1c1f4481
mov dword [ebp - 0x8c], 0x4b1ef013
mov dword [ebp - 0x18], 0x2a1f0e44
mov dword [ebp - 0x34], 0xdfeb72e
mov dword [ebp - 0x80], 0x2fc2bc74
mov dword [ebp - 0x94], 0x23a90445
mov dword [ebp - 0x44], 0x781ab236
mov dword [ebp - 0x28], 0x40f5be66
mov dword [ebp - 0x50], 0x2b7518e3
mov dword [ebp - 0x54], 0x38be9568
mov dword [ebp - 0x48], 0x54010a01
mov dword [ebp - 0x70], 0x10080fc0
mov dword [ebp - 0x40], 0x7550b6e6
mov dword [ebp - 0x1c], 0x3c714104
mov dword [ebp - 0x20], 0x77d3eb8e
mov dword [ebp - 0x38], 0x7882e4db
mov dword [ebp - 0x68], 0x41f8a832
mov dword [ebp - 0x64], 0x6ffa8950
mov dword [ebp - 0x3c], 0x8052dd4
mov dword [ebp - 0x84], 0x4144447d
mov dword [ebp - 0x30], 0x16d15ea0
mov dword [ebp - 0x90], 0x458e5587
mov dword [ebp - 0x5c], 0x78ea0dd8
mov dword [ebp - 0x88], 0x69b1a7da
mov dword [ebp - 0x14], 0xfe4e232
mov dword [ebp - 0x60], 0x304b5a37
mov dword [ebp - 0x4c], 0x693177cf
mov dword [ebp - 0x78], 0xdd9aa86
mov dword [ebp - 0x10], 0x5102a200
add dword [ebp - 0x7c], 0x15585d82
add dword [ebp - 0x24], 0x2beaf791
mov eax, 0x4638e742
mul dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
mov eax, 0x4cb949e
mul dword [ebp - 0x98]
mov eax, dword [ebp - 0x98]
sub dword [ebp - 0x74], 0x2ad05849
sub dword [ebp - 0x58], 0x2940914f
mov eax, 0x5db85ec5
mul dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
add dword [ebp - 0x24], 0x7e415add
add dword [ebp - 0x58], 0x63dd9a3d
mov eax, 0x2094f93
mul dword [ebp - 0x98]
mov eax, dword [ebp - 0x98]
sub dword [ebp - 0x7c], 0x77a1f0c1
mov eax, 0x347bf641
mul dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov eax, 0x1ac9057f
mul dword [ebp - 0x7c]
mov eax, dword [ebp - 0x7c]
mov eax, 0x695a6621
mul dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov eax, 0x5cf96a1a
mul dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov eax, 0x49485715
mul dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
mov eax, 0x198ae27d
mul dword [ebp - 0x74]
mov eax, dword [ebp - 0x74]
sub dword [ebp - 0x6c], 0x4efd6398
sub dword [ebp - 0x7c], 0x45ea3441
sub dword [ebp - 0x34], 0x23587e4a
mov eax, 0x1651456c
mul dword [ebp - 0x98]
mov eax, dword [ebp - 0x98]
sub dword [ebp - 0x7c], 0x14f0fd28
mov eax, 0x36ebc3ef
mul dword [ebp - 0x74]
mov eax, dword [ebp - 0x74]
mov eax, 0x644c396f
mul dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
mov eax, 0x136de5cf
mul dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
sub dword [ebp - 0x70], 0x6391070f
add dword [ebp - 0x6c], 0x1de85449
sub dword [ebp - 0x24], 0x28c193fd
sub dword [ebp - 0x54], 0x226a8dc1
mov eax, 0x2dc77eb1
mul dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x44], 0x290e3153
sub dword [ebp - 0x54], 0x19153a5c
mov eax, 0x6f6f8864
mul dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
mov eax, 0x7f5bc4b0
mul dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
add dword [ebp - 0x70], 0x17e4fe84
add dword [ebp - 0x44], 0x544f1c61
mov eax, 0x6f7a4a17
mul dword [ebp - 0x54]
mov eax, dword [ebp - 0x54]
add dword [ebp - 0x80], 0x7d69ca54
sub dword [ebp - 0x80], 0x5e2b8f7c
add dword [ebp - 0x2c], 0x6e36358c
mov eax, 0x6a434c3b
mul dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, 0x57b80b8b
mul dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
sub dword [ebp - 0x18], 0x650595a0
mov eax, 0x653c0db0
mul dword [ebp - 0x70]
mov eax, dword [ebp - 0x70]
sub dword [ebp - 0x80], 0x3798a8b9
mov eax, 0x4ca06c09
mul dword [ebp - 0x64]
mov eax, dword [ebp - 0x64]
add dword [ebp - 0x68], 0xc81bb7b
sub dword [ebp - 0x48], 0x5503528
add dword [ebp - 0x30], 0x21e87b87
sub dword [ebp - 0x30], 0x7988a04e
add dword [ebp - 0x84], 0x1b47b26c
mov eax, 0x147adc58
mul dword [ebp - 0x64]
mov eax, dword [ebp - 0x64]
add dword [ebp - 0x80], 0x772b710
add dword [ebp - 0x8c], 0x3660aa67
sub dword [ebp - 0x98], 0x37bbfa04
sub dword [ebp - 0x94], 0x47917d1c
add dword [ebp - 0x70], 0x4791255d
add dword [ebp - 0x38], 0x517b5747
add dword [ebp - 0x40], 0x34cce873
add dword [ebp - 0x28], 0xf3517de
add dword [ebp - 0x94], 0x5e86a2e5
sub dword [ebp - 0x44], 0x5e321aa3
sub dword [ebp - 0x20], 0x506489dd
sub dword [ebp - 0x44], 0x517f47b0
mov eax, 0x4a0299f9
mul dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp esi, 0x2735c9
jg 0x405a04
inc esi
cmp esi, 0x1f6e7e0
jl 0x405690
call fcn.004050e0
xor edx, edx
jmp 0x405a10
cmp edx, 0x26
jne 0x405a1a
call fcn.00405260
inc edx
cmp edx, 0x409495
jl 0x405a10
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
mov ebx, 0x7b
cmp dword [0x70c7ec], 0x86
jne 0x405a4a
push 0
call esi
push 0
push 0
call edi
sub ebx, 1
jne 0x405a34
mov esi, dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov edi, dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x10], 0x180ef
jmp 0x405a70
cmp dword [0x70c7ec], 0x1f
jne 0x405a9b
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0
call esi
push 0
push 0
call edi
push 0
push 0x403954
push 0x403968
call ebx
sub dword [ebp - 0x10], 1
jne 0x405a70
push 0x403984
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call fcn.00405360
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret