Function at 0x4560b0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c0
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
mov word [ebp - 0x628], ax
push 0x206
push 0
lea ecx, [ebp - 0x626]
push ecx
call fcn.005b4de0
add esp, 0xc
push str.C:log_
lea edx, [ebp - 0x628]
push edx
call fcn.005b4dbe
add esp, 8
lea eax, [ebp - 0x628]
push eax
push str._sgswb.log
lea ecx, [ebp - 0x838]
push ecx
call fcn.005b50ec
add esp, 0xc
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.005b4de0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x420], cx
push 0x206
push 0
lea edx, [ebp - 0x41e]
push edx
call fcn.005b4de0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp - 0x420]
push ecx
call fcn.0040e2a0
add esp, 8
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45618f
jmp 0x456405
lea ecx, [ebp - 0x420]
push ecx
call fcn.005b50b1
add esp, 4
lea edx, [ebp + eax*2 - 0x41e]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.005b4dbe
add esp, 8
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x628]
push edx
push str._s_s.txt
lea eax, [ebp - 0x838]
push eax
call fcn.005b50ec
add esp, 0x10
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005b55fd
add esp, 8
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x83c], ecx
mov edx, dword [ebp - 0x83c]
push edx
call fcn.005b5429
add esp, 4
mov dword [ebp - 0x62c], eax
mov eax, dword [ebp - 0x83c]
push eax
push 0
mov ecx, dword [ebp - 0x62c]
push ecx
call fcn.005b4de0
add esp, 0xc
cmp dword [ebp - 0x62c], 0
jne 0x456232
jmp 0x456405
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x83c]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x62c]
push edx
call fcn.005b53bd
add esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x840], 0
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45627f
mov dword [ebp - 0x840], 1
push 0x647258
lea ecx, [ebp - 0x838]
push ecx
call fcn.005bbf86
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x456405
cmp dword [ebp - 0x840], 0
jne 0x4562d5
mov edx, 0xfeff
mov word [ebp - 0x8c0], dx
mov eax, dword [ebp - 0x214]
push eax
push 2
push 1
lea ecx, [ebp - 0x8c0]
push ecx
call fcn.005b7f37
add esp, 0x10
lea edx, [ebp - 0x854]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
mov word [ebp - 0x8b8], ax
push 0x5a
push 0
lea ecx, [ebp - 0x8b6]
push ecx
call fcn.005b4de0
add esp, 0xc
movzx edx, word [ebp - 0x846]
push edx
movzx eax, word [ebp - 0x848]
push eax
movzx ecx, word [ebp - 0x84a]
push ecx
movzx edx, word [ebp - 0x84c]
push edx
movzx eax, word [ebp - 0x84e]
push eax
movzx ecx, word [ebp - 0x852]
push ecx
movzx edx, word [ebp - 0x854]
push edx
push str.__4d__02d__02d__02d:_02d:_02d._03d_
lea eax, [ebp - 0x8b8]
push eax
call fcn.005b50ec
add esp, 0x24
mov ecx, dword [ebp - 0x214]
push ecx
lea edx, [ebp - 0x8b8]
push edx
call fcn.005b50b1
add esp, 4
shl eax, 1
push eax
push 1
lea eax, [ebp - 0x8b8]
push eax
call fcn.005b7f37
add esp, 0x10
mov ecx, dword [ebp - 0x62c]
push ecx
call fcn.005b50b1
add esp, 4
mov dword [ebp - 0x844], eax
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ebp - 0x844]
shl eax, 1
push eax
push 1
mov ecx, dword [ebp - 0x62c]
push ecx
call fcn.005b7f37
add esp, 0x10
mov edx, 0xd
mov word [ebp - 0x8bc], dx
mov eax, dword [ebp - 0x214]
push eax
push 2
push 1
lea ecx, [ebp - 0x8bc]
push ecx
call fcn.005b7f37
add esp, 0x10
mov edx, 0xa
mov word [ebp - 0x8bc], dx
mov eax, dword [ebp - 0x214]
push eax
push 2
push 1
lea ecx, [ebp - 0x8bc]
push ecx
call fcn.005b7f37
add esp, 0x10
mov edx, dword [ebp - 0x214]
push edx
call fcn.005b7a68
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret