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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2240
call fcn.00470830
mov eax, dword [0x678390]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
lea eax, [ebp - 0x414]
push edi
xor esi, esi
push esi
push eax
call fcn.00483520
push str.C:log_
mov ebx, 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00491b63
push 0x800
lea eax, [ebp - 0x1230]
push esi
push eax
call fcn.00483520
push 0x5e9c5c
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push str._s_s.log
push eax
call fcn.004527b4
add esp, 0x34
call fcn.00453aa1
test al, al
je 0x4529c0
les ebx, [eax + 0x24]
jnp 0x4529b1
pop eax
and al, 0x7b
cld
sub dword [ebp + 0x504f3a3d], edi
pop ss
xchg esp, eax
xchg esp, esp
sbb dl, byte [edi - 0x73]
test esp, ebx
idiv edi
call dword [esi + 0x50]
push edi
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.00483520
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00483520
add esp, 0x18
lea eax, [ebp - 0x20c]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00491bc7
pop ecx
test eax, eax
je 0x452bc5
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00483b59
xor ecx, ecx
push 0x5e9c5c
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xa2c]
push 0x5ecf50
push eax
call fcn.004527b4
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0xa2c]
add esp, 0x18
push eax
call ebx
test eax, eax
je 0x452bc5
lea eax, [ebp - 0x20c]
push eax
call fcn.00491bc7
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.00491b63
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x61c]
push str._s_s.txt
push eax
call fcn.004527b4
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1230]
push 0x3ff
push 0x400
push eax
call fcn.00452c38
push esi
call fcn.00486e66
mov dword [ebp - 0x2240], eax
lea eax, [ebp - 0x2240]
push eax
mov dword [ebp - 0x223c], edx
call fcn.0048fbbe
add esp, 0x40
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test edi, edi
je 0x452bc5
lea ecx, [ebp - 0x1230]
push ecx
push eax
push dword [edi]
mov eax, dword [edi + 0x10]
push dword [edi + 4]
inc eax
push dword [edi + 8]
push dword [edi + 0xc]
push eax
mov eax, dword [edi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x2230]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.004527d2
xor eax, eax
add esp, 0x28
mov word [ebp - 0xa32], ax
lea eax, [ebp - 0x61c]
push eax
call ebx
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x61c]
push 0x5ee4d4
push eax
cmovne esi, ebx
call fcn.004906f9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x452bc5
test esi, esi
jne 0x452b6b
push edi
push 2
lea eax, [ebp - 0x2238]
mov dword [ebp - 0x2238], 0xfeff
push ebx
push eax
call fcn.00491b0b
add esp, 0x10
lea eax, [ebp - 0x2230]
push eax
call fcn.00491bc7
push edi
add eax, eax
push eax
lea eax, [ebp - 0x2230]
push ebx
push eax
call fcn.00491b0b
push edi
push 2
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2234], 0xd
push ebx
push eax
call fcn.00491b0b
push edi
push 2
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2234], 0xa
push ebx
push eax
call fcn.00491b0b
push edi
call fcn.004904f7
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047070c
mov esp, ebp
pop ebp
ret