Function at 0x408050
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43bb9c
mov eax, dword fs:[0]
push eax
sub esp, 0xbac
mov eax, dword [0x44ccd0]
xor eax, esp
mov dword [esp + 0xba8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44ccd0]
xor eax, esp
push eax
lea eax, [esp + 0xbc0]
mov dword fs:[0], eax
mov esi, dword [esp + 0xbd0]
mov dword [esp + 0x2c], esi
call fcn.004125a5
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4080b2
push 0x80004005
call fcn.004011d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x208
lea ecx, [esp + 0x6b0]
push ebx
push ecx
mov dword [esp + 0xbd4], ebx
call fcn.00421360
lea edx, [esp + 0x6b8]
add esp, 0xc
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4080f0
lea eax, [esp + 0x6ac]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x408102
mov edx, dword [str.ldcab.ini]
mov ecx, dword [0x43eba8]
mov dword [eax], edx
mov dx, word [0x43ebac]
mov dword [eax + 4], ecx
mov cl, byte [0x43ebae]
mov word [eax + 8], dx
lea edx, [esp + 0x6ac]
push edx
push ebx
push str.FileTotal
push str.CabFile
mov byte [eax + 0xa], cl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
push esi
lea eax, [esp + 0x18]
push str.DoUDiskCompress_FileTotal__d_
push eax
mov dword [esp + 0x3c], esi
call fcn.00401f40
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ebx
push ecx
mov ecx, 0x44e3c9
call fcn.0040be50
push 0x208
lea edx, [esp + 0x9b8]
push ebx
push edx
call fcn.00421360
add esp, 0xc
lea eax, [esp + 0x6ac]
push eax
push 0x208
lea ecx, [esp + 0x9bc]
push ecx
push 0x43e84c
push str.DstPath
push str.CabFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x9b4]
push edx
lea eax, [esp + 0x18]
push str.DoUDiskCompress_DstPath__s_
push eax
call fcn.00401f40
mov edi, dword [esp + 0x20]
add esp, 0xc
push ebx
push edi
mov ecx, 0x44e3c9
call fcn.0040be50
cmp esi, 1
mov dword [esp + 0x24], 1
jl 0x4085d0
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x244]
push str.File__d
push edx
call fcn.004214c5
push 0x208
lea eax, [esp + 0x3b4]
push ebx
push eax
call fcn.00421360
add esp, 0x18
lea ecx, [esp + 0x6ac]
push ecx
push 0x208
lea edx, [esp + 0x3ac]
push edx
push 0x43e84c
push str.SrcFilePath
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x208
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00421360
add esp, 0xc
xor eax, eax
jmp 0x408260
mov cl, byte [esp + eax + 0x9b4]
mov byte [esp + eax + 0x38], cl
inc eax
cmp cl, bl
jne 0x408260
lea edi, [esp + 0x38]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x408275
mov dx, word [0x43e584]
lea eax, [esp + 0x3a4]
push eax
lea ecx, [esp + 0x2c]
mov word [edi], dx
call fcn.00402d40
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0xbd0], 1
call fcn.00408f10
mov eax, dword [eax]
add esp, 8
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4082b6
lea edi, [esp + 0x38]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4082c6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x34]
and ecx, 3
add eax, 0xfffffff0
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xbc8], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408323
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x100
xor eax, eax
lea ecx, [esp + 0x5b0]
push ebx
push ecx
mov word [esp + 0x24], ax
mov byte [esp + 0x26], al
call fcn.00421360
push 0x100
lea edx, [esp + 0x8c4]
push ebx
push edx
call fcn.00421360
push 0x100
lea eax, [esp + 0x2c0]
push ebx
push eax
call fcn.00421360
lea ecx, [esp + 0x2c8]
push ecx
lea edx, [esp + 0x8dc]
push edx
lea eax, [esp + 0x5d8]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.00421c47
add esp, 0x38
call fcn.004125a5
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4080a8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0xbc8], 2
call fcn.004125a5
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4080a8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push ebx
push 0x43e84c
lea ecx, [esp + 0x24]
mov byte [esp + 0xbd0], 3
call fcn.00401960
lea eax, [esp + 0x2a4]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x408402
sub eax, ecx
push eax
lea ecx, [esp + 0x2a8]
push ecx
lea ecx, [esp + 0x28]
call fcn.00401960
push 0x43e84c
push 0x43ec1c
lea ecx, [esp + 0x28]
call fcn.00401a70
mov ebp, dword [esp + 0x20]
push 0x43e84c
push ebp
call fcn.004205bb
add esp, 8
cmp eax, ebx
setne al
cmp al, bl
je 0x408475
push ebp
lea edx, [esp + 0x8b8]
push edx
lea eax, [esp + 0x5b4]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push str._s_s_s__s_
push edx
call fcn.00401f40
add esp, 0x18
jmp 0x408498
lea eax, [esp + 0x38]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408480
sub eax, edx
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
call fcn.00401960
push 0x208
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00421360
mov esi, dword [esp + 0x28]
mov eax, dword [esi - 0xc]
push eax
lea edx, [esp + 0x48]
push esi
push edx
call fcn.004216f0
lea eax, [esp + 0x50]
add esp, 0x18
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4084c3
mov ecx, dword [str..Ldu]
mov dl, byte [0x43ec0c]
mov dword [eax], ecx
mov byte [eax + 4], dl
mov eax, dword [esi - 0xc]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
push str.DoUDiskCompress_szDstFile__s__Length__d_
push ecx
call fcn.00401f40
mov edi, dword [esp + 0x24]
add esp, 0x10
push ebx
push edi
mov ecx, 0x44e3c9
call fcn.0040be50
lea edx, [esp + 0x3a4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x40855c
lea eax, [esp + 0x3a4]
push eax
lea ecx, [esp + 0x18]
push str.DoUDiskCompress_PathIsDirectory__s_
push ecx
call fcn.00401f40
mov edi, dword [esp + 0x20]
add esp, 0xc
push ebx
push edi
mov ecx, 0x44e3c9
call fcn.0040be50
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x3ac]
push ecx
call fcn.00406900
jmp 0x408573
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x3ac]
push ecx
call fcn.00406590
lea eax, [ebp - 0x10]
add esp, 0xc
mov byte [esp + 0xbc8], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40859a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0xbc8], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4085bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
inc eax
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
jle 0x4081ec
lea eax, [edi - 0x10]
mov dword [esp + 0xbc8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4085f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xbc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xba8]
xor ecx, esp
call fcn.0041f914
add esp, 0xbb8
ret