Function at 0x418e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x54
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebx]
push eax
call fcn.004032f0
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x418e3d
mov eax, dword [ebp - 0x4c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
push eax
push ebx
xor esi, esi
mov eax, dword [ebp + 8]
add eax, 8
push eax
call fcn.00491e60
pop eax
mov eax, dword [ebx]
push eax
call fcn.00401e40
mov dword [ebp - 0x48], eax
mov dword [esp], eax
call fcn.0043bcd0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
add esp, 0x10
nop
cmp esi, dword [ebp - 0x44]
jb 0x418e8d
mov edi, dword [ebp - 0x40]
inc edi
mov dword [ebp - 0x40], edi
cmp dword [ebp - 0x40], 1
ja 0x418fd9
xor esi, esi
cmp esi, dword [ebp - 0x44]
jae 0x418e75
push eax
push eax
push esi
mov edi, dword [ebp - 0x48]
push edi
call fcn.0043bcb0
pop ecx
pop ebx
lea ebx, [ebp - 0x10]
push eax
push ebx
call fcn.00434310
pop eax
pop edx
push esi
mov eax, dword [ebp - 0x48]
push eax
call fcn.0043bc90
mov edi, eax
mov eax, dword [ebp - 0x40]
add esp, 0x10
test eax, eax
je 0x418f90
test edi, edi
jne 0x418f75
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0x38]
test edi, edi
je 0x418f75
sub esp, 0xc
push 0xd4
call fcn.004a3a30
add esp, 0xc
lea edx, [ebp - 0x10]
mov ebx, eax
push edi
push edx
push eax
call fcn.00415c50
pop eax
lea eax, [ebp - 0x14]
pop edx
push ebx
push eax
call fcn.00492850
pop ecx
lea edx, [ebp - 0x10]
pop ebx
lea ebx, [ebp - 0x30]
push edx
push ebx
call fcn.00433920
pop eax
lea eax, [ebp - 0x14]
pop edx
lea edx, [ebp - 0x2c]
push eax
push edx
call fcn.00492880
pop ecx
pop eax
push ebx
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
call fcn.00444ce0
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.004928b0
mov dword [esp], ebx
call fcn.00433ac0
pop eax
pop edx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
add eax, 0x24
push eax
call fcn.00444a20
mov eax, dword [ebp + 8]
add esp, 0x10
cmp dword [eax + 0x38], edi
ja 0x418f66
mov edx, dword [ebp + 8]
lea eax, [edi + 1]
mov dword [edx + 0x38], eax
sub esp, 0xc
lea eax, [ebp - 0x14]
push eax
call fcn.004928b0
add esp, 0x10
sub esp, 0xc
lea edx, [ebp - 0x10]
inc esi
push edx
call fcn.00433ac0
add esp, 0x10
jmp 0x418e70
test edi, edi
je 0x418f75
cmp edi, 0x7f
je 0x419055
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 0x38]
jae 0x418ed7
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ecx
add eax, 0x40
push edi
push str.Included_base_package_ID__d_already_in_use__n
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
sub esp, 0xc
push ebx
call fcn.00433ac0
add esp, 0x10
mov dword [ebp - 0x4c], 0x80000000
jmp 0x418e32
lea ebx, [ebp - 0x18]
push esi
push esi
push str.____
push ebx
call fcn.004335e0
add esp, 0xc
lea eax, [ebp - 0x28]
lea edi, [ebp - 0x1c]
push 0
push ebx
push eax
call fcn.0042f090
mov dword [esp], ebx
call fcn.00432bc0
pop ecx
pop ebx
lea ebx, [ebp - 0x20]
push 0x4b0568
push ebx
call fcn.00434200
pop eax
pop edx
lea edx, [ebp - 0x28]
push 0
push edx
push ebx
mov eax, dword [ebp + 8]
add eax, 4
push eax
mov esi, dword [ebp + 8]
push esi
push edi
call fcn.00418b90
push ebx
call fcn.00433ac0
add esp, 0x14
push edi
call fcn.00492730
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.0042ef50
mov eax, dword [ebp - 0x4c]
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
cmp byte [eax + 0x3c], 0
jne 0x41906a
mov edx, dword [ebp + 8]
mov byte [edx + 0x3c], 1
jmp 0x418f9d
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x32
push 1
push str.Included_resources_have_two_application_packages__n
call sub.msvcrt.dll_fwrite
add esp, 0x10
jmp 0x418fc1