Function at 0x100012c0
Capabilities:
Clear file content
Get memory capacity
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xb8
mov dword [esp + 0xb0], 0
jmp 0x10001436
jmp 0x10001551
mov eax, dword [esp + 0x5c]
add eax, 1
mov dword [esp + 0x5c], eax
jmp 0x10001535
mov eax, esp
mov dword [eax], 0x585b08
mov eax, dword [sym.imp.KERNEL32.dll_SetEndOfFile]
call eax
sub esp, 4
mov ecx, esp
lea edx, [esp + 0x60]
mov dword [ecx + 4], edx
mov dword [ecx], 0xd1166
mov ecx, dword [sym.imp.ole32.dll_OleCreateMenuDescriptor]
mov dword [esp + 0x58], eax
call ecx
sub esp, 8
mov dword [esp + 0x54], eax
jmp 0x10001551
mov eax, dword [esp + 0xa8]
mov ecx, 0xcccccccd
mov dword [esp + 0x50], eax
mul ecx
shr edx, 4
imul eax, edx, 0x14
mov ecx, dword [esp + 0x50]
sub ecx, eax
mov dword [esp + 0x4c], ecx
je 0x100013e1
jmp 0x10001357
mov eax, dword [esp + 0x4c]
sub eax, 7
mov dword [esp + 0x48], eax
je 0x100014c1
jmp 0x10001528
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x44], eax
mov eax, 0xcc29786d
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x40], eax
mov eax, ecx
mov edx, dword [esp + 0x40]
mul edx
shr edx, 8
imul eax, edx, 0x141
sub ecx, eax
mov eax, ecx
sub eax, 6
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
je 0x100012f4
jmp 0x100013ad
mov eax, dword [esp + 0x3c]
sub eax, 0x23
mov dword [esp + 0x34], eax
je 0x10001414
jmp 0x1000152d
mov eax, esp
mov dword [eax + 4], 0xc3893
mov dword [eax], 0xf11
mov eax, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
call eax
sub esp, 8
mov dword [esp + 0x30], eax
jmp 0x100012e2
mov eax, esp
mov dword [eax], 0x216762
mov eax, dword [sym.imp.ADVAPI32.dll_CloseEventLog]
call eax
sub esp, 4
mov dword [esp + 0x2c], eax
jmp 0x100014c1
mov eax, dword [esp + 0xa8]
add eax, 1
mov dword [esp + 0xa8], eax
jmp 0x1000149e
mov eax, esp
lea ecx, [esp + 0x78]
mov dword [eax + 4], ecx
mov dword [eax], 0x369798
mov eax, dword [sym.imp.USER32.dll_GetClientRect]
call eax
sub esp, 8
mov dword [esp + 0x28], eax
jmp 0x100012f4
cmp dword [esp + 0xb0], 0xf1
je 0x1000156b
mov eax, esp
mov dword [eax], 0x56f
mov eax, dword [sym.imp.USER32.dll_GetSystemMetrics]
call eax
sub esp, 4
mov word [esp + 0xae], 0x58
mov cx, word [esp + 0xae]
movzx edx, cx
mov esi, esp
mov dword [esi + 4], edx
mov dword [esi + 8], 0x802
mov dword [esi], str.aMOcQW_NRS9GL_3
mov edx, dword [sym.imp.SHLWAPI.dll_StrChrNW]
mov dword [esp + 0x24], eax
call edx
sub esp, 0xc
mov dword [esp + 0xa8], 0
mov dword [esp + 0x20], eax
cmp dword [esp + 0xa8], 0x8b
setne al
mov byte [esp + 0x1f], al
mov al, byte [esp + 0x1f]
test al, 1
jne 0x1000132d
jmp 0x1000136d
xor eax, eax
mov ecx, 0x20
lea edx, [esp + 0x88]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x20
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
call fcn.100a4270
mov eax, esp
lea ecx, [esp + 0x88]
mov dword [eax], ecx
mov eax, dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
call eax
sub esp, 4
mov eax, esp
mov dword [eax + 8], 0x194
mov dword [eax + 4], 0xb1f
mov dword [eax], 0x783c02
mov eax, dword [sym.imp.KERNEL32.dll_EraseTape]
call eax
sub esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x100013fc
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
cmp eax, 0xa
jne 0x100013bf
jmp 0x100012dd
jmp 0x10001553
mov eax, dword [esp + 0xb0]
add eax, 1
mov dword [esp + 0xb0], eax
jmp 0x10001436
lea esp, [ebp - 4]
pop esi
pop ebp
ret