Function at 0x43f7d0
Capabilities:
Create directory
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0x5c
push 0x5b9e98
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
call fcn.0052df7a
mov edi, eax
add esp, 8
test edi, edi
je 0x43f820
movzx esi, word [edi + 2]
xor eax, eax
push eax
push 0x5b9e98
push eax
mov word [edi + 2], ax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov word [edi + 2], si
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x5b9e98
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, 0xffffffff
jne 0x43f86a
push ecx
call fcn.00440af0
mov edi, eax
mov dword [ebp - 0xc], eax
cmp edi, 0xffffffff
jne 0x43f86a
mov ecx, str.SaveLogToFile1
call fcn.00401db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x43f89e
push edi
call esi
push ecx
call fcn.00440af0
mov edi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x10], 2
je 0x43f8d3
push edi
call esi
push ecx
call fcn.00440af0
mov edi, eax
mov dword [ebp - 0x10], 2
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
jne 0x43f8eb
mov ecx, str.SaveLogToFile2
call fcn.00401db0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebx + 0x12c]
cmp esi, dword [ebx + 0x130]
je 0x43fa33
xor edi, edi
nop
push ecx
push esi
xor ecx, ecx
call fcn.00401ab0
add esi, 0x30
add esp, 8
add edi, eax
cmp esi, dword [ebx + 0x130]
jne 0x43f900
mov dword [ebp - 0x18], edi
test edi, edi
mov edi, dword [ebp - 0xc]
je 0x43fa33
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x18]
push eax
call fcn.0050e106
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], esi
push 0
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub eax, 8
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call esi
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff8
push eax
push dword [ebp - 0x14]
push edi
call esi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
add eax, ecx
mov esi, dword [ebx + 0x12c]
mov dword [ebp - 0x1c], eax
cmp esi, dword [ebx + 0x130]
je 0x43f9a2
mov edi, eax
push ecx
push esi
mov ecx, edi
call fcn.00401ab0
add esi, 0x30
add esp, 8
add edi, eax
cmp esi, dword [ebx + 0x130]
jne 0x43f986
mov edi, dword [ebp - 0xc]
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
lea eax, [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push eax
push 4
lea eax, [ebp - 4]
push eax
push edi
call esi
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push edi
call esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp - 0x14]
push edi
call esi
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call eax
push dword [ebp - 0x14]
call fcn.005295dd
mov edi, dword [ebx + 0x130]
add esp, 4
mov esi, dword [ebx + 0x12c]
cmp esi, edi
je 0x43fa1e
jmp 0x43fa10
mov ecx, esi
call fcn.004019c0
add esi, 0x30
cmp esi, edi
jne 0x43fa10
mov eax, dword [ebx + 0x12c]
mov dword [ebx + 0x130], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4