Function at 0x41d360
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Get file attributes
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548e57
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x5c5b9c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x4b0]
mov ebx, 0x100
call fcn.0043a090
xor esi, esi
mov eax, 7
xor ecx, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x484], eax
mov dword [ebp - 0x488], esi
mov word [ebp - 0x498], cx
xor edx, edx
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x46c], esi
mov word [ebp - 0x47c], dx
mov dword [ebp - 0x430], eax
xor eax, eax
mov dword [ebp - 0x434], esi
mov word [ebp - 0x444], ax
mov byte [ebp - 4], 3
cmp dword [edi + 0x30], esi
jne 0x41d447
push 0x3e9
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x430], 8
jb 0x41d415
mov ecx, dword [ebp - 0x444]
push ecx
call fcn.0043c798
add esp, 4
xor edx, edx
mov dword [ebp - 0x434], esi
mov word [ebp - 0x444], dx
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 0x430], 7
mov dword [ebp - 4], 0xffffffff
call fcn.0043a0f0
xor eax, eax
jmp 0x41d78d
cmp dword [edi + 0x28], 8
lea esi, [edi + 0x14]
jb 0x41d454
mov eax, dword [esi]
jmp 0x41d456
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41d497
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x430], 8
jb 0x41d482
mov eax, dword [ebp - 0x444]
push eax
call fcn.0043c798
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x434], 0
mov word [ebp - 0x444], cx
jmp 0x41d424
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
lea edx, [ebp - 0x4b4]
push edx
lea ecx, [edi + 4]
call fcn.00408f60
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x444]
call fcn.004025d0
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00531b10
push 0x20a
lea ecx, [ebp - 0x21c]
push 0
push ecx
call fcn.00531b10
add esp, 0x18
lea edx, [ebp - 0x428]
push edx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41d56f
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x56667c
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41d56f
cmp dword [esi + 0x14], 8
jb 0x41d524
mov esi, dword [esi]
push 0
lea edx, [ebp - 0x21c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41d56f
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x80
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x444]
call fcn.004066b0
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x41d584
lea eax, [ebp - 0x444]
push eax
push str.CIniSections::GetList_strTargetInfFile___1_s__IN_n
push 5
call fcn.00411380
push 0x178c
push str...CommonDeviceInf.cpp
push 0x200
call fcn.0042d8c0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x41d626
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x41d5c3
lea eax, [ebp - 0x444]
push eax
push 2
lea eax, [ebp - 0x4b8]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x41d5ee
lea eax, [ebp - 0x444]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea ecx, [ebx - 2]
cmp ecx, eax
jne 0x41d626
push esi
call fcn.0042d8e0
push 0x1797
add ebx, 0x100
lea edx, [ebx + ebx]
push str...CommonDeviceInf.cpp
push edx
call fcn.0042d8c0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41d5ae
cmp word [ebp - 0x21c], 0
je 0x41d665
lea eax, [ebp - 0x21c]
push eax
push str.CIniSections::GetList_Delete_the_temp_file.___1_s___n
push 5
call fcn.00411380
add esp, 0xc
push 0x80
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x41d46a
push esi
lea ecx, [ebp - 0x4b0]
call fcn.0043a7a0
push esi
call fcn.0042d8e0
add esp, 4
lea ecx, [ebp - 0x4b0]
xor ebx, ebx
call fcn.00438c50
test eax, eax
je 0x41d741
push ebx
lea ecx, [ebp - 0x4b0]
call fcn.00438e80
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x44c], 7
mov dword [ebp - 0x450], 0
mov word [ebp - 0x460], dx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41d6c5
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.004026d0
lea eax, [ebp - 0x460]
push eax
lea ecx, [edi + 4]
mov byte [ebp - 4], 4
call 0x409ab0
cmp dword [ebp - 0x44c], 8
mov byte [ebp - 4], 3
jb 0x41d710
mov ecx, dword [ebp - 0x460]
push ecx
call fcn.0043c798
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 0x44c], 7
mov dword [ebp - 0x450], 0
mov word [ebp - 0x460], dx
inc ebx
call fcn.00438c50
cmp ebx, eax
jb 0x41d697
cmp dword [ebp - 0x430], 8
jb 0x41d759
mov eax, dword [ebp - 0x444]
push eax
call fcn.0043c798
add esp, 4
xor ecx, ecx
mov word [ebp - 0x444], cx
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], 0
mov dword [ebp - 4], 0xffffffff
call fcn.0043a0f0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00530f8d
mov esp, ebp
pop ebp
ret