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

Disassembly:
sub esp, 0x33c
mov dl, byte [0x411d80]
push ebx
push ebp
push esi
push edi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x159]
mov byte [esp + 0x158], dl
mov byte [esp + 0x284], 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 + 0x285]
mov byte [esp + 0xf4], 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 + 0xf5]
mov byte [esp + 0x220], 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 + 0x221]
mov byte [esp + 0x90], 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 + 0x91]
mov byte [esp + 0x28], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x5c], dl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
mov ecx, 0xc
mov dword [esp + 0x1d], eax
lea edi, [esp + 0x5d]
mov dword [esp + 0x21], eax
push 0x40b914
mov byte [esp + 0x29], al
mov dword [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x40b910]
mov byte [esp + 0x20], dl
push ecx
stosb byte es:[edi], al
call fcn.00402090
add esp, 8
push 0
push 2
push 0
push 0x40b914
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov dword [esp + 0x18], eax
mov al, byte [0x40e088]
test al, al
je 0x403634
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x10], 0x40e088
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x90]
lea edx, [esp + 0x284]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x220]
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 + 0x20]
and ecx, 3
push 0xc8
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x290]
lea edx, [esp + 0x290]
push ecx
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetActualSectionToInstallA]
push 0x40b914
lea ecx, [esp + 0x15c]
push 0xc8
lea edx, [esp + 0x28c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
xor ebp, ebp
lea esi, [esp + 0x158]
push str.CopyFiles
push esi
call fcn.00403c50
add esp, 8
test eax, eax
je 0x403228
push 0x40aec8
push eax
call fcn.00403c50
add esp, 8
test eax, eax
je 0x403228
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
ja 0x40324a
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 + 0x158]
lea esi, [esp + ebp + 0x158]
test al, al
jne 0x4031f3
mov cl, byte [esp + ebp + 0x158]
lea eax, [esp + ebp + 0x158]
test cl, cl
je 0x403634
push 0x3d
push eax
call fcn.00403b00
mov edi, eax
add esp, 8
inc edi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x90]
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 + 0x90]
push ecx
call ebx
test eax, eax
jle 0x4035fe
lea edx, [esp + 0x90]
push 0x2c
push edx
call fcn.00403b00
add esp, 8
mov ebp, eax
push ebp
call ebx
cmp eax, 1
jge 0x4032f9
lea edi, [esp + 0x90]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x220]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x90]
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, 0x411d80
jmp 0x40332a
mov ecx, ebp
lea edx, [esp + 0x90]
sub ecx, edx
lea esi, [esp + 0x90]
mov eax, ecx
lea edi, [esp + 0x220]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x90]
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 + 0x158]
push ecx
call ebx
mov ecx, eax
xor eax, eax
mov edx, ecx
lea edi, [esp + 0x158]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x40b914
and ecx, 3
push 0xc8
rep stosb byte es:[edi], al
lea eax, [esp + 0x160]
lea ecx, [esp + 0x228]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea edx, [esp + 0x158]
lea esi, [esp + 0x158]
push edx
call ebx
mov ebp, eax
lea eax, [esp + 0x158]
push eax
call ebx
test eax, eax
jle 0x4035ec
cmp byte [esi], 0x3b
je 0x4035ec
push 0x2c
push esi
call fcn.00403b00
mov edx, eax
add esp, 8
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0xf4]
test edx, edx
rep stosd dword es:[edi], eax
je 0x4033e8
mov ecx, edx
lea edi, [esp + 0xf4]
sub ecx, esi
mov edx, ecx
jmp 0x40340f
lea edi, [esp + 0x158]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xf4]
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 0x40b914
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xc
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x60]
push 0x32
push eax
lea ecx, [esp + 0x22c]
push 0
push ecx
push str.DestinationDirs
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x5c]
push edx
call fcn.00401a20
mov ax, word [eax]
lea ecx, [esp + 0x20]
push 0x40aeb4
push ecx
mov word [esp + 0x28], ax
call fcn.00403870
add esp, 0xc
test eax, eax
jne 0x4034cc
lea edx, [esp + 0x28]
push 0x32
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x40a068
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
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 + 0x60]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403b00
add esp, 8
mov esi, eax
push esi
call ebx
test eax, eax
jle 0x40359a
jmp 0x403539
lea eax, [esp + 0x1c]
push 0x40aeb0
push eax
call fcn.00403870
add esp, 8
test eax, eax
jne 0x4035ca
lea ecx, [esp + 0x28]
push 0x32
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x40a068
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
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 + 0x60]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403b00
add esp, 8
mov esi, eax
push esi
call ebx
test eax, eax
jle 0x40359a
inc esi
push esi
call fcn.00401a20
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 + 0x28]
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 + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40a068
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 + 0xf4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
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 + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [esp + ebp + 0x159]
push esi
call ebx
push esi
add ebp, eax
call ebx
test eax, eax
jg 0x4033af
lea ecx, [esp + 0x90]
push ecx
call ebx
test eax, eax
jg 0x4032a4
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov eax, dword [esp + 0x10]
push eax
call ebx
mov ecx, dword [esp + 0x14]
lea eax, [ecx + eax + 1]
mov cl, byte [eax + 0x40e088]
mov dword [esp + 0x14], eax
lea eax, [eax + 0x40e088]
test cl, cl
mov dword [esp + 0x10], eax
jne 0x403162
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x33c
ret