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

Disassembly:
sub esp, 0x8a0
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x89c], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x29a]
push ecx
mov word [esp + 0x29c], ax
call fcn.0052e300
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + str.C:log_]
mov word [esp + eax + 0x290], cx
add eax, 2
test cx, cx
jne 0x493710
lea edx, [esp + 0x290]
push edx
lea eax, [esp + 0x49c]
push str._sgswb.log
push eax
call fcn.00527adc
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x6b6]
push edx
mov word [esp + 0x6b8], cx
call fcn.0052e300
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xaa]
push ecx
mov word [esp + 0xac], ax
call fcn.0052e300
add esp, 0x24
push 0x104
lea edx, [esp + 0x8c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x88]
push 0x5c
push eax
call fcn.00527ab0
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
lea edx, [esp + 0x498]
xor ecx, ecx
push edx
mov word [eax], cx
call ebp
test eax, eax
je 0x4939a3
lea eax, [esp + 0x88]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4937d0
sub eax, edx
sar eax, 1
lea eax, [esp + eax*2 + 0x8a]
lea edx, [esp + 0x6a0]
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4937f0
lea eax, [esp + 0x6a0]
push eax
lea ecx, [esp + 0x294]
push ecx
lea edx, [esp + 0x4a0]
push str._s_s.txt
push edx
call fcn.00527adc
mov ecx, dword [esp + 0x8c4]
lea eax, [esp + 0x8c8]
push eax
push ecx
call fcn.0052a6c0
lea esi, [eax + eax + 2]
push esi
call fcn.00528c05
push esi
mov edi, eax
push 0
push edi
call fcn.0052e300
add esp, 0x28
test edi, edi
je 0x4939a3
mov eax, dword [esp + 0x8b4]
lea edx, [esp + 0x8b8]
push edx
push eax
dec esi
push esi
push edi
call fcn.0052a7b0
add esp, 0x10
lea ecx, [esp + 0x498]
push ecx
xor ebx, ebx
call ebp
test eax, eax
je 0x493886
mov ebx, 1
lea edx, [esp + 0x498]
push 0x5d2c0c
push edx
call fcn.005295c3
mov esi, eax
add esp, 8
test esi, esi
je 0x4939a3
test ebx, ebx
jne 0x4938c3
push esi
push 2
lea eax, [esp + 0x1c]
push 1
push eax
mov dword [esp + 0x24], 0xfeff
call fcn.0052cdaa
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor edx, edx
push 0x5a
push edx
lea eax, [esp + 0x32]
push eax
mov word [esp + 0x34], dx
call fcn.0052e300
movzx ecx, word [esp + 0x32]
movzx edx, word [esp + 0x30]
movzx eax, word [esp + 0x2e]
push ecx
movzx ecx, word [esp + 0x30]
push edx
movzx edx, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x32]
push ecx
movzx ecx, word [esp + 0x34]
push edx
push eax
push ecx
lea edx, [esp + 0x50]
push str.__4d__02d__02d__02d:_02d:_02d._03d_
push edx
call fcn.00527adc
lea eax, [esp + 0x58]
add esp, 0x30
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x493925
sub eax, edx
sar eax, 1
push esi
add eax, eax
push eax
lea ecx, [esp + 0x30]
push 1
push ecx
call fcn.0052cdaa
mov eax, edi
add esp, 0x10
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x493950
sub eax, edx
sar eax, 1
push esi
lea edx, [eax + eax]
push edx
push 1
push edi
call fcn.0052cdaa
push esi
push 2
lea eax, [esp + 0x28]
push 1
push eax
mov dword [esp + 0x30], 0xd
call fcn.0052cdaa
push esi
push 2
lea ecx, [esp + 0x38]
push 1
push ecx
mov dword [esp + 0x40], 0xa
call fcn.0052cdaa
push esi
call fcn.00529651
add esp, 0x34
mov ecx, dword [esp + 0x8ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005273c3
add esp, 0x8a0
ret