Function at 0x4276fb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x64
push ebx
push esi
push edi
push 1
call fcn.00427447
pop ecx
test al, al
je 0x427938
xor esi, esi
mov byte [ebp - 1], 0
mov edi, dword [ebp + 0xc]
push 0x45c004
push edi
call fcn.00440b2e
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4278a2
push edi
push str.Unable_to_open__s_for_writing__will_try_again_in_1_sec
call fcn.004408b5
add eax, 0x40
push eax
call fcn.00440e02
add esp, 0xc
push edi
call fcn.00424a4b
pop ecx
test al, al
je 0x4277fe
and dword [ebp - 0x10], 0
and dword [ebp - 8], 0
lea eax, [ebp - 0x10]
push eax
push edi
lea edi, [ebp - 8]
call fcn.004382cf
pop ecx
pop ecx
test al, al
je 0x4277fe
mov eax, dword [ebp - 0x10]
push dword [ebp - 8]
cmp eax, dword [ebp + 0x14]
jne 0x4277f8
lea ecx, [ebp - 0x20]
push ecx
call fcn.0040efd9
push 0x10
lea edi, [ebp - 0x40]
lea ebx, [ebp - 0x20]
call fcn.0040daa2
add esp, 0xc
push dword [ebp + 0x10]
mov eax, ebx
push eax
mov eax, dword [ebp + 0x14]
call fcn.0040efd9
push 0x10
lea edi, [ebp - 0x60]
call fcn.0040daa2
add esp, 0xc
push dword [ebp - 8]
call fcn.0043fe48
pop ecx
lea ecx, [ebp - 0x40]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4277e8
test dl, dl
je 0x4277e4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4277e8
inc eax
inc eax
inc ecx
inc ecx
test dl, dl
jne 0x4277ca
xor eax, eax
jmp 0x4277ed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4277fe
mov al, 1
jmp 0x427938
call fcn.0043fe48
pop ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jb 0x42771d
mov esi, dword [ebp + 8]
cmp byte [esi + 0x8c], 0
je 0x42784a
push dword [esi + 0x84]
call fcn.00437216
pop ecx
lea edi, [esi + 0x88]
push dword [edi]
call fcn.00437216
mov eax, dword [esi + 0x80]
pop ecx
mov byte [eax], 1
push dword [edi]
call fcn.0043722a
pop ecx
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
je 0x4278f1
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0x14], ebx
jbe 0x4278d4
mov esi, 0x1000
mov eax, dword [ebp + 8]
cmp byte [eax + 0x75], 0
je 0x427876
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp + 0x14]
sub edi, ebx
cmp edi, esi
jbe 0x427881
mov edi, esi
push dword [ebp - 0xc]
push edi
push 1
push dword [ebp + 0x10]
call fcn.00442286
add esp, 0x10
cmp eax, edi
jne 0x4278b2
add dword [ebp + 0x10], edi
add ebx, edi
cmp ebx, dword [ebp + 0x14]
jb 0x427865
jmp 0x4278d1
push eax
call fcn.0044098c
pop ecx
mov byte [ebp - 1], 1
jmp 0x427813
push dword [ebp + 0xc]
push ebx
push edi
push str.ERROR:_Unable_to_write__li_bytes_at_offset__li_to__s_n
call fcn.004408b5
add eax, 0x40
push eax
call fcn.00440e02
add esp, 0x14
mov byte [ebp - 1], 0
mov esi, dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.004409ff
pop ecx
push dword [ebp - 0xc]
call fcn.004412af
pop ecx
push dword [ebp + 0xc]
call fcn.004273ec
pop ecx
jmp 0x42790a
push dword [ebp + 0xc]
push str.ERROR:_Couldnt_open__s_for_writing_n
call fcn.004408b5
add eax, 0x40
push eax
call fcn.00440e02
add esp, 0xc
lea edi, [esi + 0x88]
push dword [edi]
call fcn.00437216
cmp dword [esi + 0x80], 0
pop ecx
je 0x42792d
push dword [esi + 0x84]
call fcn.0043722a
pop ecx
push dword [edi]
call fcn.0043722a
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10