Function at 0x401bd0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43eb6b
mov eax, dword fs:[0]
push eax
sub esp, 0x8d4
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0x8d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0x8e8]
mov dword fs:[0], eax
push 0x208
xor ebx, ebx
lea eax, [esp + 0x4d8]
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x34], esi
call fcn.00424c40
lea edx, [esp + 0x4e0]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x401c34
lea eax, [esp + 0x4d4]
or ebp, 0xffffffff
add eax, ebp
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x401c50
mov ecx, dword [str.ldcab.ini]
mov edx, dword [0x447890]
mov dword [eax], ecx
mov cx, word [0x447894]
mov dword [eax + 4], edx
mov dl, byte [0x447896]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
lea eax, [esp + 0x4d4]
push eax
push ebx
push str.FileTotal
push str.CabFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x208
lea ecx, [esp + 0x6e0]
mov esi, eax
push ebx
push ecx
mov dword [esp + 0x50], esi
call fcn.00424c40
add esp, 0xc
lea edx, [esp + 0x4d4]
push edx
push 0x208
lea eax, [esp + 0x6e4]
push eax
push 0x448368
push str.DstPath
push str.CabFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, 1
mov dword [esp + 0x20], 1
jl 0x4025bf
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x470]
push str.File__d
push edx
call fcn.004217fd
add esp, 0xc
push 0x208
lea eax, [esp + 0x268]
push ebx
push eax
call fcn.00424c40
add esp, 0xc
lea ecx, [esp + 0x4d4]
push ecx
push 0x208
lea edx, [esp + 0x26c]
push edx
push 0x448368
push str.SrcFilePath
lea eax, [esp + 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x208
lea ecx, [esp + 0x60]
push ebx
push ecx
call fcn.00424c40
add esp, 0xc
lea edx, [esp + 0x6dc]
push 0x448368
push edx
call fcn.00421a4e
add esp, 8
test eax, eax
jne 0x402119
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x401da5
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x264]
mov byte [esp + eax + 0x5c], cl
inc eax
cmp cl, bl
jne 0x401d90
jmp 0x4020a7
call fcn.004133f1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4025e9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x8f0], ebx
call fcn.004133f1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4025e9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x8f0], 1
call fcn.004133f1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4025e9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x264]
mov byte [esp + 0x8f0], 2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401e32
sub eax, edx
push eax
lea ecx, [esp + 0x268]
push ecx
lea ecx, [esp + 0x20]
call fcn.00409c70
lea eax, [esp + 0x264]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401e57
sub eax, edx
push eax
lea edx, [esp + 0x268]
push edx
lea ecx, [esp + 0x1c]
call fcn.00409c70
mov edi, dword [esp + 0x14]
push 0x2e
push edi
call fcn.00423215
add esp, 8
cmp eax, ebx
je 0x4020cf
sub eax, edi
cmp eax, ebx
jle 0x4020cf
mov esi, dword [edi - 0xc]
push 0x2e
push edi
call fcn.00423215
add esp, 8
cmp eax, ebx
jne 0x401ea9
mov eax, ebp
jmp 0x401eab
sub eax, edi
sub esi, eax
dec esi
push esi
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
call fcn.004090f0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x8f4], 3
call fcn.004099f0
mov byte [esp + 0x8f0], 2
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ef6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push 0x2e
push esi
call fcn.00423215
add esp, 8
cmp eax, ebx
jne 0x401f0d
mov eax, ebp
jmp 0x401f0f
sub eax, esi
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00409170
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8f4], 4
call fcn.004099f0
mov byte [esp + 0x8f0], 2
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401f57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x40]
push 0x28
push ecx
lea edi, [esp + 0x20]
call fcn.004092b0
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x904], 5
call fcn.004091f0
add esp, 0x14
lea ecx, [esp + 0x38]
push 0x29
push ecx
mov edi, eax
mov byte [esp + 0x8f8], 6
call fcn.004092b0
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x8f4], 7
call fcn.004099f0
mov byte [esp + 0x8f0], 6
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401fd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8f0], 5
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ffb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8f0], 2
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402022
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
push eax
lea edx, [esp + 0x60]
push esi
push edx
call fcn.00429730
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0x8f0], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40205f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x8f0], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402081
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x8f0], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4020a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x5c]
add eax, ebp
cmp byte [0x453d04], 7
jne 0x402100
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4020b6
mov ecx, dword [str..ldx]
mov dl, byte [0x4478cc]
jmp 0x402564
lea eax, [esp + 0x264]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4020e0
sub eax, edx
push eax
lea ecx, [esp + 0x268]
push ecx
lea ecx, [esp + 0x24]
call fcn.00409c70
jmp 0x402026
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x402100
mov ecx, dword [str..exe]
mov dl, byte [0x4478d4]
jmp 0x402564
xor eax, eax
jmp 0x402120
mov cl, byte [esp + eax + 0x6dc]
mov byte [esp + eax + 0x5c], cl
inc eax
cmp cl, bl
jne 0x402120
lea edi, [esp + 0x5c]
add edi, ebp
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x402136
mov ax, word [0x4478d8]
lea ecx, [esp + 0x264]
push ecx
lea ecx, [esp + 0x28]
mov word [edi], ax
call fcn.004098c0
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x8f4], 8
call fcn.0040a5c0
mov eax, dword [eax]
add esp, 4
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x402178
lea edi, [esp + 0x5c]
sub eax, ecx
mov esi, ecx
add edi, ebp
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x402190
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x2c]
and ecx, 3
add eax, 0xfffffff0
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4021c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x8f0], ebp
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4021eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x4024fe
call fcn.004133f1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4025e9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x8f0], 9
call fcn.004133f1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4025e9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x8f0], 0xa
call fcn.004133f1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x4025e9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x5c]
mov byte [esp + 0x8f0], 0xb
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402290
sub eax, edx
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x20]
call fcn.00409c70
lea eax, [esp + 0x5c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4022b0
sub eax, edx
push eax
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x1c]
call fcn.00409c70
mov edi, dword [esp + 0x14]
push 0x2e
push edi
call fcn.00423215
add esp, 8
cmp eax, ebx
je 0x402526
sub eax, edi
cmp eax, ebx
jle 0x402526
mov esi, dword [edi - 0xc]
push 0x2e
push edi
call fcn.00423215
add esp, 8
cmp eax, ebx
jne 0x4022ff
mov eax, ebp
jmp 0x402301
sub eax, edi
sub esi, eax
dec esi
push esi
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004090f0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x8f4], 0xc
call fcn.004099f0
mov byte [esp + 0x8f0], 0xb
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40234c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push 0x2e
push esi
call fcn.00423215
add esp, 8
cmp eax, ebx
jne 0x402363
mov eax, ebp
jmp 0x402365
sub eax, esi
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x20]
call fcn.00409170
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8f4], 0xd
call fcn.004099f0
mov byte [esp + 0x8f0], 0xb
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4023ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
push 0x28
push ecx
lea edi, [esp + 0x20]
call fcn.004092b0
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x904], 0xe
call fcn.004091f0
add esp, 0x14
lea ecx, [esp + 0x30]
push 0x29
push ecx
mov edi, eax
mov byte [esp + 0x8f8], 0xf
call fcn.004092b0
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x8f4], 0x10
call fcn.004099f0
mov byte [esp + 0x8f0], 0xf
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40242a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8f0], 0xe
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402451
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8f0], 0xb
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402478
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
push eax
lea edx, [esp + 0x60]
push esi
push edx
call fcn.00429730
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0x8f0], 0xa
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4024b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x8f0], 9
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4024d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x8f0], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4024fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x5c]
add eax, ebp
cmp byte [0x453d04], 7
jne 0x402550
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x402510
mov ecx, dword [str..ldx]
mov dl, byte [0x4478cc]
jmp 0x402564
lea eax, [esp + 0x5c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402530
sub eax, edx
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x24]
call fcn.00409c70
jmp 0x40247c
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x402550
mov ecx, dword [str..Ldm]
mov dl, byte [0x4478e0]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x402593
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x26c]
call fcn.00403120
jmp 0x4025a9
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x26c]
call fcn.00402d40
mov eax, dword [esp + 0x28]
inc eax
add esp, 8
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x20], eax
jle 0x401ced
xor eax, eax
mov ecx, dword [esp + 0x8e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8d0]
xor ecx, esp
call fcn.0042179d
add esp, 0x8e0
ret
push 0x80004005
call fcn.00409d60
int3