Function at 0x40f200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call fcn.00438850
add esp, 0x10
mov ebx, eax
cmp eax, 1
je 0x40f2b0
cmp eax, 2
je 0x40f280
push edx
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edx, dword [ebp + 0x10]
add eax, 0x40
mov edi, dword [edx]
push edi
push str.ERROR:__s_exists_and_is_not_a_regular_file_n
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], 0
cmp byte [eax + 4], 0
je 0x40f270
sub esp, 0xc
push str.Done_
call sub.msvcrt.dll_puts
mov dword [ebp - 0x24], 0
add esp, 0x10
nop
lea esi, [esi]
mov eax, dword [ebp - 0x24]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 8]
cmp byte [edx + 0xd], 0
jne 0x40f2b0
cmp byte [edx + 6], 0
je 0x40f724
mov eax, dword [ebp + 0x10]
sub esp, 0xc
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__unlink
add esp, 0x10
test eax, eax
jne 0x40f768
lea esi, [esi]
mov eax, dword [ebp + 8]
cmp byte [eax + 4], 0
je 0x40f2db
mov edx, dword [ebp + 0x10]
dec ebx
mov eax, dword [edx]
mov edx, str.Creating
je 0x40f2cb
mov edx, str.Opening
push esi
push eax
push edx
push 0x4af37f
call sub.msvcrt.dll_printf
add esp, 0x10
sub esp, 0xc
push 0x38
call fcn.004a3a30
add esp, 0xc
mov edi, eax
mov dword [eax], 0
mov dword [eax + 4], vtable.d8AssetDirE.0
mov word [eax + 8], 0
mov word [eax + 0xa], 0
mov word [eax + 0xc], 0
mov word [eax + 0xe], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov word [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov byte [eax + 0x20], 0
mov byte [eax + 0x21], 0
lea eax, [eax + 0x24]
mov dword [ebp - 0x28], eax
push 7
push 4
push eax
call fcn.00443e90
add esp, 0xc
mov dword [edi + 0x24], 0x4c8f48
push 6
mov edx, dword [ebp + 0x10]
mov ebx, dword [edx]
push ebx
push edi
call fcn.00431ec0
add esp, 0x10
test eax, eax
jne 0x40f5e9
mov eax, dword [ebp + 8]
cmp byte [eax + 4], 0
jne 0x40f6f0
push eax
mov esi, dword [ebp + 0xc]
push esi
push edi
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040eec0
add esp, 0x10
mov ebx, eax
test eax, eax
js 0x40f79b
mov eax, dword [ebp + 8]
cmp byte [eax + 4], 0
je 0x40f3b6
mov eax, 0x4af1ba
cmp ebx, 1
je 0x40f3a6
mov eax, 0x4af40a
push esi
push eax
push ebx
push str.Generated__d_file_s_n
call sub.msvcrt.dll_printf
add esp, 0x10
push ebx
push ebx
push edi
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040efd0
add esp, 0x10
mov ebx, eax
test eax, eax
js 0x40f7c0
mov eax, dword [ebp + 8]
cmp byte [eax + 4], 0
jne 0x40f612
mov dword [ebp - 0x20], 0
mov edx, dword [edi + 0x2c]
test edx, edx
jle 0x40f436
xor esi, esi
lea esi, [esi]
push eax
push eax
push esi
push edi
call fcn.00431160
add esp, 0x10
mov ebx, eax
cmp byte [eax + 1], 0
jne 0x40f430
cmp byte [eax], 0
je 0x40f430
mov eax, dword [ebp + 8]
cmp byte [eax + 4], 0
jne 0x40f6ad
push eax
push eax
push ebx
push edi
call fcn.00430750
mov eax, dword [ebp - 0x20]
inc eax
add esp, 0x10
mov dword [ebp - 0x20], eax
lea esi, [esi]
inc esi
cmp dword [edi + 0x2c], esi
jg 0x40f3f0
mov edx, dword [ebp + 8]
cmp byte [edx + 4], 0
je 0x40f469
mov eax, dword [ebp - 0x20]
test eax, eax
jle 0x40f469
mov eax, 0x4af1ba
cmp dword [ebp - 0x20], 1
je 0x40f456
mov eax, 0x4af40a
push esi
push eax
mov ebx, dword [ebp - 0x20]
push ebx
push str.Removed__d_file_s_n
call sub.msvcrt.dll_printf
add esp, 0x10
sub esp, 0xc
push edi
call fcn.00431980
add esp, 0x10
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x40f705
mov ecx, dword [edi + 0x2c]
test ecx, ecx
jne 0x40f517
mov eax, dword [ebp + 8]
cmp byte [eax + 4], 0
jne 0x40f7f6
cmp byte [edi + 0x20], 0
je 0x40f7e5
mov eax, dword [edi]
test eax, eax
je 0x40f4b4
sub esp, 0xc
push eax
call sub.msvcrt.dll_fclose
add esp, 0x10
sub esp, 0xc
push edi
call fcn.004322f0
mov dword [edi + 0x24], 0x4c8f48
pop eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.004443a0
pop eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.004441b0
mov eax, dword [edi + 0x1c]
add esp, 0x10
mov dword [edi + 4], vtable.d8AssetDirE.0
test eax, eax
je 0x40f4f5
sub esp, 0xc
push eax
call fcn.004a3970
add esp, 0x10
sub esp, 0xc
push edi
call fcn.004a3980
mov edx, dword [ebp + 0x10]
pop esi
xor edi, edi
mov ebx, dword [edx]
push ebx
call sub.msvcrt.dll__unlink
add esp, 0x10
test eax, eax
jne 0x40f746
mov eax, dword [ebp + 8]
cmp byte [eax + 0x2a], 0
jne 0x40f653
test edi, edi
je 0x40f590
cmp byte [edi + 0x20], 0
je 0x40f6df
mov eax, dword [edi]
test eax, eax
je 0x40f544
sub esp, 0xc
push eax
call sub.msvcrt.dll_fclose
add esp, 0x10
sub esp, 0xc
lea ebx, [edi + 0x24]
push edi
call fcn.004322f0
mov dword [edi + 0x24], 0x4c8f48
mov dword [esp], ebx
call fcn.004443a0
mov dword [esp], ebx
call fcn.004441b0
mov eax, dword [edi + 0x1c]
add esp, 0x10
mov dword [edi + 4], vtable.d8AssetDirE.0
test eax, eax
je 0x40f584
sub esp, 0xc
push eax
call fcn.004a3970
add esp, 0x10
sub esp, 0xc
push edi
call fcn.004a3980
add esp, 0x10
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40f244
mov eax, dword [ebp + 8]
cmp byte [eax + 4], 0
jne 0x40f6c5
mov eax, dword [ebp + 0x10]
sub esp, 0xc
mov ebx, dword [eax]
push ebx
call sub.msvcrt.dll__unlink
add esp, 0x10
test eax, eax
je 0x40f270
push ecx
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edx, dword [ebp + 0x10]
add eax, 0x40
mov edx, dword [edx]
push edx
push str.warning:_could_not_unlink__s_n
push eax
call sub.msvcrt.dll_fprintf
mov eax, dword [ebp - 0x24]
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push ecx
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edx, dword [ebp + 0x10]
add eax, 0x40
mov edx, dword [edx]
push edx
push str.ERROR:_unable_to_open__s_as_Zip_file_for_writing_n
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
mov dword [ebp - 0x24], 0
jmp 0x40f524
mov eax, 0x4af1ba
cmp ebx, 1
je 0x40f621
mov eax, 0x4af40a
push ecx
push eax
push ebx
push str.Included__d_file_s_from_jar_zip_files._n
call sub.msvcrt.dll_printf
mov edx, dword [ebp + 8]
add esp, 0x10
cmp byte [edx + 4], 0
je 0x40f3dc
sub esp, 0xc
push str.Checking_for_deleted_files
call sub.msvcrt.dll_puts
add esp, 0x10
jmp 0x40f3dc
push eax
push eax
mov esi, dword [ebp + 0x10]
push esi
lea esi, [ebp - 0x14]
push esi
call fcn.00432ca0
pop ecx
pop ebx
push 0x4af548
push esi
call fcn.00433430
pop eax
pop edx
push 0x4af54b
mov eax, dword [ebp - 0x14]
push eax
call sub.msvcrt.dll_fopen
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ebx, eax
mov eax, dword [edx]
push eax
push 0x4af54d
push ebx
call sub.msvcrt.dll_fprintf
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], esi
call fcn.00432bc0
add esp, 0x10
jmp 0x40f524
push eax
push eax
mov eax, dword [ebx + 0x5c]
push eax
push str._______removing_crufty__s__n
call sub.msvcrt.dll_printf
add esp, 0x10
jmp 0x40f416
push edi
push edi
mov edx, dword [ebp + 0x10]
mov esi, dword [edx]
push esi
push str.Removing__s_due_to_earlier_failures_n
call sub.msvcrt.dll_printf
add esp, 0x10
jmp 0x40f5a8
sub esp, 0xc
push edi
call fcn.00431980
add esp, 0x10
jmp 0x40f532
sub esp, 0xc
push str.Writing_all_files...
call sub.msvcrt.dll_puts
add esp, 0x10
jmp 0x40f372
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x2e
push 1
push str.ERROR:_Zip_flush_failed__archive_may_be_hosed_n
call sub.msvcrt.dll_fwrite
add esp, 0x10
jmp 0x40f524
push ebx
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edx, dword [ebp + 0x10]
add eax, 0x40
mov ecx, dword [edx]
push ecx
push str.ERROR:__s_exists__use__f_to_force_overwrite__n
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
jmp 0x40f244
push ecx
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edx, dword [ebp + 0x10]
add eax, 0x40
mov edx, dword [edx]
push edx
push str.warning:_could_not_unlink__s_n
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
jmp 0x40f517
call sub.msvcrt.dll__errno
sub esp, 0xc
mov edi, dword [eax]
push edi
call sub.msvcrt.dll_strerror
push eax
mov edx, dword [sym.imp.msvcrt.dll__iob]
mov eax, dword [ebp + 0x10]
add edx, 0x40
mov esi, dword [eax]
push esi
push str.ERROR:_unable_to_remove__s:__s_n
push edx
call sub.msvcrt.dll_fprintf
add esp, 0x20
jmp 0x40f244
push ecx
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edx, dword [ebp + 0x10]
add eax, 0x40
mov edx, dword [edx]
push edx
push str.ERROR:_unable_to_process_assets_while_packaging__s_n
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
mov dword [ebp - 0x24], ebx
jmp 0x40f524
push edx
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov edx, dword [ebp + 0x10]
add eax, 0x40
mov esi, dword [edx]
push esi
push str.ERROR:_unable_to_process_jar_files_while_packaging__s_n
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
mov dword [ebp - 0x24], ebx
jmp 0x40f524
sub esp, 0xc
push edi
call fcn.00431980
add esp, 0x10
jmp 0x40f4a2
push edx
push edx
mov eax, dword [ebp + 0x10]
lea ebx, [ebp - 0x10]
push eax
push ebx
call fcn.00433800
mov eax, dword [ebp - 0x10]
sub esp, 0xc
push eax
push str.Archive_is_empty____removing__s_n
call sub.msvcrt.dll_printf
add esp, 0x14
push ebx
call fcn.00432bc0
add esp, 0x10
jmp 0x40f498