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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5489ee
mov eax, dword fs:[0]
push eax
sub esp, 0x534
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, 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.0043a090
push 0x48
mov byte [ebp - 4], 1
mov dword [ebp - 0x4fc], ebx
call fcn.0043c75e
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x41898f
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.00411380
add esp, 8
test edi, edi
je 0x418911
cmp dword [ebp - 0x508], ebx
je 0x418911
push str.CPrinterDriverInf::AllocAndGetValue__OK__pSection__pKey._n
push 5
call fcn.00411380
push edi
push str.CPrinterDriverInf::AllocAndGetValue_pSection___1_s_._n
push 5
call fcn.00411380
mov ecx, dword [ebp - 0x508]
push ecx
push str.CPrinterDriverInf::AllocAndGetValue_pKey___1_s_._n
push 5
call fcn.00411380
mov edi, dword [ebp - 0x4f4]
add esp, 0x20
push 0xffffffffffffffff
push ebx
add edi, 0xc
push edi
lea ecx, [ebp - 0x444]
call fcn.004025d0
push 0x20a
lea edx, [ebp - 0x428]
push ebx
push edx
call fcn.00531b10
push 0x20a
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00531b10
add esp, 0x18
lea ecx, [ebp - 0x428]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4183fe
lea edx, [ebp - 0x21c]
push edx
push ebx
push 0x56667c
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4183fe
cmp dword [edi + 0x14], 8
jb 0x4183b3
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 0x4183fe
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.004066b0
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x418413
lea eax, [ebp - 0x444]
push eax
push str.CPrinterDriverInf::AllocAndGetValue_strTargetInfFile___1_s__IN_n
push 5
call fcn.00411380
push 0xf5c
push str...CommonDeviceInf.cpp
push 0x200
call fcn.0042d8c0
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x4184c2
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x41845c
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 0x418487
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 0x4184c2
push ebx
call fcn.0042d8e0
push 0xf66
add esi, 0x100
lea edx, [esi + esi]
push str...CommonDeviceInf.cpp
push edx
call fcn.0042d8c0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x418447
push str.CPrinterDriverInf::AllocAndGetValue_Get_section_items_finished._n
push 5
call fcn.00411380
xor esi, esi
add esp, 8
cmp word [ebp - 0x21c], si
je 0x418511
lea eax, [ebp - 0x21c]
push eax
push str.CPrinterDriverInf::AllocAndGetValue_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]
cmp ebx, esi
jne 0x4185a8
cmp dword [ebp - 0x430], 8
jb 0x418531
mov eax, dword [ebp - 0x444]
push eax
call fcn.0043c798
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.00417600
mov eax, dword [ebp - 0x500]
push eax
call fcn.0043c798
add esp, 4
lea ecx, [ebp - 0x530]
mov byte [ebp - 4], 0
call fcn.0043a0f0
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.00530f8d
mov esp, ebp
pop ebp
ret 0xc
push ebx
lea ecx, [ebp - 0x530]
call fcn.0043a7a0
test eax, eax
jne 0x4185cc
push str.CPrinterDriverInf::AllocAndGetValue__NG__dnlSectionItems.Set._n
push 5
call fcn.00411380
add esp, 8
jmp 0x418919
push str.CPrinterDriverInf::AllocAndGetValue__OK__dnlSectionItems.Set._n
push 5
call fcn.00411380
add esp, 8
lea ecx, [ebp - 0x530]
call fcn.00438c50
test eax, eax
je 0x4186c1
mov edi, dword [ebp - 0x4f4]
lea ecx, [ebp - 0x4f0]
call fcn.004390e0
push esi
lea ecx, [ebp - 0x530]
mov byte [ebp - 4], 5
call fcn.00438e80
push eax
lea ecx, [ebp - 0x4f0]
call fcn.00439e10
lea ecx, [ebp - 0x4f0]
call fcn.00438f30
push eax
lea ecx, [edi + 0x30]
call fcn.00439600
lea ecx, [ebp - 0x4f0]
mov dword [ebp - 0x50c], eax
call fcn.00438f20
push eax
lea ecx, [edi + 0x30]
call fcn.00439600
lea ecx, [ebp - 0x50c]
push ecx
lea edx, [ebp - 0x4f4]
push edx
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x4f4], eax
call fcn.004141a0
push 0
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 6
call fcn.00417d70
push eax
lea ecx, [ebp - 0x514]
push ecx
lea ecx, [ebp - 0x504]
call fcn.00416750
lea ecx, [ebp - 0x47c]
call fcn.00404f50
lea ecx, [ebp - 0x4f0]
mov byte [ebp - 4], 3
call fcn.00439120
lea ecx, [ebp - 0x530]
inc esi
call fcn.00438c50
cmp esi, eax
jb 0x4185f4
push str.CPrinterDriverInf::AllocAndGetValue__OK__prepare_mapSectionItems._n
push 5
call fcn.00411380
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 0x418700
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x460]
call fcn.004026d0
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x510]
push ecx
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 7
call fcn.004138d0
cmp dword [ebp - 0x44c], 8
mov esi, dword [eax]
mov byte [ebp - 4], 3
jb 0x418757
mov edx, dword [ebp - 0x460]
push edx
call fcn.0043c798
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 0x4187e9
push str.CPrinterDriverInf::AllocAndGetValue_pKey_is_not_found_on_the_section._n
push 5
call fcn.00411380
mov edi, dword [ebp - 0x518]
add esp, 8
test edi, edi
jne 0x4187a1
push ebx
call fcn.0042d8e0
add esp, 4
xor ebx, ebx
jmp 0x418919
push 0xf8c
push str...CommonDeviceInf.cpp
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
call fcn.0042d8c0
push str.CPrinterDriverInf::AllocAndGetValue_return_buffer_allocated._n
push 5
mov esi, eax
call fcn.00411380
add esp, 0x14
test esi, esi
jne 0x41886e
push str.CPrinterDriverInf::AllocAndGetValue_Memory_allocation_error.__pBufferReplaced__n
push 2
call fcn.00411380
add esp, 8
jmp 0x418919
push str.CPrinterDriverInf::AllocAndGetValue_pKey_has_been_found_on_the_section._n
push 5
call fcn.00411380
lea edi, [esi + 0x28]
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x418805
mov eax, dword [edi]
jmp 0x418807
mov eax, edi
push eax
push str.CPrinterDriverInf::AllocAndGetValue_iter__second.data______1_s__._n
push 5
call fcn.00411380
lea eax, [esi + 0x28]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x418822
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.0042d8c0
push str.CPrinterDriverInf::AllocAndGetValue_return_buffer_allocated._n
push 5
mov esi, eax
call fcn.00411380
add esp, 0x14
test esi, esi
jne 0x418866
push str.CPrinterDriverInf::AllocAndGetValue_Memory_allocation_error.__pBufferReplaced__n
push 2
call fcn.00411380
add esp, 8
jmp 0x418919
cmp dword [edi + 0x14], 8
jb 0x41886e
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.00411380
push ebx
call fcn.0042d8e0
push str.CPrinterDriverInf::AllocAndGetValue__________________________OUT._n
push 5
call fcn.00411380
add esp, 0x14
cmp dword [ebp - 0x430], 8
jb 0x4188af
mov eax, dword [ebp - 0x444]
push eax
call fcn.0043c798
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.00417600
mov eax, dword [ebp - 0x500]
push eax
call fcn.0043c798
add esp, 4
lea ecx, [ebp - 0x530]
mov byte [ebp - 4], 0
call fcn.0043a0f0
mov eax, esi
jmp 0x41858a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CPrinterDriverInf::AllocAndGetValue__________________________Error_OUT._n
push 5
call fcn.00411380
push ebx
call fcn.0042d8e0
add esp, 0xc
cmp dword [ebp - 0x430], 8
jb 0x418946
mov ecx, dword [ebp - 0x444]
push ecx
call fcn.0043c798
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.00417600
mov ecx, dword [ebp - 0x500]
push ecx
jmp 0x418571
lea edx, [ebp - 0x510]
mov dword [ebp - 0x510], ecx
push edx
lea ecx, [ebp - 0x540]
call fcn.00531024
push 0x5ab798
lea eax, [ebp - 0x540]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.005317b1
int3