Function at 0x42f080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, eax
call fcn.00422b00
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 4]
add eax, 8
cmp eax, dword [esi + 0x10]
jb 0x42f0a3
call fcn.00425c80
mov eax, dword [esi + 0xc]
lea ecx, [eax + 8]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x42f0ba
mov dword [eax], 0
mov byte [eax + 4], 1
mov edx, dword [ebx]
mov esi, dword [edx]
push 0x5b
call fcn.004235f0
mov esi, dword [ebp + 8]
add esp, 4
lea eax, [ebp - 0xc]
mov ecx, esi
call fcn.00402510
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.00436820
mov esi, dword [ebp - 4]
cmp esi, dword [eax + 8]
je 0x42f156
jmp 0x42f0f3
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x42f0fe
xor edx, edx
jmp 0x42f100
mov edx, dword [eax]
mov ecx, dword [edx + 8]
mov eax, esi
cmp ecx, esi
ja 0x42f10b
sub eax, ecx
mov ecx, dword [edx + 4]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x14], 8
jb 0x42f11b
mov edi, dword [eax]
jmp 0x42f11d
mov edi, eax
cmp word [edi], 0
mov esi, edi
je 0x42f12e
add esi, 2
cmp word [esi], 0
jne 0x42f125
call fcn.00422b00
sub esi, edi
sar esi, 1
push esi
push edi
push ebx
call fcn.00422e20
mov esi, dword [ebp - 4]
mov edx, dword [ebp + 8]
inc esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], esi
call fcn.00436820
cmp esi, dword [eax + 8]
jne 0x42f0f0
add dword [ebx + 0x10], 0xfffffff8
mov eax, dword [ebx + 0x10]
cmp dword [eax], 0
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
je 0x42f1e1
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x42f18f
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x42f18f
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0xa
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x42f1bb
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x42f1bb
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0
inc dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
movzx edx, word [ebx + 0x20]
mov ecx, dword [ebx]
shr eax, 3
imul eax, dword [ebx + 0x24]
push edx
push ecx
call fcn.00423660
add esp, 8
mov edx, dword [ebx]
mov esi, dword [edx]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x42f208
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x42f208
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0x5d
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jb 0x42f234
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x42f234
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov byte [ecx], 0
inc dword [esi + 0xc]
mov edx, dword [ebx + 0x10]
cmp edx, dword [ebx + 0xc]
jne 0x42f267
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x42f267
mov edx, dword [esi]
push edx
sub eax, ecx
push eax
push 1
push ecx
call edi
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret