Function at 0x4d7d00
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65841c
mov eax, dword fs:[0]
push eax
sub esp, 0x374
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
mov edi, ecx
mov dword [ebp - 0x2f0], ecx
test edi, edi
je 0x4d81f7
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0
push 0x1c
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x320]
call fcn.0049f410
push str.Thorzip
lea ecx, [ebp - 0x320]
mov dword [ebp - 4], 0
call fcn.0049f700
mov ebx, dword [ebp - 0x320]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4d7dae
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.CompressModeConfig.data
lea edx, [ebp - 0x320]
lea ecx, [ebp - 0x340]
call fcn.0049f250
add esp, 4
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x340]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x2e8]
test eax, eax
jne 0x4d7f99
call fcn.0054a232
push str.CompressModeConfig
lea eax, [ebp - 0x2f8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2e8]
call fcn.0054a5b2
xor esi, esi
nop dword [eax + eax]
push dword [esi*4 + 0x6a70ec]
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.0054a5b2
xor ebx, ebx
nop dword [eax + eax]
push dword [ebx*4 + 0x6a70d8]
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.0054a5b2
mov eax, dword [edi]
lea ecx, [ebp - 0x2ec]
push esi
push str.format
mov eax, dword [eax + ebx*4]
movups xmm0, xmmword [eax]
mov edi, dword [eax + 0x18]
movups xmmword [ebp - 0x330], xmm0
movq xmm0, qword [eax + 0x10]
lea eax, [ebp - 0x2fc]
push eax
movq qword [ebp - 0x350], xmm0
call fcn.0054a531
mov ecx, eax
call fcn.0054a27c
push ebx
push str.mode
lea eax, [ebp - 0x300]
push eax
lea ecx, [ebp - 0x2ec]
call fcn.0054a531
mov ecx, eax
call fcn.0054a27c
movups xmm0, xmmword [ebp - 0x330]
lea ecx, [ebp - 0x2ec]
psrldq xmm0, 8
movd eax, xmm0
push eax
push str.methodId
lea eax, [ebp - 0x304]
push eax
call fcn.0054a531
mov ecx, eax
call fcn.0054a27c
movups xmm0, xmmword [ebp - 0x330]
lea ecx, [ebp - 0x2ec]
psrldq xmm0, 0xc
movd eax, xmm0
push eax
push str.dicSize
lea eax, [ebp - 0x308]
push eax
call fcn.0054a531
mov ecx, eax
call fcn.0054a291
push dword [ebp - 0x350]
lea eax, [ebp - 0x30c]
push str.orderSize
push eax
lea ecx, [ebp - 0x2ec]
call fcn.0054a531
mov ecx, eax
call fcn.0054a291
push dword [ebp - 0x34c]
lea eax, [ebp - 0x310]
push str.solidSize
push eax
lea ecx, [ebp - 0x2ec]
call fcn.0054a531
mov ecx, eax
call fcn.0054a291
push edi
push str.threadNum
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x2ec]
call fcn.0054a531
mov ecx, eax
call fcn.0054a291
mov edi, dword [ebp - 0x2f0]
inc ebx
cmp ebx, 5
jl 0x4d7e30
inc esi
add edi, 0xc
mov dword [ebp - 0x2f0], edi
cmp esi, 2
jl 0x4d7e10
mov ebx, dword [ebp - 0x340]
jmp 0x4d81c3
call fcn.0054a232
push 1
push 0x74
push ebx
lea eax, [ebp - 0x32c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2e8]
call fcn.0054b745
lea ecx, [ebp - 0x32c]
call fcn.0054a2d0
lea ecx, [ebp - 0x2e8]
test al, al
je 0x4d81de
push 0
push str.CompressModeConfig
lea eax, [ebp - 0x2f4]
push eax
call fcn.0054a79c
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.0054b26f
lea ecx, [ebp - 0x2f0]
call fcn.0054a2f6
test eax, eax
je 0x4d81c3
nop word [eax + eax]
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0054b26f
lea ecx, [ebp - 0x2ec]
call fcn.0054a2f6
test eax, eax
je 0x4d8196
push 0
push 0
push str.format
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x2ec]
call fcn.0054a72b
mov ecx, eax
call fcn.0054a6c0
push 0
push 0
mov esi, eax
lea ecx, [ebp - 0x2ec]
push str.mode
lea eax, [ebp - 0x310]
push eax
call fcn.0054a72b
mov ecx, eax
call fcn.0054a6c0
lea ecx, [esi + esi*2]
mov ecx, dword [edi + ecx*4]
mov eax, dword [ecx + eax*4]
lea ecx, [ebp - 0x2ec]
movups xmm1, xmmword [eax]
mov esi, dword [eax + 0x18]
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x36c], xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
movd eax, xmm0
movups xmmword [ebp - 0x358], xmm1
push eax
push 0
push str.methodId
lea eax, [ebp - 0x30c]
push eax
call fcn.0054a72b
mov ecx, eax
call fcn.0054d817
movups xmm0, xmmword [ebp - 0x358]
lea ecx, [ebp - 0x2ec]
psrldq xmm0, 0xc
movd eax, xmm0
push eax
push 0
push str.dicSize
lea eax, [ebp - 0x308]
push eax
call fcn.0054a72b
mov ecx, eax
call fcn.0054d83a
push dword [ebp - 0x36c]
lea eax, [ebp - 0x304]
push 0
push str.orderSize
push eax
lea ecx, [ebp - 0x2ec]
call fcn.0054a72b
mov ecx, eax
call fcn.0054d83a
push dword [ebp - 0x368]
lea eax, [ebp - 0x300]
push 0
push str.solidSize
push eax
lea ecx, [ebp - 0x2ec]
call fcn.0054a72b
mov ecx, eax
call fcn.0054d83a
push esi
push 0
push str.threadNum
lea eax, [ebp - 0x2fc]
push eax
lea ecx, [ebp - 0x2ec]
call fcn.0054a72b
mov ecx, eax
call fcn.0054d83a
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x2ec]
call fcn.0054b93e
lea ecx, [ebp - 0x2ec]
mov eax, dword [eax]
mov dword [ebp - 0x2ec], eax
call fcn.0054a2f6
test eax, eax
jne 0x4d8035
lea eax, [ebp - 0x334]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0054b93e
lea ecx, [ebp - 0x2f0]
mov eax, dword [eax]
mov dword [ebp - 0x2f0], eax
call fcn.0054a2f6
test eax, eax
jne 0x4d8010
push 0
push 1
push 0x6adcc8
push ebx
lea ecx, [ebp - 0x2e8]
call fcn.0054d707
lea ecx, [ebp - 0x2e8]
call fcn.0054a277
push ebx
call fcn.00545b61
push dword [ebp - 0x320]
call fcn.00545b61
add esp, 8
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