Function at 0x405250
Capabilities:
Get file attributes
Manipulate console buffer

Disassembly:
mov edx, 0x43fb58
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x405237
ret
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x439e01
push eax
mov dword fs:[0], esp
sub esp, 0x9a0
push ebx
push esi
xor ebx, ebx
cmp dword [0x6fd7ec], 0x6a6
push edi
jne 0x4053f0
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push ebx
push ebx
push ebx
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 ebx
lea ecx, [ebp - 0x9a8]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_GetEventLogInformation]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetHandleCount]
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], ebx
mov byte [ebp - 0xbc], bl
push ebx
push 0x4036af
push 0x43fb58
mov dword [ebp - 4], ebx
call fcn.00407b02
add esp, 0xc
lea ecx, [ebp - 0x94]
call fcn.00407b1c
lea ecx, [ebp - 0x94]
call fcn.00407bfa
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x14], 0x4037ac
call fcn.00407b2d
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], 0x4023f4
call fcn.00407bfa
push ebx
call fcn.00407da8
add esp, 4
push ebx
call fcn.00407d79
add esp, 4
push ebx
push ebx
call fcn.00407d8f
push ebx
push ebx
call fcn.00407ef9
add esp, 0x10
jmp 0x405230
mov edi, dword [sym.imp.GDI32.dll_GetCharWidthI]
xor esi, esi
cmp esi, 0xabac
jge 0x40540a
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push ebx
push ebx
call edi
inc esi
cmp esi, 0x139fa
jl 0x4053f8
mov eax, 0x11b1b
add dword [0x6fd7ec], eax
call fcn.00405140
call fcn.00405160
xor esi, esi
cmp dword [0x6fd7ec], ebx
jbe 0x405479
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x405440
mov edx, dword [0x6fe18c]
mov al, byte [edx + esi + 0x11b1b]
mov ecx, dword [0x6fa6f4]
mov byte [ecx + esi], al
cmp dword [0x6fd7ec], 0xa8
jne 0x405470
push ebx
push ebx
push ebx
push ebx
call edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
inc esi
cmp esi, dword [0x6fd7ec]
jb 0x405440
mov esi, dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [0x6fd7ec]
add edx, eax
cmp edx, 0xe
jne 0x405513
push 0x30
lea eax, [ebp - 0xd4]
push 0
push eax
mov dword [ebp - 0xd8], 0
call fcn.0040ad00
add esp, 0xc
push 0
lea ecx, [ebp - 0xd8]
push ecx
push 0
call esi
lea edx, [ebp - 0x11]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
push 0
push 0
push 0
call edi
push 0
push 0
lea eax, [ebp - 0x9a8]
push eax
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push 0
push 0x4037bc
push 0x4037d8
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 0x405490
mov edi, dword [sym.imp.GDI32.dll_GetCharABCWidthsW]
mov esi, 0x4f4
lea ecx, [ecx]
lea ecx, [ebp - 0x94]
push ecx
push 0
push 0
push 0
call edi
sub esi, 1
jne 0x405530
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
lea ebx, [ebx]
push 0
call edi
cmp esi, 0x26c0e8
jge 0x4058a3
mov dword [ebp - 0x1c], 0x5fe961e3
mov dword [ebp - 0x5c], 0x49a4f52f
mov dword [ebp - 0x48], 0x7e2898d3
mov dword [ebp - 0x68], 0x4065fc82
mov dword [ebp - 0x38], 0x18c80701
mov dword [ebp - 0x9c], 0x5f9d0d56
mov dword [ebp - 0x28], 0x1c1f4481
mov dword [ebp - 0x20], 0x4b1ef013
mov dword [ebp - 0x18], 0x2a1f0e44
mov dword [ebp - 0x70], 0xdfeb72e
mov dword [ebp - 0x84], 0x2fc2bc74
mov dword [ebp - 0x30], 0x23a90445
mov dword [ebp - 0x78], 0x781ab236
mov dword [ebp - 0x2c], 0x40f5be66
mov dword [ebp - 0x54], 0x2b7518e3
mov dword [ebp - 0x80], 0x38be9568
mov dword [ebp - 0x4c], 0x54010a01
mov dword [ebp - 0x74], 0x10080fc0
mov dword [ebp - 0x44], 0x7550b6e6
mov dword [ebp - 0x88], 0x3c714104
mov dword [ebp - 0x24], 0x77d3eb8e
mov dword [ebp - 0x3c], 0x7882e4db
mov dword [ebp - 0x6c], 0x41f8a832
mov dword [ebp - 0x60], 0x6ffa8950
mov dword [ebp - 0x98], 0x8052dd4
mov dword [ebp - 0x58], 0x4144447d
mov dword [ebp - 0x34], 0x16d15ea0
mov dword [ebp - 0x50], 0x458e5587
mov dword [ebp - 0xa0], 0x78ea0dd8
mov dword [ebp - 0x40], 0x69b1a7da
mov dword [ebp - 0x14], 0xfe4e232
mov dword [ebp - 0x64], 0x304b5a37
mov dword [ebp - 0xa4], 0x693177cf
mov dword [ebp - 0x7c], 0xdd9aa86
mov dword [ebp - 0x10], 0x5102a200
add dword [ebp - 0x48], 0x15585d82
add dword [ebp - 0x68], 0x2beaf791
mov eax, 0x4638e742
mul dword [ebp - 0x5c]
mov eax, dword [ebp - 0x5c]
mov eax, 0x4cb949e
mul dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x38], 0x2ad05849
sub dword [ebp - 0x5c], 0x2940914f
mov eax, 0x5db85ec5
mul dword [ebp - 0x5c]
mov eax, dword [ebp - 0x5c]
add dword [ebp - 0x68], 0x7e415add
add dword [ebp - 0x5c], 0x63dd9a3d
mov eax, 0x2094f93
mul dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x48], 0x77a1f0c1
mov eax, 0x347bf641
mul dword [ebp - 0x70]
mov eax, dword [ebp - 0x70]
mov eax, 0x1ac9057f
mul dword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
mov eax, 0x695a6621
mul dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov eax, 0x5cf96a1a
mul dword [ebp - 0x70]
mov eax, dword [ebp - 0x70]
mov eax, 0x49485715
mul dword [ebp - 0x78]
mov eax, dword [ebp - 0x78]
mov eax, 0x198ae27d
mul dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
sub dword [ebp - 0x28], 0x4efd6398
sub dword [ebp - 0x48], 0x45ea3441
sub dword [ebp - 0x70], 0x23587e4a
mov eax, 0x1651456c
mul dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x48], 0x14f0fd28
mov eax, 0x36ebc3ef
mul dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov eax, 0x644c396f
mul dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov eax, 0x136de5cf
mul dword [ebp - 0x78]
mov eax, dword [ebp - 0x78]
sub dword [ebp - 0x74], 0x6391070f
add dword [ebp - 0x28], 0x1de85449
sub dword [ebp - 0x68], 0x28c193fd
sub dword [ebp - 0x80], 0x226a8dc1
mov eax, 0x2dc77eb1
mul dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0x78], 0x290e3153
sub dword [ebp - 0x80], 0x19153a5c
mov eax, 0x6f6f8864
mul dword [ebp - 0x78]
mov eax, dword [ebp - 0x78]
mov eax, 0x7f5bc4b0
mul dword [ebp - 0x78]
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], 0x17e4fe84
add dword [ebp - 0x78], 0x544f1c61
mov eax, 0x6f7a4a17
mul dword [ebp - 0x80]
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x84], 0x7d69ca54
sub dword [ebp - 0x84], 0x5e2b8f7c
add dword [ebp - 0x9c], 0x6e36358c
mov eax, 0x6a434c3b
mul dword [ebp - 0x88]
mov eax, dword [ebp - 0x88]
mov eax, 0x57b80b8b
mul dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x18], 0x650595a0
mov eax, 0x653c0db0
mul dword [ebp - 0x74]
mov eax, dword [ebp - 0x74]
sub dword [ebp - 0x84], 0x3798a8b9
mov eax, 0x4ca06c09
mul dword [ebp - 0x60]
mov eax, dword [ebp - 0x60]
add dword [ebp - 0x6c], 0xc81bb7b
sub dword [ebp - 0x4c], 0x5503528
add dword [ebp - 0x34], 0x21e87b87
sub dword [ebp - 0x34], 0x7988a04e
add dword [ebp - 0x58], 0x1b47b26c
mov eax, 0x147adc58
mul dword [ebp - 0x60]
mov eax, dword [ebp - 0x60]
add dword [ebp - 0x84], 0x772b710
add dword [ebp - 0x20], 0x3660aa67
sub dword [ebp - 0x1c], 0x37bbfa04
sub dword [ebp - 0x30], 0x47917d1c
add dword [ebp - 0x74], 0x4791255d
add dword [ebp - 0x3c], 0x517b5747
add dword [ebp - 0x44], 0x34cce873
add dword [ebp - 0x2c], 0xf3517de
add dword [ebp - 0x30], 0x5e86a2e5
sub dword [ebp - 0x78], 0x5e321aa3
sub dword [ebp - 0x24], 0x506489dd
sub dword [ebp - 0x78], 0x517f47b0
mov eax, 0x4a0299f9
mul dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp esi, 0x2735c9
jg 0x4058b8
inc esi
cmp esi, 0x1f6e7e0
jl 0x405550
call fcn.00404fa0
xor edx, edx
nop
cmp edx, 0x26
jne 0x4058ca
call fcn.00405120
inc edx
cmp edx, 0x409495
jl 0x4058c0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
mov ebx, 0x7b
cmp dword [0x6fd7ec], 0x86
jne 0x4058fa
push 0
call esi
push 0
push 0
call edi
sub ebx, 1
jne 0x4058e4
mov esi, dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov edi, dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMemoryResourceNotification]
mov dword [ebp - 0x10], 0x180ef
jmp 0x405920
cmp dword [0x6fd7ec], 0x1f
jne 0x405941
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
call esi
push 0
push 0
call edi
push 0
call ebx
sub dword [ebp - 0x10], 1
jne 0x405920
push 0x403800
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call fcn.00405220
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret