Function at 0x404c90
Capabilities:
Get file attributes
Get process heap force flags
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x427c41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov eax, dword [0x43416c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x94], eax
lea eax, [edi + 0x164]
push eax
lea ecx, [esp + 0x54]
call fcn.00403f50
xor ebx, ebx
push 0x18
mov ebp, 0xf
push str.WaffleSetupInformation
lea ecx, [esp + 0x3c]
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00401930
lea ecx, [esp + 0x18]
push 0x1a
push ecx
mov byte [esp + 0xa8], 1
call fcn.0040c2b0
lea edx, [esp + 0x3c]
push edx
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0xb4], 2
call fcn.00401c90
add esp, 0x14
mov eax, dword [esp + 0x30]
mov esi, 0x10
cmp eax, esi
jb 0x404d40
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004043d0
add esp, 4
cmp dword [esp + 0x4c], esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov byte [esp + 0xa0], 4
jb 0x404d67
mov edx, dword [esp + 0x38]
push edx
call fcn.004043d0
add esp, 4
push str.Information.reg
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x80]
push ecx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.00401d30
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0xb4], 6
call fcn.0040b930
add esp, 0x14
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0xac], 7
call fcn.00401840
cmp dword [esp + 0x30], esi
mov byte [esp + 0xa0], 6
jb 0x404dd4
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004043d0
add esp, 4
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0040cd10
add esp, 4
lea ecx, [esp + 0x10]
call fcn.0040cd30
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 8
call fcn.0040ce20
test al, al
lea ecx, [esp + 0x78]
je 0x404e17
push ebx
jmp 0x404e19
push 1
push ecx
lea ecx, [edi + 0x158]
call fcn.0040abc0
test al, al
jne 0x404e9c
lea ecx, [esp + 0x10]
mov byte [esp + 0xa0], 6
call fcn.0040cd60
cmp dword [esp + 0x90], esi
jb 0x404e50
mov edx, dword [esp + 0x7c]
push edx
call fcn.004043d0
add esp, 4
cmp dword [esp + 0x74], esi
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
jb 0x404e75
mov eax, dword [esp + 0x60]
push eax
call fcn.004043d0
add esp, 4
lea ecx, [esp + 0x50]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov dword [esp + 0xa0], 0xffffffff
call fcn.00404060
xor al, al
jmp 0x404f6d
cmp dword [esp + 0x74], esi
mov eax, dword [esp + 0x60]
jae 0x404eaa
lea eax, [esp + 0x60]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call ebp
cmp dword [esp + 0x74], esi
mov ecx, dword [esp + 0x60]
jae 0x404ec1
lea ecx, [esp + 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or eax, 2
push eax
push ecx
call edi
cmp dword [esp + 0x90], esi
mov eax, dword [esp + 0x7c]
jae 0x404edf
lea eax, [esp + 0x7c]
push eax
call ebp
cmp dword [esp + 0x90], esi
mov ecx, dword [esp + 0x7c]
jae 0x404ef3
lea ecx, [esp + 0x7c]
or eax, 2
push eax
push ecx
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0xa0], 6
call fcn.0040cd60
cmp dword [esp + 0x90], esi
jb 0x404f21
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.004043d0
add esp, 4
cmp dword [esp + 0x74], esi
mov edi, 0xf
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
jb 0x404f4b
mov edx, dword [esp + 0x60]
push edx
call fcn.004043d0
add esp, 4
lea ecx, [esp + 0x50]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov dword [esp + 0xa0], 0xffffffff
call fcn.00404060
mov al, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x88]
pop ebx
call fcn.0041def4
add esp, 0x94
ret