Function at 0x413fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf64
mov eax, dword [0x47c554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push 0x47ced4
push str._sBlocCodeBLOC_04u.TXT
push 0x105
push eax
mov byte [ebp - 0xf51], 1
call fcn.004038d0
imul eax, esi, 0x8c
add esp, 0x14
imul edi, esi, 0x254
mov byte [ebp - 0xf52], 0
cmp byte [eax + 0x484bb1], 1
jne 0x414119
lea eax, [ebp - 0xf50]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x414108
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
lea edi, [edi + 0x48e200]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x414226
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x414226
push esi
push str.Bloc__04u_is_READ_ONLY_nNo_modification_will_be_allowed
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004038d0
add esp, 0x10
lea eax, [ebp - 0x104]
push 0x30
push str.Attention
push eax
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0x80
push 3
push 0
push 3
push closesocket
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi], eax
mov byte [ebp - 0xf52], 1
jmp 0x414226
push esi
lea edi, [edi + 0x48e200]
push str.Bloc__04u_does_not_exist_nOpenning_is_not_possible
jmp 0x4141f0
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x48e200], eax
lea edi, [edi + 0x48e200]
cmp eax, 0xffffffff
je 0x4141ea
lea eax, [ebp - 0xe10]
test esi, esi
je 0x41418c
push esi
cmp esi, 0xc8
jge 0x414176
push dword [0x46f518]
push 0xc01
push eax
call fcn.004038d0
add esp, 0x10
jmp 0x4141a0
push dword [0x46f520]
push 0xc01
push eax
call fcn.004038d0
add esp, 0x10
jmp 0x4141a0
push dword [0x46f51c]
push 0xc01
push eax
call fcn.0043f2f3
add esp, 0xc
lea ecx, [ebp - 0xe10]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4141b0
push 0
lea eax, [ebp - 0xf64]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0xe10]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push 0
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x414226
push esi
push str.Bloc__04u_can_not_be_created_on_disk_nOpenning_is_not_possible
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.004038d0
add esp, 0x10
lea eax, [ebp - 0x104]
push 0x30
push str.Attention
push eax
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [edi], 0xffffffff
cmp dword [edi], 0xffffffff
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
je 0x414270
lea eax, [ebp - 0xf60]
mov dword [ebp - 0xf60], edi
push eax
push 1
push 0x449
push ebx
mov dword [ebp - 0xf58], 0x412200
mov dword [ebp - 0xf5c], 0
call esi
push 0
push 0
push 0xb9
push ebx
call esi
mov al, byte [ebp - 0xf51]
jmp 0x414278
xor al, al
mov byte [ebp - 0xf51], al
cmp byte [ebp - 0xf52], 1
jne 0x414293
push 0
push 1
push 0xcf
push ebx
call esi
mov al, byte [ebp - 0xf51]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b572
mov esp, ebp
pop ebp
ret