Function at 0x4d9000
Capabilities:
Check if file exists
Create directory
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6585a6
mov eax, dword fs:[0]
push eax
sub esp, 0xa50
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 dword [ebp - 0xa40], ecx
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x21c]
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 - 0x21c], di
je 0x4d907c
nop dword [eax]
inc edi
cmp word [ebp + edi*2 - 0x21c], 0
jne 0x4d9070
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00545b74
mov ebx, eax
mov dword [ebp - 0xa4c], edi
lea ecx, [edi*2 + 2]
mov dword [ebp - 0xa50], ebx
push ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0xa48], edi
push eax
push ebx
call fcn.005e0850
add esp, 0x10
mov dword [ebp - 4], 0
xor esi, esi
nop word [eax + eax]
inc esi
cmp word [esi*2 + str.Thorzip], 0
jne 0x4d90d0
test esi, esi
je 0x4d9108
lea ecx, [esi + edi]
mov eax, ecx
add ecx, 0x10
shr eax, 1
add eax, ecx
lea ecx, [ebp - 0xa50]
and eax, 0xfffffff0
dec eax
push eax
call fcn.0049f070
mov edi, dword [ebp - 0xa4c]
mov ebx, dword [ebp - 0xa50]
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 - 0xa4c], edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4d913c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.UncompressCfg.data
lea edx, [ebp - 0xa50]
lea ecx, [ebp - 0xa5c]
call fcn.0049f250
add esp, 4
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0xa5c]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d9175
mov byte [ebp - 0xa41], al
jmp 0x4d93a5
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push edi
push 0
push str.UpdateMode
push str.UncompressCfg
call esi
mov ecx, dword [ebp - 0xa40]
push edi
push 0
push str.OverwriteMode
push str.UncompressCfg
mov dword [ecx], eax
call esi
mov ecx, dword [ebp - 0xa40]
push edi
push 0
push str.ExtractFilePath
push str.UncompressCfg
mov dword [ecx + 4], eax
call esi
mov ecx, dword [ebp - 0xa40]
push edi
push 0
push str.DeleteMode
push str.UncompressCfg
mov dword [ecx + 8], eax
call esi
mov ecx, dword [ebp - 0xa40]
push edi
push 0
push str.ExtractSingleDir
push str.UncompressCfg
mov dword [ecx + 0xc], eax
call esi
mov ecx, dword [ebp - 0xa40]
cmp eax, 1
push edi
push 0
push str.RemainBadFile
sete al
push str.UncompressCfg
mov byte [ecx + 0x10], al
call esi
mov ecx, dword [ebp - 0xa40]
cmp eax, 1
push edi
push 1
push str.OpenPath
sete al
push str.UncompressCfg
mov byte [ecx + 0x11], al
call esi
mov ecx, dword [ebp - 0xa40]
cmp eax, 1
push edi
push 0
push str.SkipEncriptPacket
sete al
push str.UncompressCfg
mov byte [ecx + 0x12], al
call esi
mov ecx, dword [ebp - 0xa40]
cmp eax, 1
push edi
push 1
push str.SaveModifyTime
sete al
push str.UncompressCfg
mov byte [ecx + 0x13], al
call esi
mov ecx, dword [ebp - 0xa40]
cmp eax, 1
push edi
push 1
push str.SaveCreateTimes
sete al
push str.UncompressCfg
mov byte [ecx + 0x14], al
call esi
cmp eax, 1
sete al
mov ecx, dword [ebp - 0xa40]
push edi
push 1
push str.SaveRecentTime
push str.UncompressCfg
mov byte [ecx + 0x15], al
call esi
mov ecx, dword [ebp - 0xa40]
cmp eax, 1
push edi
push 0
push str.EnableExcludeList
sete al
push str.UncompressCfg
mov byte [ecx + 0x16], al
call esi
mov ecx, dword [ebp - 0xa40]
cmp eax, 1
push edi
push 0
push str.EnableAlways
sete al
push str.UncompressCfg
mov byte [ecx + 0x17], al
call esi
mov ecx, dword [ebp - 0xa40]
cmp eax, 1
push edi
push 0
push str.EnableExtractFileList
sete al
push str.UncompressCfg
mov byte [ecx + 0x18], al
call esi
mov ecx, dword [ebp - 0xa40]
cmp eax, 1
push 0x820
sete al
push 0
mov byte [ecx + 0x19], al
lea eax, [ebp - 0xa3c]
push eax
call fcn.005e0dd0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xa3c]
add esp, 0xc
push edi
push 0x410
push eax
push 0x6aa980
push str.ExcludeFileList
push str.UncompressCfg
call esi
mov ecx, dword [ebp - 0xa40]
lea eax, [ebp - 0xa3c]
push eax
lea ecx, [ecx + 0x1c]
call fcn.0049f520
push 0x820
lea eax, [ebp - 0xa3c]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0xa3c]
push edi
push 0x410
push eax
push 0x6aa980
push str.ExtractFileList
push str.UncompressCfg
call esi
mov ecx, dword [ebp - 0xa40]
lea eax, [ebp - 0xa3c]
push eax
lea ecx, [ecx + 0x28]
call fcn.0049f520
mov byte [ebp - 0xa41], 1
push edi
call fcn.00545b61
push ebx
call fcn.00545b61
mov al, byte [ebp - 0xa41]
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