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

Disassembly:
mov edx, 0x446988
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4036a7
ret
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4411db
push eax
mov dword fs:[0], esp
sub esp, 0x9a0
push ebx
push esi
xor esi, esi
cmp dword [0x70461c], 0x6a6
push edi
jne 0x4037fb
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
push esi
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 esi
lea ecx, [ebp - 0x9a8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_GetEventLogInformation]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
call dword [sym.imp.KERNEL32.dll_SetHandleCount]
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], esi
mov byte [ebp - 0xbc], 0
push esi
push 0x402d87
push 0x446988
mov dword [ebp - 4], esi
call fcn.00404192
add esp, 0xc
lea ecx, [ebp - 0x94]
call fcn.004041ac
lea ecx, [ebp - 0x94]
call fcn.0040426d
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x14], 0x402e84
call fcn.004041bd
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], 0x4022cc
call fcn.0040426d
push esi
call fcn.004043ae
add esp, 4
push esi
call fcn.0040437f
add esp, 4
push esi
push esi
call fcn.00404395
add esp, 8
jmp 0x4036a0
mov edi, dword [sym.imp.GDI32.dll_GetCharWidthI]
cmp esi, 0xabac
jge 0x403817
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
call edi
inc esi
cmp esi, 0x139fa
jl 0x403801
mov eax, 0x11b1b
add dword [0x70461c], eax
call fcn.004035b0
call fcn.004035d0
xor esi, esi
cmp dword [0x70461c], esi
jbe 0x40388e
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x403850
mov ecx, dword [0x704fbc]
mov dl, byte [ecx + esi + 0x11b1b]
mov eax, dword [0x701524]
mov byte [eax + esi], dl
cmp dword [0x70461c], 0xa8
jne 0x403885
push 0
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
inc esi
cmp esi, dword [0x70461c]
jb 0x403850
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 ecx, dword [0x70461c]
add ecx, eax
cmp ecx, 0xe
jne 0x403928
push 0x30
lea edx, [ebp - 0xd4]
push 0
push edx
mov dword [ebp - 0xd8], 0
call fcn.00405ff0
add esp, 0xc
push 0
lea eax, [ebp - 0xd8]
push eax
push 0
call esi
lea ecx, [ebp - 0x11]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
push 0
push 0
push 0
call edi
push 0
push 0
lea edx, [ebp - 0x9a8]
push edx
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push 0
push 0x402e94
push 0x402eb0
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 0x4038a5
mov edi, dword [sym.imp.GDI32.dll_GetCharABCWidthsW]
mov esi, 0x4f4
lea eax, [ebp - 0x94]
push eax
push 0
push 0
push 0
call edi
sub esi, 1
jne 0x403942
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
lea esp, [esp]
push 0
call edi
cmp esi, 0x26c0e8
jge 0x403cb3
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 0x403cc8
inc esi
cmp esi, 0x1f6e7e0
jl 0x403960
call fcn.00403410
xor edx, edx
nop
cmp edx, 0x26
jne 0x403cda
call fcn.00403590
inc edx
cmp edx, 0x409495
jl 0x403cd0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
mov ebx, 0x7b
cmp dword [0x70461c], 0x86
jne 0x403d0a
push 0
call esi
push 0
push 0
call edi
sub ebx, 1
jne 0x403cf4
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 0x403d30
cmp dword [0x70461c], 0x1f
jne 0x403d51
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0
call esi
push 0
push 0
call edi
push 0
call ebx
sub dword [ebp - 0x10], 1
jne 0x403d30
push 0x402ed8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call fcn.00403690
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret