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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55876e
mov eax, dword fs:[0]
push eax
sub esp, 0x534
mov eax, dword [0x5d7b20]
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.004477d0
push 0x48
mov byte [ebp - 4], 1
mov dword [ebp - 0x4fc], ebx
call fcn.00449b42
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x43161f
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.00403ab0
add esp, 8
test edi, edi
je 0x4315a1
cmp dword [ebp - 0x508], ebx
je 0x4315a1
push str.CPrinterDriverInf::AllocAndGetValue__OK__pSection__pKey._n
push 5
call fcn.00403ab0
push edi
push str.CPrinterDriverInf::AllocAndGetValue_pSection___1_s_._n
push 5
call fcn.00403ab0
mov ecx, dword [ebp - 0x508]
push ecx
push str.CPrinterDriverInf::AllocAndGetValue_pKey___1_s_._n
push 5
call fcn.00403ab0
mov edi, dword [ebp - 0x4f4]
add esp, 0x20
push 0xffffffffffffffff
push ebx
add edi, 0xc
push edi
lea ecx, [ebp - 0x444]
call fcn.00401f90
push 0x20a
lea edx, [ebp - 0x428]
push ebx
push edx
call fcn.0053e550
push 0x20a
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.0053e550
add esp, 0x18
lea ecx, [ebp - 0x428]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x43108e
lea edx, [ebp - 0x21c]
push edx
push ebx
push 0x579474
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x43108e
cmp dword [edi + 0x14], 8
jb 0x431043
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 0x43108e
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.00402490
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x4310a3
lea eax, [ebp - 0x444]
push eax
push str.CPrinterDriverInf::AllocAndGetValue_strTargetInfFile___1_s__IN_n
push 5
call fcn.00403ab0
push 0xfe1
push str...CommonDeviceInf.cpp
push 0x200
call fcn.0043e4e0
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x431152
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x4310ec
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 0x431117
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 0x431152
push ebx
call fcn.0043e500
push 0xfec
add esi, 0x100
lea edx, [esi + esi]
push str...CommonDeviceInf.cpp
push edx
call fcn.0043e4e0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4310d7
push str.CPrinterDriverInf::AllocAndGetValue_Get_section_items_finished._n
push 5
call fcn.00403ab0
xor esi, esi
add esp, 8
cmp word [ebp - 0x21c], si
je 0x4311a1
lea eax, [ebp - 0x21c]
push eax
push str.CPrinterDriverInf::AllocAndGetValue_Delete_the_temp_file.___1_s___n
push 5
call fcn.00403ab0
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 0x431238
cmp dword [ebp - 0x430], 8
jb 0x4311c1
mov eax, dword [ebp - 0x444]
push eax
call fcn.00449b7c
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.00423160
mov eax, dword [ebp - 0x500]
push eax
call fcn.00449b7c
add esp, 4
lea ecx, [ebp - 0x530]
mov byte [ebp - 4], 0
call fcn.00447830
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.0053e1ad
mov esp, ebp
pop ebp
ret 0xc
push ebx
lea ecx, [ebp - 0x530]
call fcn.00448200
test eax, eax
jne 0x43125c
push str.CPrinterDriverInf::AllocAndGetValue__NG__dnlSectionItems.Set._n
push 5
call fcn.00403ab0
add esp, 8
jmp 0x4315a9
push str.CPrinterDriverInf::AllocAndGetValue__OK__dnlSectionItems.Set._n
push 5
call fcn.00403ab0
add esp, 8
lea ecx, [ebp - 0x530]
call fcn.00445fe0
test eax, eax
je 0x431351
mov edi, dword [ebp - 0x4f4]
lea ecx, [ebp - 0x4f0]
call fcn.00446510
push esi
lea ecx, [ebp - 0x530]
mov byte [ebp - 4], 5
call fcn.00446210
push eax
lea ecx, [ebp - 0x4f0]
call fcn.004472e0
lea ecx, [ebp - 0x4f0]
call fcn.00446360
push eax
lea ecx, [edi + 0x30]
call fcn.00446a30
lea ecx, [ebp - 0x4f0]
mov dword [ebp - 0x50c], eax
call fcn.00446350
push eax
lea ecx, [edi + 0x30]
call fcn.00446a30
lea ecx, [ebp - 0x50c]
push ecx
lea edx, [ebp - 0x4f4]
push edx
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x4f4], eax
call fcn.0042d910
push 0
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 6
call fcn.004232e0
push eax
lea ecx, [ebp - 0x514]
push ecx
lea ecx, [ebp - 0x504]
call fcn.00420ef0
lea ecx, [ebp - 0x47c]
call fcn.00418480
lea ecx, [ebp - 0x4f0]
mov byte [ebp - 4], 3
call fcn.00446550
lea ecx, [ebp - 0x530]
inc esi
call fcn.00445fe0
cmp esi, eax
jb 0x431284
push str.CPrinterDriverInf::AllocAndGetValue__OK__prepare_mapSectionItems._n
push 5
call fcn.00403ab0
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 0x431390
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x460]
call fcn.004021b0
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x510]
push ecx
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 7
call fcn.0041afc0
cmp dword [ebp - 0x44c], 8
mov esi, dword [eax]
mov byte [ebp - 4], 3
jb 0x4313e7
mov edx, dword [ebp - 0x460]
push edx
call fcn.00449b7c
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 0x431479
push str.CPrinterDriverInf::AllocAndGetValue_pKey_is_not_found_on_the_section._n
push 5
call fcn.00403ab0
mov edi, dword [ebp - 0x518]
add esp, 8
test edi, edi
jne 0x431431
push ebx
call fcn.0043e500
add esp, 4
xor ebx, ebx
jmp 0x4315a9
push 0x1012
push str...CommonDeviceInf.cpp
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
call fcn.0043e4e0
push str.CPrinterDriverInf::AllocAndGetValue_return_buffer_allocated._n
push 5
mov esi, eax
call fcn.00403ab0
add esp, 0x14
test esi, esi
jne 0x4314fe
push str.CPrinterDriverInf::AllocAndGetValue_Memory_allocation_error.__pBufferReplaced__n
push 2
call fcn.00403ab0
add esp, 8
jmp 0x4315a9
push str.CPrinterDriverInf::AllocAndGetValue_pKey_has_been_found_on_the_section._n
push 5
call fcn.00403ab0
lea edi, [esi + 0x28]
add esp, 8
cmp dword [edi + 0x14], 8
jb 0x431495
mov eax, dword [edi]
jmp 0x431497
mov eax, edi
push eax
push str.CPrinterDriverInf::AllocAndGetValue_iter__second.data______1_s__._n
push 5
call fcn.00403ab0
lea eax, [esi + 0x28]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4314b2
mov eax, dword [eax]
push 0x101e
push str...CommonDeviceInf.cpp
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
call fcn.0043e4e0
push str.CPrinterDriverInf::AllocAndGetValue_return_buffer_allocated._n
push 5
mov esi, eax
call fcn.00403ab0
add esp, 0x14
test esi, esi
jne 0x4314f6
push str.CPrinterDriverInf::AllocAndGetValue_Memory_allocation_error.__pBufferReplaced__n
push 2
call fcn.00403ab0
add esp, 8
jmp 0x4315a9
cmp dword [edi + 0x14], 8
jb 0x4314fe
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.00403ab0
push ebx
call fcn.0043e500
push str.CPrinterDriverInf::AllocAndGetValue__________________________OUT._n
push 5
call fcn.00403ab0
add esp, 0x14
cmp dword [ebp - 0x430], 8
jb 0x43153f
mov eax, dword [ebp - 0x444]
push eax
call fcn.00449b7c
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.00423160
mov eax, dword [ebp - 0x500]
push eax
call fcn.00449b7c
add esp, 4
lea ecx, [ebp - 0x530]
mov byte [ebp - 4], 0
call fcn.00447830
mov eax, esi
jmp 0x43121a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CPrinterDriverInf::AllocAndGetValue__________________________Error_OUT._n
push 5
call fcn.00403ab0
push ebx
call fcn.0043e500
add esp, 0xc
cmp dword [ebp - 0x430], 8
jb 0x4315d6
mov ecx, dword [ebp - 0x444]
push ecx
call fcn.00449b7c
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.00423160
mov ecx, dword [ebp - 0x500]
push ecx
jmp 0x431201
lea edx, [ebp - 0x510]
mov dword [ebp - 0x510], ecx
push edx
lea ecx, [ebp - 0x540]
call fcn.0053d3bb
push 0x5bd610
lea eax, [ebp - 0x540]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.0053e34a
int3