Function at 0x401220
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4aa024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edi, [ebp - 0x28]
call fcn.00401150
push 0x1000
mov dword [ebp - 4], 0
call fcn.00402ebf
add esp, 4
mov edi, eax
call section..text
push str.LifeboatLB_EeditprintProLB_EeditprintPro.cfg
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, edi
lea ecx, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x401280
sub eax, ecx
sar eax, 1
lea ebx, [eax + 1]
push edi
mov dword [ebp - 0x2c], ebx
call fcn.00402eca
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
add esp, 4
push ebx
call edx
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
push eax
lea ebx, [ebp - 0x2c]
call fcn.00401090
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0xf8]
call edx
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd0]
push str.Quota.dat
call edx
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x54]
call edx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call esi
xor ebx, ebx
mov edi, eax
test edi, edi
je 0x40130d
cmp edi, 0xffffffff
jne 0x401359
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x401321
cmp eax, 0x21
jne 0x4013de
cmp ebx, 0x7530
ja 0x4013de
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x54]
add ebx, 0xa
call edx
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call esi
jmp 0x401302
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
je 0x4013b2
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ecx
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push edi
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], vtable.Vogue::CVogueString.0
test eax, eax
je 0x4013da
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + eax + 4]
lea ecx, [ecx + eax + 4]
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x401406
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], vtable.Vogue::CVogueString.0
test eax, eax
je 0x401404
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402de3
mov esp, ebp
pop ebp
ret