Function at 0x4017d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4250fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c4
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x268]
or ebp, 0xffffffff
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x4e4]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x268]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x268]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ldcab.ini
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x268]
mov ecx, ebx
push eax
and ecx, 3
push 0
push str.FileTotal
rep movsb byte es:[edi], byte [esi]
push str.CabFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3d0]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x268]
lea edx, [esp + 0x3d0]
push ecx
push 0x104
push edx
push 0x4330b8
push str.DstPath
push str.CabFile
mov dword [esp + 0x60], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, 1
mov dword [esp + 0x28], 1
jl 0x401e75
mov bl, 0xb
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x36c]
push eax
push str.File__d
push ecx
call fcn.0040b6a0
add esp, 0xc
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x164]
lea edx, [esp + 0x268]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x168]
push 0x104
push eax
push 0x4330b8
lea ecx, [esp + 0x37c]
push str.SrcFilePath
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x60]
lea edx, [esp + 0x3d0]
push 0x4330b8
push edx
rep stosd dword es:[edi], eax
call fcn.0040b5d0
add esp, 8
test eax, eax
jne 0x401b64
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x401985
lea edi, [esp + 0x164]
mov ecx, ebp
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x401b43
mov eax, dword [0x42f8cc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4dc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x164]
mov byte [esp + 0x4dc], 2
push ecx
lea ecx, [esp + 0x20]
call fcn.0041d24b
lea edx, [esp + 0x164]
lea ecx, [esp + 0x10]
push edx
call fcn.0041d24b
push 0x2e
lea ecx, [esp + 0x14]
call fcn.0041c3a2
test eax, eax
jle 0x401ae7
mov eax, dword [esp + 0x10]
push 0x2e
lea ecx, [esp + 0x14]
mov esi, dword [eax - 8]
call fcn.0041c3a2
sub esi, eax
lea ecx, [esp + 0x44]
dec esi
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.0041c2ae
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4e0], 3
call fcn.0041d1fb
lea ecx, [esp + 0x44]
mov byte [esp + 0x4dc], 2
call fcn.0041d10e
push 0x2e
lea ecx, [esp + 0x20]
call fcn.0041c3a2
lea edx, [esp + 0x5c]
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.0041c32a
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4e0], 4
call fcn.0041d1fb
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4dc], 2
call fcn.0041d10e
lea eax, [esp + 0x1c]
push 0x28
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.0041c0e9
lea edx, [esp + 0x10]
mov byte [esp + 0x4dc], 5
push edx
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0041d2f1
push 0x29
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0x4e8], 6
call fcn.0041c0e9
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x4e0], 7
call fcn.0041d1fb
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4dc], 6
call fcn.0041d10e
lea ecx, [esp + 0x54]
mov byte [esp + 0x4dc], 5
call fcn.0041d10e
lea ecx, [esp + 0x30]
mov byte [esp + 0x4dc], 2
call fcn.0041d10e
jmp 0x401af8
lea edx, [esp + 0x164]
lea ecx, [esp + 0x24]
push edx
call fcn.0041d24b
mov esi, dword [esp + 0x24]
lea edi, [esp + 0x60]
mov byte [esp + 0x4dc], 1
mov ecx, dword [esi - 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.0041d10e
lea ecx, [esp + 0x10]
mov byte [esp + 0x4dc], 0
call fcn.0041d10e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4dc], ebp
call fcn.0041d10e
mov al, byte [0x433190]
lea edx, [esp + 0x60]
cmp al, 7
jne 0x401b5a
mov edi, str..ldx
jmp 0x401e07
mov edi, str..exe
jmp 0x401e07
lea edi, [esp + 0x3d0]
mov ecx, ebp
xor eax, eax
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42f0c8
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x164]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
call fcn.0041d17c
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x58]
push ecx
push edx
mov dword [esp + 0x4e4], 8
call fcn.00405830
mov eax, dword [eax]
mov ecx, ebp
mov edi, eax
xor eax, eax
add esp, 8
lea edx, [esp + 0x60]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x58]
call fcn.0041d10e
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4dc], ebp
call fcn.0041d10e
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x401df0
mov eax, dword [0x42f8cc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x4dc], 9
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x4dc], bl
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041d24b
lea edx, [esp + 0x60]
lea ecx, [esp + 0x14]
push edx
call fcn.0041d24b
push 0x2e
lea ecx, [esp + 0x18]
call fcn.0041c3a2
test eax, eax
jle 0x401d97
mov eax, dword [esp + 0x14]
push 0x2e
lea ecx, [esp + 0x18]
mov esi, dword [eax - 8]
call fcn.0041c3a2
sub esi, eax
lea ecx, [esp + 0x4c]
dec esi
push esi
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041c2ae
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4e0], 0xc
call fcn.0041d1fb
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4dc], bl
call fcn.0041d10e
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.0041c3a2
lea edx, [esp + 0x50]
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.0041c32a
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4e0], 0xd
call fcn.0041d1fb
lea ecx, [esp + 0x50]
mov byte [esp + 0x4dc], bl
call fcn.0041d10e
lea eax, [esp + 0x18]
push 0x28
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.0041c0e9
lea edx, [esp + 0x14]
mov byte [esp + 0x4dc], 0xe
push edx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0041d2f1
push 0x29
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x4e8], 0xf
call fcn.0041c0e9
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x4e0], 0x10
call fcn.0041d1fb
lea ecx, [esp + 0x34]
mov byte [esp + 0x4dc], 0xf
call fcn.0041d10e
lea ecx, [esp + 0x38]
mov byte [esp + 0x4dc], 0xe
call fcn.0041d10e
lea ecx, [esp + 0x40]
mov byte [esp + 0x4dc], bl
call fcn.0041d10e
jmp 0x401da5
lea edx, [esp + 0x60]
lea ecx, [esp + 0x20]
push edx
call fcn.0041d24b
mov esi, dword [esp + 0x20]
lea edi, [esp + 0x60]
mov byte [esp + 0x4dc], 0xa
mov ecx, dword [esi - 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.0041d10e
lea ecx, [esp + 0x14]
mov byte [esp + 0x4dc], 9
call fcn.0041d10e
lea ecx, [esp + 0x18]
mov dword [esp + 0x4dc], ebp
call fcn.0041d10e
mov al, byte [0x433190]
lea edx, [esp + 0x60]
cmp al, 7
mov edi, str..ldx
je 0x401e07
mov edi, str..Ldm
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x164]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov ecx, dword [esp + 0x4e4]
lea edx, [esp + 0x60]
test eax, eax
push ecx
lea eax, [esp + 0x168]
push edx
push eax
je 0x401e58
call fcn.00402150
jmp 0x401e5d
call fcn.00401f90
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
add esp, 0xc
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jle 0x4018c6
mov ecx, dword [esp + 0x4d4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x4d0
ret