Function at 0x407950
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43b31b
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x44bcd0]
xor eax, esp
mov dword [esp + 0x4bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44bcd0]
xor eax, esp
push eax
lea eax, [esp + 0x4d4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4e4]
push 0x104
xor ebx, ebx
lea eax, [esp + 0x268]
push ebx
push eax
mov dword [esp + 0x34], esi
call fcn.00420a40
lea edx, [esp + 0x270]
add esp, 0xc
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4079c0
lea eax, [esp + 0x264]
or ebp, 0xffffffff
add eax, ebp
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4079d6
mov ecx, dword [str.ldcab.ini]
mov edx, dword [0x43db6c]
mov dword [eax], ecx
mov cx, word [0x43db70]
mov dword [eax + 4], edx
mov dl, byte [0x43db72]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
lea eax, [esp + 0x264]
push eax
push ebx
push str.FileTotal
push str.CabFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x104
lea ecx, [esp + 0x3d0]
mov esi, eax
push ebx
push ecx
mov dword [esp + 0x50], esi
call fcn.00420a40
add esp, 0xc
lea edx, [esp + 0x264]
push edx
push 0x104
lea eax, [esp + 0x3d4]
push eax
push 0x43d840
push str.DstPath
push str.CabFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp esi, 1
mov dword [esp + 0x20], 1
jl 0x40831f
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x36c]
push str.File__d
push edx
call fcn.00420ba5
push 0x104
lea eax, [esp + 0x170]
push ebx
push eax
call fcn.00420a40
add esp, 0x18
lea ecx, [esp + 0x264]
push ecx
push 0x104
lea edx, [esp + 0x168]
push edx
push 0x43d840
push str.SrcFilePath
lea eax, [esp + 0x37c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x104
lea ecx, [esp + 0x60]
push ebx
push ecx
call fcn.00420a40
lea edx, [esp + 0x3d8]
push 0x43d840
push edx
call fcn.00420d6f
add esp, 0x14
test eax, eax
jne 0x407e8f
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x407b25
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x160]
mov byte [esp + eax + 0x5c], cl
inc eax
cmp cl, bl
jne 0x407b10
jmp 0x407e24
call fcn.00411c35
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x408349
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 + 0x4dc], ebx
call fcn.00411c35
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x408349
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 + 0x4dc], 1
call fcn.00411c35
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x408349
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 + 0x160]
mov byte [esp + 0x4dc], 2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407bb2
sub eax, edx
push eax
lea ecx, [esp + 0x164]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401960
lea eax, [esp + 0x160]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407bd7
sub eax, edx
push eax
lea edx, [esp + 0x164]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401960
mov edi, dword [esp + 0x14]
push 0x2e
push edi
call fcn.0041fb5d
add esp, 8
cmp eax, ebx
je 0x407e4c
sub eax, edi
cmp eax, ebx
jle 0x407e4c
mov esi, dword [edi - 0xc]
push 0x2e
push edi
call fcn.0041fb5d
add esp, 8
cmp eax, ebx
jne 0x407c29
mov eax, ebp
jmp 0x407c2b
sub eax, edi
sub esi, eax
dec esi
push esi
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401cd0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4e0], 3
call fcn.00401ec0
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x4dc], 2
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407c76
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.0041fb5d
add esp, 8
cmp eax, ebx
jne 0x407c8d
mov eax, ebp
jmp 0x407c8f
sub eax, esi
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401d50
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4e0], 4
call fcn.00401ec0
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x4dc], 2
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407cd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x28
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.00402020
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0x4f4], 5
call fcn.00401f60
push 0x29
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x500], 6
call fcn.00402020
add esp, 0x24
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4e0], 7
call fcn.00401ec0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x4dc], 6
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x4dc], 5
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x4dc], 2
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d9f
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.00420dd0
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0x4dc], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ddc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x4dc], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407dfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x4dc], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407e24
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 [0x44d3c4], 7
jne 0x407e76
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x407e33
mov ecx, dword [str..ldx]
mov dl, byte [0x43db5c]
jmp 0x4082d4
lea eax, [esp + 0x160]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407e56
sub eax, edx
push eax
lea ecx, [esp + 0x164]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401960
jmp 0x407da3
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x407e76
mov ecx, dword [str..exe]
mov dl, byte [0x43db54]
jmp 0x4082d4
xor eax, eax
mov cl, byte [esp + eax + 0x3cc]
mov byte [esp + eax + 0x5c], cl
inc eax
cmp cl, bl
jne 0x407e91
lea edi, [esp + 0x5c]
add edi, ebp
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x407ea7
mov ax, word [0x43d584]
lea ecx, [esp + 0x160]
push ecx
lea ecx, [esp + 0x28]
mov word [edi], ax
call fcn.00402d40
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x4e4], 8
call fcn.00409220
mov eax, dword [eax]
add esp, 8
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x407ef0
lea edi, [esp + 0x5c]
sub eax, ecx
mov esi, ecx
add edi, ebp
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x407f01
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 0x407f36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x4dc], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x160]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40826b
call fcn.00411c35
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x408349
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 + 0x4dc], 9
call fcn.00411c35
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x408349
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 + 0x4dc], 0xa
call fcn.00411c35
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x408349
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 + 0x4dc], 0xb
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408000
sub eax, edx
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401960
lea eax, [esp + 0x5c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408020
sub eax, edx
push eax
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401960
mov edi, dword [esp + 0x14]
push 0x2e
push edi
call fcn.0041fb5d
add esp, 8
cmp eax, ebx
je 0x408296
sub eax, edi
cmp eax, ebx
jle 0x408296
mov esi, dword [edi - 0xc]
push 0x2e
push edi
call fcn.0041fb5d
add esp, 8
cmp eax, ebx
jne 0x40806f
mov eax, ebp
jmp 0x408071
sub eax, edi
sub esi, eax
dec esi
push esi
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401cd0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4e0], 0xc
call fcn.00401ec0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x4dc], 0xb
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4080bc
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.0041fb5d
add esp, 8
cmp eax, ebx
jne 0x4080d3
mov eax, ebp
jmp 0x4080d5
sub eax, esi
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401d50
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4e0], 0xd
call fcn.00401ec0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x4dc], 0xb
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40811d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x28
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.00402020
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x4f4], 0xe
call fcn.00401f60
push 0x29
push eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x500], 0xf
call fcn.00402020
add esp, 0x24
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4e0], 0x10
call fcn.00401ec0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x4dc], 0xf
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408197
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x4dc], 0xe
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x4dc], 0xb
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081e5
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.00420dd0
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0x4dc], 0xa
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408222
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x4dc], 9
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408245
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x4dc], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40826b
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 [0x44d3c4], 7
jne 0x4082c0
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x408280
mov ecx, dword [str..ldx]
mov dl, byte [0x43db5c]
jmp 0x4082d4
lea eax, [esp + 0x5c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4082a0
sub eax, edx
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401960
jmp 0x4081e9
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4082c0
mov ecx, dword [str..Ldm]
mov dl, byte [0x43db78]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x160]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x60]
test eax, eax
push edx
lea eax, [esp + 0x168]
push eax
je 0x408304
call fcn.00406b10
jmp 0x408309
call fcn.00406730
mov eax, dword [esp + 0x2c]
inc eax
add esp, 0xc
cmp eax, dword [esp + 0x44]
mov dword [esp + 0x20], eax
jle 0x407a73
xor eax, eax
mov ecx, dword [esp + 0x4d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4bc]
xor ecx, esp
call fcn.0041eff4
add esp, 0x4cc
ret
push 0x80004005
call fcn.004011d0
int3