Function at 0x403ba0
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
sub esp, 0x4ac
mov dl, byte [0x415688]
push ebx
push ebp
push esi
push edi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0xc1]
mov byte [esp + 0xc0], dl
mov byte [esp + 0x2f0], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x2f1]
mov byte [esp + 0x3b8], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3b9]
mov byte [esp + 0x188], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x189]
mov byte [esp + 0x28], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x1ec], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1ed]
mov byte [esp + 0x8c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0xc
mov dword [esp + 0x1d], eax
lea edi, [esp + 0x8d]
mov dword [esp + 0x21], eax
push 0x411004
mov byte [esp + 0x29], al
mov dword [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x410e80]
mov byte [esp + 0x20], dl
push ecx
stosb byte es:[edi], al
call fcn.00402b50
add esp, 8
push 0
push 2
push 0
push 0x411004
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov dword [esp + 0x14], eax
mov al, byte [0x413818]
test al, al
je 0x40419c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x10], 0x413818
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x28]
lea edx, [esp + 0x2f0]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x188]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
push 0xc8
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2fc]
lea edx, [esp + 0x2fc]
push ecx
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetActualSectionToInstallA]
push 0x411004
lea ecx, [esp + 0xc4]
push 0xc8
lea edx, [esp + 0x2f8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
xor ebp, ebp
lea esi, [esp + 0xc0]
push str.CopyFiles
push esi
call fcn.004048c0
add esp, 8
test eax, eax
je 0x403d7d
push 0x40e1c8
push eax
call fcn.004048c0
add esp, 8
test eax, eax
je 0x403d7d
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
ja 0x403d9f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [ecx + ebp + 1]
mov al, byte [esp + ebp + 0xc0]
lea esi, [esp + ebp + 0xc0]
test al, al
jne 0x403d48
mov cl, byte [esp + ebp + 0xc0]
lea eax, [esp + ebp + 0xc0]
test cl, cl
je 0x40419c
push 0x3d
push eax
call fcn.004047a0
mov edi, eax
add esp, 8
inc edi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
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]
lea ecx, [esp + 0x28]
push ecx
call ebx
test eax, eax
jle 0x404166
lea edx, [esp + 0x28]
push 0x2c
push edx
call fcn.004047a0
add esp, 8
mov ebp, eax
push ebp
call ebx
cmp eax, 1
jge 0x403e3f
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x188]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x415688
jmp 0x403e67
mov ecx, ebp
lea edx, [esp + 0x28]
sub ecx, edx
lea esi, [esp + 0x28]
mov eax, ecx
lea edi, [esp + 0x188]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 1]
or ecx, 0xffffffff
xor eax, eax
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]
lea ecx, [esp + 0xc0]
push ecx
call ebx
mov ecx, eax
xor eax, eax
mov edx, ecx
lea edi, [esp + 0xc0]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x411004
and ecx, 3
push 0xc8
rep stosb byte es:[edi], al
lea eax, [esp + 0xc8]
lea ecx, [esp + 0x190]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea edx, [esp + 0xc0]
lea esi, [esp + 0xc0]
push edx
call ebx
mov ebp, eax
lea eax, [esp + 0xc0]
push eax
call ebx
test eax, eax
jle 0x404157
cmp byte [esi], 0x3b
je 0x404157
push 0x2c
push esi
call fcn.004047a0
mov edx, eax
add esp, 8
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3b8]
test edx, edx
rep stosd dword es:[edi], eax
je 0x403f25
mov ecx, edx
lea edi, [esp + 0x3b8]
sub ecx, esi
mov edx, ecx
jmp 0x403f4c
lea edi, [esp + 0xc0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3b8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor eax, eax
and ecx, 3
push 0x411004
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x1f0]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x90]
push 0x104
push eax
lea ecx, [esp + 0x194]
push 0
push ecx
push str.DestinationDirs
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x8c]
push edx
call fcn.00402460
mov ax, word [eax]
lea ecx, [esp + 0x20]
push 0x40e1b4
push ecx
mov word [esp + 0x28], ax
call fcn.0040460b
add esp, 0xc
test eax, eax
jne 0x40401f
lea edx, [esp + 0x1ec]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x40d04c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1ec]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2c
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
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 + 0x90]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004047a0
add esp, 8
mov esi, eax
push esi
call ebx
test eax, eax
jle 0x4040ff
jmp 0x404098
lea eax, [esp + 0x1c]
push 0x40e1b0
push eax
call fcn.0040460b
add esp, 8
test eax, eax
jne 0x404132
lea ecx, [esp + 0x1ec]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x40d04c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1ec]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2c
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
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 + 0x90]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004047a0
add esp, 8
mov esi, eax
push esi
call ebx
test eax, eax
jle 0x4040ff
inc esi
push esi
call fcn.00402460
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1ec]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
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 edx, [esp + 0x1ec]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d04c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
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 edi, [esp + 0x3b8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1ec]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
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 eax, [esp + 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [esp + ebp + 0xc1]
push esi
call ebx
push esi
add ebp, eax
call ebx
test eax, eax
jg 0x403eec
lea ecx, [esp + 0x28]
push ecx
call ebx
test eax, eax
jg 0x403df3
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov eax, dword [esp + 0x10]
push eax
call ebx
mov ecx, dword [esp + 0x18]
lea eax, [ecx + eax + 1]
mov cl, byte [eax + 0x413818]
mov dword [esp + 0x18], eax
lea eax, [eax + 0x413818]
test cl, cl
mov dword [esp + 0x10], eax
jne 0x403cba
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4ac
ret