Function at 0x47e2c3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dl, 1
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push ecx
mov ecx, ebx
call fcn.0047e5b4
pop ecx
test al, al
je 0x47e519
and dword [ebp - 0x10], 0
mov byte [ebp + 0xb], 0
push 0x4a6b4c
push ebx
call fcn.004260ba
mov edi, eax
mov dword [ebp - 8], edi
pop ecx
pop ecx
test edi, edi
jne 0x47e3f2
push ebx
push str.Unable_to_open__s_for_writing__will_try_again_in_1_sec
call fcn.00425e56
add eax, 0x40
push eax
call fcn.00426340
add esp, 0xc
mov ecx, ebx
call fcn.0047fbd0
test al, al
je 0x47e3d5
and dword [ebp - 0xc], edi
lea eax, [ebp - 0xc]
and dword [ebp - 4], edi
lea edx, [ebp - 4]
push eax
mov ecx, ebx
call fcn.00466003
pop ecx
test al, al
je 0x47e3d5
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x47e3cc
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x20]
push eax
call fcn.00406c1b
lea eax, [ebp - 0x40]
push eax
push 0x10
pop edx
lea ecx, [ebp - 0x20]
call fcn.0045a49b
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
call fcn.00406c1b
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push eax
push 0x10
pop edx
lea ecx, [ebp - 0x20]
call fcn.0045a49b
push dword [ebp - 4]
call fcn.004249b0
add esp, 0xc
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x60]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47e3bc
test dl, dl
je 0x47e3b8
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47e3bc
add eax, 2
add ecx, 2
test dl, dl
jne 0x47e39c
xor eax, eax
jmp 0x47e3c1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47e3d5
mov al, 1
jmp 0x47e519
push dword [ebp - 4]
call fcn.004249b0
pop ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 0xa
jb 0x47e2ec
jmp 0x47e3fd
push edi
call fcn.00425e5c
pop ecx
mov byte [ebp + 0xb], 1
cmp byte [esi + 0x8c], 0
je 0x47e430
mov ecx, dword [esi + 0x84]
call fcn.0047acbd
mov ecx, dword [esi + 0x88]
call fcn.0047acbd
mov eax, dword [esi + 0x80]
mov byte [eax], 1
mov ecx, dword [esi + 0x88]
call fcn.0047ac30
test edi, edi
je 0x47e4d5
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], eax
jbe 0x47e4be
mov ecx, dword [ebp + 0xc]
mov edx, 0x1000
cmp byte [esi + 0x75], 0
je 0x47e463
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
mov edx, 0x1000
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push dword [ebp - 8]
sub edi, eax
cmp edi, edx
cmova edi, edx
push edi
push 1
push ecx
call fcn.004265ab
add esp, 0x10
cmp eax, edi
jne 0x47e49c
mov eax, dword [ebp - 4]
mov edx, 0x1000
mov ecx, dword [ebp + 0xc]
add eax, edi
add ecx, edi
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], ecx
cmp eax, dword [ebp + 0x10]
jb 0x47e44a
jmp 0x47e4bb
push ebx
push dword [ebp - 4]
push edi
push str.ERROR:_Unable_to_write__li_bytes_at_offset__li_to__s_n
call fcn.00425e56
add eax, 0x40
push eax
call fcn.00426340
add esp, 0x14
mov byte [ebp + 0xb], 0
mov edi, dword [ebp - 8]
push edi
call fcn.00425ecb
pop ecx
push edi
call fcn.00426699
pop ecx
mov ecx, ebx
call fcn.0047e7d6
jmp 0x47e4ec
push ebx
push str.ERROR:_Couldnt_open__s_for_writing_n
call fcn.00425e56
add eax, 0x40
push eax
call fcn.00426340
add esp, 0xc
mov ecx, dword [esi + 0x88]
call fcn.0047acbd
cmp dword [esi + 0x80], 0
je 0x47e50b
mov ecx, dword [esi + 0x84]
call fcn.0047ac30
mov ecx, dword [esi + 0x88]
call fcn.0047ac30
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10