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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4429fb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x230
mov eax, dword [0x45e070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
mov dword [ebp - 0x23c], esi
cmp dword [esi], 0xffffffff
jne 0x401f76
xor eax, eax
jmp 0x402164
lea eax, [ebp - 0x234]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x234], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x200
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00427af0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
movzx eax, word [ebp - 0x228]
push eax
movzx eax, word [ebp - 0x22a]
push eax
movzx eax, word [ebp - 0x22c]
push eax
movzx eax, word [ebp - 0x22e]
push eax
movzx eax, word [ebp - 0x232]
push eax
movzx eax, word [ebp - 0x234]
push eax
push str._04d__02d__02d__02d:_02d:_02d_PID:_d_TID:_d
lea eax, [ebp - 0x218]
push 0x100
push eax
call fcn.00401e90
lea ecx, [ebp - 0x218]
add esp, 0x2c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402003
sub ecx, edx
mov dword [ebp - 0x21c], 0
sar ecx, 1
push 0
lea eax, [ecx + ecx]
lea ecx, [ebp - 0x21c]
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.00401c70
mov ecx, eax
test ecx, ecx
je 0x402182
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x238], eax
test eax, eax
je 0x40218c
lea edx, [ebx + 0x10]
mov ecx, eax
call fcn.00401c00
mov edi, eax
test edi, edi
js 0x402196
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4020a6
push edi
lea ecx, [ebp - 0x220]
call fcn.004021d0
mov esi, dword [ebp - 0x220]
lea eax, [ebx + 0x10]
mov ecx, esi
push eax
push dword [ebp - 0x238]
lea edx, [edi + 1]
call fcn.00401c30
add esp, 8
cmp edi, dword [esi - 8]
jg 0x40218c
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x23c]
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x224]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x224], 0
jne 0x4020fa
cmp eax, 0xa00000
jbe 0x402110
push 0
push 0
push 2
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
push 0
push ecx
add eax, eax
push eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x21c]
push eax
push 4
push 0x456c4c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40215f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040fcd6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.00401ad0
push 0x80070057
call fcn.00401ad0
push 0x80004005
call fcn.00401ad0
int3