Function at 0x401f28d9
Capabilities:
Enumerate pe sections
Get file size
Inspect section memory permissions
Timestomp file

Disassembly:
push 0x50
push 0x401f2e48
call fcn.401f10e0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call fcn.401f5b09
test eax, eax
je 0x401f2e1c
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [ebp - 0x40], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x30]
call fcn.401f5a15
cmp dword [ebp - 0x40], 0xffffffff
jne 0x401f2e08
mov eax, 0x10000
push eax
push eax
call fcn.401f5c67
mov dword [ebp - 0x58], eax
cmp eax, ebx
je 0x401f2e13
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x30]
call fcn.401f1f29
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x401f2dfe
mov edi, dword [ebp - 0x3c]
push dword [edi + 0x1c]
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.401f1a55
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x401f2dfe
mov dword [ebp + 8], ebx
mov dword [ebp - 0x1c], ebx
test dword [edi + 4], 0x800000
jne 0x401f29a0
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x401f29a0
lea ecx, [ebp - 0x60]
push ecx
push eax
call fcn.401f1cd3
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x44], ebx
mov esi, dword [ebp + 0xc]
cmp esi, 0xffffffff
je 0x401f29be
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
cmp eax, dword [edi + 0x1c]
jne 0x401f2b84
cmp dword [ebp - 0x44], ebx
jne 0x401f2b84
cmp esi, 0xffffffff
jne 0x401f2a64
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov eax, dword [edi + 0x28]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x4c], ecx
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x48], eax
cmp ecx, ebx
je 0x401f2a16
test byte [ebp + 0x14], 4
jne 0x401f2a16
xor esi, esi
inc esi
push esi
push eax
push ecx
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.401f24f1
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x401f2a16
mov dword [ebp + 8], esi
cmp dword [ebp + 8], ebx
jne 0x401f2b76
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x4c]
push dword [ebp - 0x24]
cmp dword [ebp - 0x28], eax
jae 0x401f2a82
mov eax, dword [ebp - 0x28]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x48]
add eax, ecx
mov ebx, dword [eax + 4]
mov esi, dword [eax + 8]
push ebx
push esi
call fcn.401f1d04
test eax, eax
je 0x401f2a5d
push ebx
push 0
mov eax, dword [ebp - 0x20]
add esi, eax
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
inc dword [ebp - 0x28]
xor ebx, ebx
jmp 0x401f2a25
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.401f5b09
cmp eax, ebx
jne 0x401f29dc
mov dword [ebp - 0x1c], ebx
jmp 0x401f2dfe
push dword [ebp - 0x20]
push 0xffffffffffffffff
call fcn.401f55d1
not eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [edi + 0x20]
je 0x401f2ac1
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push dword [edi + 0xc]
push ebx
push dword [edi + 4]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call sym.mspatcha.dll_NormalizeFileForPatchSignature
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push 0xffffffffffffffff
call fcn.401f55d1
not eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x401f2afa
cmp dword [ebp + 8], ebx
jne 0x401f2b6a
mov ecx, dword [edi + 0x20]
cmp eax, ecx
jne 0x401f2b6a
mov eax, dword [edi + 0x1c]
cmp dword [ebp - 0x24], eax
jne 0x401f2b6a
xor esi, esi
inc esi
mov dword [ebp + 8], esi
test byte [ebp + 0x14], 1
je 0x401f2b2a
push 0xc00e4105
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x1c], ebx
jmp 0x401f2b6a
test byte [ebp + 0x14], 4
jne 0x401f2b43
cmp eax, ebx
lea eax, [ebp - 0x60]
jne 0x401f2b48
push eax
push ebx
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp - 0x1c], esi
jmp 0x401f2b6a
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0x34]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push ecx
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.401f25f9
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x34]
cmp ecx, ebx
je 0x401f2b76
call fcn.401f5c53
cmp dword [ebp - 0x20], ebx
je 0x401f2b84
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
invalid