Function at 0x417a00
Capabilities:
Copy file
Delete file
Get common file path
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535dae
mov eax, dword fs:[0]
push eax
sub esp, 0x534
mov eax, dword [0x5a6a30]
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, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4f4], ecx
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x50c], edi
mov dword [ebp - 0x508], eax
mov dword [ebp - 0x518], ecx
mov esi, 0x100
mov dword [ebp - 0x484], 7
mov dword [ebp - 0x488], ebx
mov word [ebp - 0x498], dx
lea ecx, [ebp - 0x530]
mov dword [ebp - 4], ebx
call fcn.00428420
push 0x48
mov byte [ebp - 4], 1
mov dword [ebp - 0x4fc], ebx
call fcn.00429e40
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x41818f
mov dword [ebp - 0x500], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x500]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x500]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x500]
mov byte [eax + 0x44], 1
mov edx, dword [ebp - 0x500]
mov byte [edx + 0x45], 1
xor eax, eax
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], ecx
mov word [ebp - 0x444], ax
push str.CPrinterDriverInf::AllocAndGetValue__________________________IN._n
push 5
mov byte [ebp - 4], 3
call fcn.00403750
add esp, 8
test edi, edi
je 0x418111
cmp dword [ebp - 0x508], ebx
je 0x418111
push str.CPrinterDriverInf::AllocAndGetValue__OK__pSection__pKey._n
push 5
call fcn.00403750
push edi
push str.CPrinterDriverInf::AllocAndGetValue_pSection___1_s_._n
push 5
call fcn.00403750
mov ecx, dword [ebp - 0x508]
push ecx
push str.CPrinterDriverInf::AllocAndGetValue_pKey___1_s_._n
push 5
call fcn.00403750
mov edi, dword [ebp - 0x4f4]
add esp, 0x20
push 0xffffffffffffffff
push ebx
add edi, 0xc
push edi
lea ecx, [ebp - 0x444]
call fcn.00401cd0
push 0x20a
lea edx, [ebp - 0x428]
push ebx
push edx
call fcn.0051eb70
push 0x20a
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.0051eb70
add esp, 0x18
lea ecx, [ebp - 0x428]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x417bfe
lea edx, [ebp - 0x21c]
push edx
push ebx
push 0x54d72c
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x417bfe
cmp dword [edi + 0x14], 8
jb 0x417bb3
mov edi, dword [edi]
push 0
lea ecx, [ebp - 0x21c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x417bfe
lea edx, [ebp - 0x21c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x80
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x444]
call fcn.004036f0
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x417c13
lea eax, [ebp - 0x444]
push eax
push str.CPrinterDriverInf::AllocAndGetValue_strTargetInfFile___1_s__IN_n
push 5
call fcn.00403750
push 0xf5c
push str...CommonDeviceInf.cpp
push 0x200
call fcn.00422d90
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x417cc2
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x417c5c
lea eax, [ebp - 0x444]
push eax
push 2
lea edx, [ebp - 0x534]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x417c87
lea eax, [ebp - 0x444]
push eax
mov eax, dword [ebp - 0x50c]
push esi
push ebx
push eax
call edi
lea ecx, [esi - 2]
cmp ecx, eax
jne 0x417cc2
push ebx
call fcn.00422db0
push 0xf66
add esi, 0x100
lea edx, [esi + esi]
push str...CommonDeviceInf.cpp
push edx
call fcn.00422d90
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x417c47
push str.CPrinterDriverInf::AllocAndGetValue_Get_section_items_finished._n
push 5
call fcn.00403750
xor esi, esi
add esp, 8
cmp word [ebp - 0x21c], si
je 0x417d11
lea eax, [ebp - 0x21c]
push eax
push str.CPrinterDriverInf::AllocAndGetValue_Delete_the_temp_file.___1_s___n
push 5
call fcn.00403750
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]
cmp ebx, esi
jne 0x417da8
cmp dword [ebp - 0x430], 8
jb 0x417d31
mov eax, dword [ebp - 0x444]
push eax
call fcn.00429e6f
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], esi
mov word [ebp - 0x444], cx
mov eax, dword [ebp - 0x500]
mov ecx, dword [eax]
push eax
push ecx
lea edx, [ebp - 0x510]
push edx
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 4
call fcn.00416e00
mov eax, dword [ebp - 0x500]
push eax
call fcn.00429e6f
add esp, 4
lea ecx, [ebp - 0x530]
mov byte [ebp - 4], 0
call fcn.00428480
xor eax, eax
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.0051e701
mov esp, ebp
pop ebp
ret 0xc
push ebx
lea ecx, [ebp - 0x530]
call fcn.00428e50
test eax, eax
jne 0x417dcc
push str.CPrinterDriverInf::AllocAndGetValue__NG__dnlSectionItems.Set._n
push 5
call fcn.00403750
add esp, 8
jmp 0x418119
push str.CPrinterDriverInf::AllocAndGetValue__OK__dnlSectionItems.Set._n
push 5
call fcn.00403750
add esp, 8
lea ecx, [ebp - 0x530]
call fcn.00426dd0
test eax, eax
je 0x417ec1
mov edi, dword [ebp - 0x4f4]
lea ecx, [ebp - 0x4f0]
call fcn.00427300
push esi
lea ecx, [ebp - 0x530]
mov byte [ebp - 4], 5
call fcn.00427000
push eax
lea ecx, [ebp - 0x4f0]
call fcn.00428070
lea ecx, [ebp - 0x4f0]
call fcn.00427150
push eax
lea ecx, [edi + 0x30]
call fcn.00427860
lea ecx, [ebp - 0x4f0]
mov dword [ebp - 0x50c], eax
call fcn.00427140
push eax
lea ecx, [edi + 0x30]
call fcn.00427860
lea ecx, [ebp - 0x50c]
push ecx
lea edx, [ebp - 0x4f4]
push edx
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x4f4], eax
call fcn.00413940
push 0
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 6
call fcn.00417570
push eax
lea ecx, [ebp - 0x514]
push ecx
lea ecx, [ebp - 0x504]
call fcn.00415f50
lea ecx, [ebp - 0x47c]
call fcn.00412d80
lea ecx, [ebp - 0x4f0]
mov byte [ebp - 4], 3
call fcn.00427340
lea ecx, [ebp - 0x530]
inc esi
call fcn.00426dd0
cmp esi, eax
jb 0x417df4
push str.CPrinterDriverInf::AllocAndGetValue__OK__prepare_mapSectionItems._n
push 5
call fcn.00403750
mov esi, dword [ebp - 0x508]
add esp, 8
xor edx, edx
mov edi, 7
mov eax, esi
mov word [ebp - 0x460], dx
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x450], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417f00
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x460]
call fcn.00401dd0
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x510]
push ecx
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 7
call fcn.00413010
cmp dword [ebp - 0x44c], 8
mov esi, dword [eax]
mov byte [ebp - 4], 3
jb 0x417f57
mov edx, dword [ebp - 0x460]
push edx
call fcn.00429e6f
add esp, 4
xor eax, eax
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x450], 0
mov word [ebp - 0x460], ax
cmp esi, dword [ebp - 0x500]
jne 0x417fe9
push str.CPrinterDriverInf::AllocAndGetValue_pKey_is_not_found_on_the_section._n
push 5
call fcn.00403750
mov edi, dword [ebp - 0x518]
add esp, 8
test edi, edi
jne 0x417fa1
push ebx
call fcn.00422db0
add esp, 4
xor ebx, ebx
jmp 0x418119
push 0xf8c
push str...CommonDeviceInf.cpp
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
call fcn.00422d90
push str.CPrinterDriverInf::AllocAndGetValue_return_buffer_allocated._n
push 5
mov esi, eax
call fcn.00403750
add esp, 0x14
test esi, esi
jne 0x41806e
push str.CPrinterDriverInf::AllocAndGetValue_Memory_allocation_error.__pBufferReplaced__n
push 2
call fcn.00403750
add esp, 8
jmp 0x418119
push str.CPrinterDriverInf::AllocAndGetValue_pKey_has_been_found_on_the_section._n
push 5
call fcn.00403750
lea edi, [esi + 0x28]
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x418005
mov eax, dword [edi]
jmp 0x418007
mov eax, edi
push eax
push str.CPrinterDriverInf::AllocAndGetValue_iter__second.data______1_s__._n
push 5
call fcn.00403750
lea eax, [esi + 0x28]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x418022
mov eax, dword [eax]
push 0xf97
push str...CommonDeviceInf.cpp
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
call fcn.00422d90
push str.CPrinterDriverInf::AllocAndGetValue_return_buffer_allocated._n
push 5
mov esi, eax
call fcn.00403750
add esp, 0x14
test esi, esi
jne 0x418066
push str.CPrinterDriverInf::AllocAndGetValue_Memory_allocation_error.__pBufferReplaced__n
push 2
call fcn.00403750
add esp, 8
jmp 0x418119
cmp dword [edi + 0x14], 8
jb 0x41806e
mov edi, dword [edi]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.CPrinterDriverInf::AllocAndGetValue_buffer_copied._n
push 5
call fcn.00403750
push ebx
call fcn.00422db0
push str.CPrinterDriverInf::AllocAndGetValue__________________________OUT._n
push 5
call fcn.00403750
add esp, 0x14
cmp dword [ebp - 0x430], 8
jb 0x4180af
mov eax, dword [ebp - 0x444]
push eax
call fcn.00429e6f
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], 0
mov word [ebp - 0x444], cx
mov eax, dword [ebp - 0x500]
mov ecx, dword [eax]
push eax
push ecx
lea edx, [ebp - 0x510]
push edx
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 8
call fcn.00416e00
mov eax, dword [ebp - 0x500]
push eax
call fcn.00429e6f
add esp, 4
lea ecx, [ebp - 0x530]
mov byte [ebp - 4], 0
call fcn.00428480
mov eax, esi
jmp 0x417d8a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CPrinterDriverInf::AllocAndGetValue__________________________Error_OUT._n
push 5
call fcn.00403750
push ebx
call fcn.00422db0
add esp, 0xc
cmp dword [ebp - 0x430], 8
jb 0x418146
mov ecx, dword [ebp - 0x444]
push ecx
call fcn.00429e6f
add esp, 4
xor edx, edx
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], 0
mov word [ebp - 0x444], dx
mov eax, dword [ebp - 0x500]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [ebp - 0x510]
push eax
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 9
call fcn.00416e00
mov ecx, dword [ebp - 0x500]
push ecx
jmp 0x417d71
lea edx, [ebp - 0x510]
mov dword [ebp - 0x510], ecx
push edx
lea ecx, [ebp - 0x540]
call fcn.0051d822
push 0x58e000
lea eax, [ebp - 0x540]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.0051e710
int3