Function at 0x4d93e0
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6585ee
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20a
lea eax, [ebp - 0x270]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x270]
push 0
push 0x1c
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edi, edi
cmp word [ebp - 0x270], di
je 0x4d945c
nop
inc edi
cmp word [ebp + edi*2 - 0x270], 0
jne 0x4d9450
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00545b74
add esp, 4
mov dword [ebp - 0x284], edi
mov ebx, eax
mov dword [ebp - 0x280], edi
lea ecx, [edi*2 + 2]
mov dword [ebp - 0x288], ebx
lea eax, [ebp - 0x270]
push ecx
push eax
push ebx
call fcn.005e0850
add esp, 0xc
mov byte [ebp - 4], 1
xor esi, esi
nop word [eax + eax]
inc esi
cmp word [esi*2 + str.Thorzip], 0
jne 0x4d94b0
test esi, esi
je 0x4d94e8
lea ecx, [esi + edi]
mov eax, ecx
add ecx, 0x10
shr eax, 1
add eax, ecx
lea ecx, [ebp - 0x288]
and eax, 0xfffffff0
dec eax
push eax
call fcn.0049f070
mov edi, dword [ebp - 0x284]
mov ebx, dword [ebp - 0x288]
lea eax, [esi*2 + 2]
push eax
lea ecx, [ebx + edi*2]
push str.Thorzip
push ecx
call fcn.005e0850
add esp, 0xc
add edi, esi
mov dword [ebp - 0x284], edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4d951c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.CompressCfg.data
lea edx, [ebp - 0x288]
lea ecx, [ebp - 0x27c]
call fcn.0049f250
add esp, 4
push 0x50
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x60]
push dword [ebp + 8]
push 0x6b51a0
push eax
call fcn.00485390
mov esi, dword [ebp - 0x27c]
lea eax, [ebp - 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0xc
push esi
push eax
push str.CompressFormat
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x60]
push dword [ebp + 0xc]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.Level
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x60]
push dword [ebp + 0x10]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.UpdateMode
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x60]
push dword [ebp + 0x14]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.VolumeIndex
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x60]
push dword [ebp + 0x18]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.EncrpytAlgorithm
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x60]
push dword [ebp + 0x1c]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.PathMode
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x60]
push dword [ebp + 0x20]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.IncludeFileIndex
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x60]
push dword [ebp + 0x24]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.FileTimeIndex
push str.CompressCfg
call edi
cmp byte [ebp + 0x28], 0
mov ecx, 0x6ad26c
push esi
mov esi, 0x6ae17c
mov eax, esi
cmove eax, ecx
push eax
push str.DeleteAfterCompress
push str.CompressCfg
call edi
push dword [ebp - 0x27c]
cmp byte [ebp + 0x29], 0
mov ecx, 0x6ad26c
mov eax, esi
cmove eax, ecx
push eax
push str.TestAfterCompress
push str.CompressCfg
call edi
push dword [ebp - 0x27c]
cmp byte [ebp + 0x2a], 0
mov ecx, 0x6ad26c
mov eax, esi
cmove eax, ecx
push eax
push str.CreateSolid
push str.CompressCfg
call edi
push dword [ebp - 0x27c]
cmp byte [ebp + 0x2b], 0
mov ecx, 0x6ad26c
mov eax, esi
cmove eax, ecx
push eax
push str.CompressToSingleDir
push str.CompressCfg
call edi
push dword [ebp - 0x27c]
cmp byte [ebp + 0x2c], 0
mov ecx, 0x6ad26c
mov eax, esi
cmove eax, ecx
push eax
push str.CompressSharedFile
push str.CompressCfg
call edi
push dword [ebp - 0x27c]
cmp byte [ebp + 0x2d], 0
mov ecx, 0x6ad26c
mov eax, esi
cmove eax, ecx
push eax
push str.CreateSfx
push str.CompressCfg
call edi
push dword [ebp - 0x27c]
cmp byte [ebp + 0x2e], 0
mov ecx, 0x6ad26c
mov eax, esi
cmove eax, ecx
push eax
push str.ShowPassword
push str.CompressCfg
call edi
push dword [ebp - 0x27c]
cmp byte [ebp + 0x2f], 0
mov ecx, 0x6ad26c
mov eax, esi
cmove eax, ecx
push eax
push str.EncryptFileName
push str.CompressCfg
call edi
push dword [ebp - 0x27c]
cmp byte [ebp + 0x30], 0
mov ecx, 0x6ad26c
mov eax, esi
cmove eax, ecx
push eax
push str.SaveFileSecurity
push str.CompressCfg
call edi
push dword [ebp - 0x27c]
cmp byte [ebp + 0x31], 0
mov eax, esi
mov ecx, 0x6ad26c
cmove eax, ecx
push eax
push str.SaveFileStream
push str.CompressCfg
call edi
push dword [ebp - 0x27c]
cmp byte [ebp + 0x32], 0
mov ecx, 0x6ad26c
mov eax, esi
cmove eax, ecx
push eax
push str.SaveSymbolLink
push str.CompressCfg
call edi
push dword [ebp - 0x27c]
cmp byte [ebp + 0x33], 0
mov ecx, 0x6ad26c
mov eax, esi
cmove eax, ecx
push eax
push str.SaveHardLink
push str.CompressCfg
call edi
push dword [ebp - 0x27c]
cmp byte [ebp + 0x34], 0
mov ecx, 0x6ad26c
mov eax, esi
cmove eax, ecx
push eax
push str.EnableFileFilters
push str.CompressCfg
call edi
push dword [ebp - 0x27c]
cmp byte [ebp + 0x35], 0
mov eax, 0x6ad26c
cmove esi, eax
push esi
push str.AutoNewLine
push str.CompressCfg
call edi
mov esi, dword [ebp - 0x27c]
push esi
push dword [ebp + 0x38]
push str.ExcludeFilelist
push str.CompressCfg
call edi
push esi
push dword [ebp + 0x44]
push str.StoreFilelist
push str.CompressCfg
call edi
push esi
push dword [ebp + 0x5c]
push 0x6b5664
push str.CompressCfg
call edi
push esi
push dword [ebp + 0x68]
push str.Hour
push str.CompressCfg
call edi
push esi
push dword [ebp + 0x74]
push 0x6b5678
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
movzx eax, word [ebp + 0x80]
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.Year1
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
movzx eax, word [ebp + 0x82]
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.Month1
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
movzx eax, word [ebp + 0x84]
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.DayOfWeek1
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
movzx eax, word [ebp + 0x86]
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.Day1
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
movzx eax, word [ebp + 0x88]
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.Hour1
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
movzx eax, word [ebp + 0x8a]
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.Minute1
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
movzx eax, word [ebp + 0x8c]
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.Second1
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
movzx eax, word [ebp + 0x8e]
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.Milliseconds1
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
movzx eax, word [ebp + 0x90]
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.Year2
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
movzx eax, word [ebp + 0x92]
add esp, 0xc
push eax
push 0x6b51a0
lea eax, [ebp - 0x60]
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.Month2
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
movzx eax, word [ebp + 0x94]
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.DayOfWeek2
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
movzx eax, word [ebp + 0x96]
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.Day2
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
movzx eax, word [ebp + 0x98]
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.Hour2
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
movzx eax, word [ebp + 0x9a]
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.Minute2
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
movzx eax, word [ebp + 0x9c]
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.Second2
push str.CompressCfg
call edi
push 0x50
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.005e0dd0
movzx eax, word [ebp + 0x9e]
add esp, 0xc
push eax
lea eax, [ebp - 0x60]
push 0x6b51a0
push eax
call fcn.00485390
add esp, 0xc
lea eax, [ebp - 0x60]
push esi
push eax
push str.Milliseconds2
push str.CompressCfg
call edi
push str._annotation.txt
lea edx, [ebp - 0x288]
lea ecx, [ebp - 0x2a0]
call fcn.0049f250
mov edi, dword [ebp - 0x2a0]
add esp, 4
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x294], eax
cmp eax, 0xffffffff
jne 0x4d9cfe
push edi
call fcn.00545b61
add esp, 4
push esi
jmp 0x4d9d65
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x290]
push 0
push ecx
push 2
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x28c], 0xfeff
push ecx
push eax
call edi
mov esi, dword [ebp + 0x50]
lea eax, [ebp - 0x290]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
mov esi, dword [ebp - 0x294]
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2a0]
call fcn.00545b61
add esp, 4
push dword [ebp - 0x27c]
call fcn.00545b61
add esp, 4
push ebx
call fcn.00545b61
add esp, 4
push dword [ebp + 0x74]
call fcn.00545b61
add esp, 4
push dword [ebp + 0x68]
call fcn.00545b61
add esp, 4
push dword [ebp + 0x5c]
call fcn.00545b61
add esp, 4
push dword [ebp + 0x50]
call fcn.00545b61
add esp, 4
push dword [ebp + 0x44]
call fcn.00545b61
add esp, 4
push dword [ebp + 0x38]
call fcn.00545b61
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret