Function at 0x63612576
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
push ebp
mov eax, 0x5478
lea ebp, [esp - 0x53f8]
call fcn.6361d3b0
mov eax, dword [0x6363a530]
push ebx
xor eax, ebp
push esi
mov esi, dword [ebp + 0x5400]
mov dword [ebp + 0x53f4], eax
mov eax, dword [ebp + 0x5404]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0x28], eax
je 0x6361286e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6361286e
push esi
call fcn.6361ca2b
mov esi, 0x104
mov edi, eax
push esi
lea eax, [ebp + 0x50e8]
push ebx
push eax
mov dword [ebp - 0x20], edi
call fcn.6361d770
add esp, 0x10
cmp edi, ebx
je 0x636125f6
push dword [ebp - 0x28]
lea eax, [ebp + 0x50e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp + 0x50e8], bl
je 0x63612613
lea eax, [ebp + 0x50e8]
push eax
call fcn.636119d1
test eax, eax
pop ecx
je 0x6361286e
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.6361c000
test eax, eax
pop ecx
pop ecx
jne 0x6361262c
cmp dword [ebp - 0x30], ebx
je 0x6361286e
push edi
call fcn.6361c381
test eax, eax
pop ecx
jne 0x6361286e
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp + 0x51ec]
push ebx
push eax
call fcn.6361d770
push 4
lea eax, [ebp + 0x4fe4]
push ebx
push eax
call fcn.6361d770
push 0x50
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.6361d770
push 0xff
lea eax, [ebp + 0x4fe4]
push eax
push ebx
push ebx
push esi
lea eax, [ebp + 0x51ec]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x20]
call fcn.6361c35a
add esp, 0x44
test eax, eax
jne 0x6361286e
lea eax, [ebp + 0x51ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp + 0x51ec]
dec ecx
mov al, byte [eax + ecx]
cmp al, 0x5c
je 0x6361284f
cmp al, 0x2f
je 0x6361284f
lea eax, [ebp + 0x50e8]
push eax
lea eax, [ebp + 0x52f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x52f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp + 0x52f0]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x636126fe
push 0x63630080
lea eax, [ebp + 0x52f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x51ec]
push eax
lea eax, [ebp + 0x52f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x52f0]
push eax
call fcn.6361f68d
mov esi, eax
push 0x5c
push esi
call fcn.6361f660
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x24], ebx
je 0x6361273e
push esi
mov byte [eax], bl
call fcn.636119d1
pop ecx
mov dword [ebp - 0x24], eax
push esi
call fcn.6361d0f8
cmp dword [ebp - 0x24], ebx
pop ecx
je 0x6361286e
lea eax, [ebp + 0x52f0]
push eax
call fcn.6361251d
test eax, eax
pop ecx
je 0x6361286e
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x52f0]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x636127e5
cmp dword [ebp + 0x5408], ebx
je 0x6361286e
lea eax, [ebp + 0x52f0]
push eax
lea eax, [ebp - 0x1c]
push str._s.bak
push eax
call fcn.6361dd0b
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x52f0]
push eax
call fcn.6361f6b8
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x52f0]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x6361286e
push dword [ebp - 0x20]
call fcn.6361ccd9
test eax, eax
pop ecx
jne 0x6361286e
push 0x5000
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call fcn.6361c612
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x24], eax
jle 0x63612831
push ebx
lea ecx, [ebp - 0x28]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6361282d
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x28], eax
je 0x636127f2
or dword [ebp - 0x24], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call fcn.6361c80a
test eax, eax
pop ecx
jne 0x6361286e
cmp dword [ebp - 0x24], ebx
jl 0x6361286e
mov esi, 0x104
push dword [ebp - 0x20]
call fcn.6361c3c3
test eax, eax
pop ecx
je 0x63612641
push dword [ebp - 0x20]
call fcn.6361ca39
xor eax, eax
pop ecx
inc eax
jmp 0x63612870
xor eax, eax
mov ecx, dword [ebp + 0x53f4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6361d41e
add ebp, 0x53f8
leave
ret