Function at 0x402620
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43f3fc
mov eax, dword fs:[0]
push eax
sub esp, 0xbb4
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0xbb0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0xbc8]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x30], esi
call fcn.00413be1
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40267d
push 0x80004005
call fcn.0040a000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x208
lea ecx, [esp + 0x6b8]
push ebx
push ecx
mov dword [esp + 0xbdc], ebx
call fcn.004253a0
lea edx, [esp + 0x6c0]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4026b5
lea eax, [esp + 0x6b4]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4026c7
mov edx, dword [str.ldcab.ini]
mov ecx, dword [0x447920]
mov dword [eax], edx
mov dx, word [0x447924]
mov dword [eax + 4], ecx
mov cl, byte [0x447926]
mov word [eax + 8], dx
lea edx, [esp + 0x6b4]
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 + 0x1c]
push str.DoUDiskCompress_FileTotal__d_
push eax
mov dword [esp + 0x40], esi
call fcn.00409910
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ebx
push ecx
push 0x453d11
call fcn.0040d890
push 0x208
lea edx, [esp + 0x9c0]
push ebx
push edx
call fcn.004253a0
add esp, 0xc
lea eax, [esp + 0x6b4]
push eax
push 0x208
lea ecx, [esp + 0x9c4]
push ecx
push 0x4484b0
push str.DstPath
push str.CabFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x9bc]
push edx
lea eax, [esp + 0x1c]
push str.DoUDiskCompress_DstPath__s_
push eax
call fcn.00409910
mov edi, dword [esp + 0x24]
add esp, 0xc
push ebx
push edi
push 0x453d11
call fcn.0040d890
cmp esi, 1
mov dword [esp + 0x28], 1
jl 0x402b9b
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x248]
push str.File__d
push edx
call fcn.00421f65
add esp, 0xc
push 0x208
lea eax, [esp + 0x3b0]
push ebx
push eax
call fcn.004253a0
add esp, 0xc
lea ecx, [esp + 0x6b4]
push ecx
push 0x208
lea edx, [esp + 0x3b4]
push edx
push 0x4484b0
push str.SrcFilePath
lea eax, [esp + 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x208
lea ecx, [esp + 0x40]
push ebx
push ecx
call fcn.004253a0
add esp, 0xc
xor eax, eax
mov cl, byte [esp + eax + 0x9bc]
mov byte [esp + eax + 0x3c], cl
inc eax
cmp cl, bl
jne 0x402823
lea edi, [esp + 0x3c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x402838
mov dx, word [0x447968]
lea eax, [esp + 0x3ac]
push eax
lea ecx, [esp + 0x30]
mov word [edi], dx
call fcn.00409b60
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0xbd4], 1
call fcn.0040a890
mov eax, dword [eax]
add esp, 4
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x402878
lea edi, [esp + 0x3c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x402888
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x38]
and ecx, 3
add eax, 0xfffffff0
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4028be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xbd0], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028e5
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 + 0x5b8]
push ebx
push ecx
mov word [esp + 0x28], ax
mov byte [esp + 0x2a], al
call fcn.004253a0
add esp, 0xc
push 0x100
lea edx, [esp + 0x8c0]
push ebx
push edx
call fcn.004253a0
add esp, 0xc
push 0x100
lea eax, [esp + 0x2b0]
push ebx
push eax
call fcn.004253a0
add esp, 0xc
lea ecx, [esp + 0x2ac]
push ecx
lea edx, [esp + 0x8c0]
push edx
lea eax, [esp + 0x5bc]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.004227bf
add esp, 0x14
call fcn.00413be1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x402673
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0xbd0], 2
call fcn.00413be1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x402673
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push ebx
push 0x4484b0
lea ecx, [esp + 0x28]
mov byte [esp + 0xbd8], 3
call fcn.00409f10
lea eax, [esp + 0x2ac]
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4029d0
sub eax, ecx
push eax
lea ecx, [esp + 0x2b0]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00409f10
push 0x4479b0
lea edx, [esp + 0x28]
push edx
call fcn.00409070
mov ebp, dword [esp + 0x24]
push 0x4484b0
push ebp
call fcn.0042351d
add esp, 8
cmp eax, ebx
setne al
cmp al, bl
je 0x402a3f
push ebp
lea eax, [esp + 0x8c0]
push eax
lea ecx, [esp + 0x5bc]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push str._s_s_s__s_
push eax
call fcn.00409910
add esp, 0x18
jmp 0x402a5e
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402a46
sub eax, edx
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x28]
call fcn.00409f10
push 0x208
lea edx, [esp + 0x40]
push ebx
push edx
call fcn.004253a0
mov esi, dword [esp + 0x2c]
mov eax, dword [esi - 0xc]
add esp, 0xc
push eax
lea eax, [esp + 0x40]
push esi
push eax
call fcn.00429f50
lea eax, [esp + 0x48]
add esp, 0xc
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x402a90
mov ecx, dword [str..Ldu]
mov dl, byte [0x4479c4]
mov dword [eax], ecx
mov byte [eax + 4], dl
mov eax, dword [esi - 0xc]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x20]
push str.DoUDiskCompress_szDstFile__s__Length__d_
push ecx
call fcn.00409910
mov edi, dword [esp + 0x28]
add esp, 0x10
push ebx
push edi
push 0x453d11
call fcn.0040d890
lea edx, [esp + 0x3ac]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x402b28
lea eax, [esp + 0x3ac]
push eax
lea ecx, [esp + 0x1c]
push str.DoUDiskCompress_PathIsDirectory__s_
push ecx
call fcn.00409910
mov edi, dword [esp + 0x24]
add esp, 0xc
push ebx
push edi
push 0x453d11
call fcn.0040d890
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x3b4]
call fcn.00403240
jmp 0x402b3e
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x3b4]
call fcn.00402ed0
lea eax, [ebp - 0x10]
add esp, 8
mov byte [esp + 0xbd0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0xbd0], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
inc eax
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x28], eax
jle 0x4027b1
lea eax, [edi - 0x10]
mov dword [esp + 0xbd0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402bc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xbc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbb0]
xor ecx, esp
call fcn.00421f05
add esp, 0xbc0
ret