Function at 0x542f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
mov ebx, ecx
mov dword [esp + 0x18], 0
je 0x5432a9
cmp dword [ebx + 0x2ec], 0xa
jle 0x5432a9
mov eax, dword [ebx + 0x2dc]
test eax, eax
je 0x5432a9
fld qword [esi + 0x24]
fcomp qword [ebx + 0x1b68]
fnstsw ax
test ah, 0x41
jne 0x54306d
push esi
call dword [sym.imp.MSVCRT.dll_gmtime]
add esp, 4
test eax, eax
je 0x543011
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
fld qword [ebx + 0x1b68]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
inc edx
push ecx
add eax, 0x76c
push edx
push eax
call sub.MSVCRT.dll__ftol
push eax
push str.__volume_limit__d_at__04d._02d._02d__02d:_02d_exceeded_
lea ecx, [esp + 0x3c]
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x24
jmp 0x543035
fld qword [ebx + 0x1b68]
call sub.MSVCRT.dll__ftol
push eax
push str.__volume_limit__d_exceeded_
lea edx, [esp + 0x28]
push 0xff
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push str.TestGenerator:_unmatched_data_error_s
push 1
push 0x5960a0
call fcn.0046b660
mov eax, dword [ebx + 0x1b90]
mov ecx, dword [ebx + 0x1b68]
add esp, 0x10
inc eax
mov dword [ebx + 0x1b90], eax
mov dword [esi + 0x24], ecx
mov edx, dword [ebx + 0x1b6c]
mov dword [esi + 0x28], edx
mov eax, dword [ebx + 0x1b80]
mov ecx, dword [esi + 0x2c]
cmp ecx, eax
jl 0x54307e
dec eax
mov dword [esi + 0x2c], eax
fld qword [ebx + 0x138]
fcomp qword [0x565ac0]
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x1b84], eax
fnstsw ax
test ah, 0x41
jne 0x5431aa
mov ecx, dword [ebx + 0x138]
mov edx, dword [ebx + 0x13c]
fld qword [ebx + 0x108]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
fcomp qword [esp + 0x10]
fnstsw ax
test ah, 0x40
jne 0x5431aa
fld qword [esi + 0x1c]
fld qword [esp + 0x10]
call sub.MSVCRT.dll__CIfmod
mov ecx, dword [ebx + 0x100]
sub esp, 8
fstp qword [esp]
call fcn.00429ac0
fcom qword [ebx + 0x1b78]
fnstsw ax
test ah, 0x41
jne 0x5431a8
fcom qword [ebx + 0x138]
fnstsw ax
test ah, 1
je 0x5431a8
fld qword [esi + 0x1c]
fsub st(1)
fstp qword [esp + 0x10]
fld qword [ebx + 0x138]
fmul qword [0x567060]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x543134
fld qword [esp + 0x10]
fadd qword [ebx + 0x138]
fstp qword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x100]
push eax
push edx
call fcn.00429ac0
fstp st(0)
fld qword [esp + 0x10]
fcom qword [esi + 0x14]
fnstsw ax
test ah, 0x41
jne 0x543179
fcom qword [ebx + 0x1b58]
fnstsw ax
test ah, 0x41
jne 0x543176
fstp st(0)
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
fst qword [esi + 0x14]
fcom qword [esi + 0xc]
fnstsw ax
test ah, 1
je 0x5431a3
fcom qword [ebx + 0x1b60]
fnstsw ax
test ah, 1
je 0x5431a0
fstp st(0)
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
fst qword [esi + 0xc]
fstp qword [esi + 0x1c]
jmp 0x5431aa
fstp st(0)
mov eax, dword [ebx + 0x2e8]
test eax, eax
jle 0x54320c
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov ecx, dword [ebx + 0x2dc]
lea ecx, [ecx + edx*4]
xor edx, edx
mov dword [esp + 0x1c], ecx
lea edi, [ecx - 0x34]
mov ecx, 9
mov dword [esp + 0x10], edi
repe cmpsd dword [esi], dword es:[edi]
jne 0x543209
mov eax, dword [esp + 0x1c]
fld qword [eax - 0x10]
fcomp qword [0x567050]
fnstsw ax
test ah, 0x41
jne 0x5431fb
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x10]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
cmp dword [ebx + 0x2ec], eax
jg 0x5432be
mov ecx, dword [ebx + 0x2d8]
test ecx, ecx
je 0x543287
cmp dword [ebx + 0x2f4], eax
jne 0x54326f
push 0
push 0
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [ebx + 0x2d8]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push ecx
push 1
push 0x2d8
push ebx
call edi
add esp, 0x1c
cmp eax, 1
jne 0x543287
mov edx, dword [ebx + 0x2d8]
mov eax, dword [ebx + 0x2e8]
mov ecx, dword [ebx + 0x2dc]
push edx
push eax
push 0x34
push ecx
call edi
jmp 0x543280
mov edx, dword [ebx + 0x2dc]
push ecx
push eax
push 0x34
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x2e8]
cmp eax, ecx
je 0x5432b4
push str.TestGenerator:_write_file_error
push 1
push 0x5960a0
call fcn.0046b660
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x2e8], 0
mov eax, dword [ebx + 0x2e8]
lea ecx, [eax + eax*2]
lea edx, [eax + ecx*4]
mov ecx, dword [ebx + 0x2dc]
inc eax
lea edi, [ecx + edx*4]
mov ecx, 0xd
mov dword [ebx + 0x2e8], eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x2f4]
pop edi
inc eax
pop esi
mov dword [ebx + 0x2f4], eax
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4