Function at 0x42cea0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0042c590
mov esi, eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x14], esi
test eax, eax
jle 0x42ced7
mov edx, dword [ebp + 4]
cmp dword [edx], esi
jne 0x42cecf
mov bl, byte [edx + 8]
test bl, bl
je 0x42cfb4
inc ecx
add edx, 0xc
cmp ecx, eax
jl 0x42cec0
mov ecx, ebp
call fcn.0042ce60
mov eax, dword [ebp + 8]
inc eax
lea eax, [eax + eax*2]
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42d0dd
mov eax, dword [ebp + 8]
mov edi, ebx
inc eax
lea ecx, [eax + eax*2]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 4]
test eax, eax
je 0x42cf49
mov ecx, dword [ebp + 8]
mov esi, eax
mov edi, ebx
lea ecx, [ecx + ecx*2]
shl ecx, 2
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
push ecx
call fcn.00495c27
mov esi, dword [esp + 0x18]
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp + 4], ebx
lea edx, [eax + eax*2]
lea ebx, [ebx + edx*4]
mov dword [ebx], esi
mov byte [ebx + 8], 0
mov eax, dword [ebp + 8]
test eax, eax
jle 0x42cf9f
lea eax, [ebp + 0x10]
push 0x4e9368
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x42d0dd
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push esi
mov dword [ebx + 4], eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
jmp 0x42cfa6
mov dword [ebx + 4], 0x7d0
mov eax, dword [ebp + 8]
mov ecx, ebp
inc eax
mov dword [ebp + 8], eax
call fcn.0042c7a0
mov ecx, ebp
call fcn.0042c7a0
add ebp, 0x10
push 0x4e9360
push ebp
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x42d0dd
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebx
mov edi, dword [sym.imp.MSVCRT.dll_ftell]
push esi
call edi
add esp, 0x10
cmp eax, 0x7d0
jge 0x42d004
push 0
push 0x7d0
push esi
call ebx
add esp, 0xc
push esi
call edi
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
lea ecx, [esp + 0x1f]
push 1
push ecx
mov byte [esp + 0x27], 0
call edi
mov ebp, dword [esp + 0x30]
push esi
push 1
push 4
push ebp
call edi
push esi
push 1
lea edx, [ebp + 4]
push 4
push edx
call edi
push esi
push 1
lea eax, [ebp + 8]
push 4
push eax
call edi
add esp, 0x44
lea ecx, [ebp + 0xc]
push esi
push 1
push 4
push ecx
call edi
push esi
push 1
lea edx, [ebp + 0x10]
push 4
push edx
call edi
lea ebx, [ebp + 0x14]
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x24
cmp eax, 0x103
mov dword [esp + 0x14], eax
jbe 0x42d079
mov dword [esp + 0x14], 0x103
push esi
push 1
lea eax, [esp + 0x1c]
push 4
push eax
call edi
mov ecx, dword [esp + 0x24]
push esi
push ecx
push 2
push ebx
call edi
lea ebx, [ebp + 0x21c]
add esp, 0x20
mov ecx, ebx
call fcn.004104e0
push esi
push 1
lea edx, [esp + 0x1c]
inc eax
push 4
push edx
mov dword [esp + 0x24], eax
call edi
mov eax, dword [esp + 0x24]
add esp, 0x10
mov ecx, ebx
push esi
push eax
push 1
call fcn.004c5480
push eax
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret 4