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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658471
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x360
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x308], esi
test esi, esi
je 0x4d865f
push 0x20a
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x228]
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 - 0x228]
push eax
lea ecx, [ebp - 0x330]
call fcn.0049f410
push str.Thorzip
lea ecx, [ebp - 0x330]
mov dword [ebp - 4], 0
call fcn.0049f700
mov edi, dword [ebp - 0x330]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4d82e1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.CompressModeConfig.data
lea edx, [ebp - 0x330]
lea ecx, [ebp - 0x360]
call fcn.0049f250
add esp, 4
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x360]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d83d6
xor ecx, ecx
lea edi, [esi + 4]
mov dword [ebp - 0x2f4], ecx
mov dword [ebp - 0x2f8], edi
xor eax, eax
mov dword [ebp - 0x300], eax
jmp 0x4d8336
mov edi, dword [ebp - 0x2f8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x324], xmm0
push 0x1c
mov dword [ebp - 0x324], ecx
mov dword [ebp - 0x320], eax
call fcn.005e74a6
mov esi, eax
add esp, 4
test esi, esi
je 0x4d83c5
movups xmm0, xmmword [ebp - 0x324]
lea ecx, [edi - 4]
movups xmmword [esi], xmm0
xorps xmm0, xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
call fcn.00403980
mov edx, dword [ebp - 0x2f8]
mov eax, dword [edi - 4]
mov ecx, dword [edx]
mov dword [eax + ecx*4], esi
mov eax, dword [ebp - 0x300]
inc dword [edx]
inc eax
mov ecx, dword [ebp - 0x2f4]
mov dword [ebp - 0x300], eax
cmp eax, 5
jl 0x4d8330
inc ecx
add edx, 0xc
mov dword [ebp - 0x2f4], ecx
mov edi, edx
mov dword [ebp - 0x2f8], edx
cmp ecx, 2
jl 0x4d8324
jmp 0x4d8646
push 0x6d8324
lea eax, [ebp - 0x2f9]
push eax
call fcn.005e0fac
lea ecx, [ebp - 0x2f0]
call fcn.0054a232
push 1
push 0x74
push edi
lea eax, [ebp - 0x36c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0054b745
lea ecx, [ebp - 0x36c]
call fcn.0054a2d0
lea ecx, [ebp - 0x2f0]
test al, al
je 0x4d8641
push 0
push str.CompressModeConfig
lea eax, [ebp - 0x300]
push eax
call fcn.0054a79c
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x300]
call fcn.0054b26f
lea ecx, [ebp - 0x2f8]
call fcn.0054a2f6
test eax, eax
je 0x4d863b
nop dword [eax]
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.0054b26f
lea ecx, [ebp - 0x2f4]
call fcn.0054a2f6
test eax, eax
je 0x4d860e
push 0
push 0
push str.format
lea eax, [ebp - 0x334]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.0054a72b
mov ecx, eax
call fcn.0054a6c0
push 0
push 0
mov esi, eax
lea ecx, [ebp - 0x2f4]
push str.mode
lea eax, [ebp - 0x338]
mov dword [ebp - 0x324], esi
push eax
call fcn.0054a72b
mov ecx, eax
call fcn.0054a6c0
push 0
push 0
mov dword [ebp - 0x320], eax
lea ecx, [ebp - 0x2f4]
push str.methodId
lea eax, [ebp - 0x33c]
push eax
call fcn.0054a72b
mov ecx, eax
call fcn.0054a6c0
push 0
push 0
mov dword [ebp - 0x31c], eax
lea ecx, [ebp - 0x2f4]
push str.dicSize
lea eax, [ebp - 0x340]
push eax
call fcn.0054a72b
mov ecx, eax
call fcn.0054a701
push 0
push 0
mov dword [ebp - 0x318], eax
lea ecx, [ebp - 0x2f4]
push str.orderSize
lea eax, [ebp - 0x344]
push eax
call fcn.0054a72b
mov ecx, eax
call fcn.0054a701
push 0
push 0
mov dword [ebp - 0x314], eax
lea ecx, [ebp - 0x2f4]
push str.solidSize
lea eax, [ebp - 0x348]
push eax
call fcn.0054a72b
mov ecx, eax
call fcn.0054a701
push 0
push 0
mov dword [ebp - 0x310], eax
lea ecx, [ebp - 0x2f4]
push str.threadNum
lea eax, [ebp - 0x34c]
push eax
call fcn.0054a72b
mov ecx, eax
call fcn.0054a701
push 0x1c
mov dword [ebp - 0x304], eax
call fcn.005e74a6
mov edi, eax
add esp, 4
test edi, edi
je 0x4d83c5
movups xmm0, xmmword [ebp - 0x324]
mov ecx, dword [ebp - 0x308]
mov eax, dword [ebp - 0x304]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x314]
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x18], eax
lea eax, [esi + esi*2]
lea esi, [ecx + eax*4]
mov ecx, esi
call fcn.00403980
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [eax + ecx*4], edi
lea eax, [ebp - 0x350]
inc dword [esi + 4]
lea ecx, [ebp - 0x2f4]
push eax
call fcn.0054b93e
lea ecx, [ebp - 0x2f4]
mov eax, dword [eax]
mov dword [ebp - 0x2f4], eax
call fcn.0054a2f6
test eax, eax
jne 0x4d8475
lea eax, [ebp - 0x354]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.0054b93e
lea ecx, [ebp - 0x2f8]
mov eax, dword [eax]
mov dword [ebp - 0x2f8], eax
call fcn.0054a2f6
test eax, eax
jne 0x4d8450
lea ecx, [ebp - 0x2f0]
call fcn.0054a277
push dword [ebp - 0x360]
call fcn.00545b61
push dword [ebp - 0x330]
call fcn.00545b61
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret