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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558a0c
mov eax, dword fs:[0]
push eax
sub esp, 0x494
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x464], eax
xor eax, eax
xor edx, edx
mov dword [ebp - 0x46c], ecx
mov edi, 0x100
mov dword [ebp - 0x44c], 7
mov dword [ebp - 0x450], eax
mov word [ebp - 0x460], dx
lea ecx, [ebp - 0x484]
mov dword [ebp - 4], eax
call fcn.004477d0
xor eax, eax
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], 0
mov word [ebp - 0x444], ax
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection__________________________IN._n
push 5
mov byte [ebp - 4], 2
call fcn.00403ab0
add esp, 8
test ebx, ebx
je 0x4346d4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4346d4
push 0xffffffffffffffff
push 0
add esi, 0xc
push esi
lea ecx, [ebp - 0x444]
call fcn.00401f90
push 0x20a
lea ecx, [ebp - 0x428]
push 0
push ecx
call fcn.0053e550
push 0x20a
lea edx, [ebp - 0x21c]
push 0
push edx
call fcn.0053e550
add esp, 0x18
lea eax, [ebp - 0x428]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4343be
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0x579474
lea edx, [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4343be
cmp dword [esi + 0x14], 8
jb 0x434373
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4343be
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x80
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x444]
call fcn.00402490
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x4343d3
lea eax, [ebp - 0x444]
push eax
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection_strTargetInfFile___1_s__IN_n
push 5
call fcn.00403ab0
push 0x1086
push str...CommonDeviceInf.cpp
push 0x200
call fcn.0043e4e0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x43447a
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x434412
lea eax, [ebp - 0x444]
push eax
push 2
lea ecx, [ebp - 0x488]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x430], 8
mov eax, dword [ebp - 0x444]
jae 0x43443d
lea eax, [ebp - 0x444]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea edx, [edi - 2]
cmp edx, eax
jne 0x43457a
push esi
call fcn.0043e500
push 0x1092
add edi, 0x100
lea eax, [edi + edi]
push str...CommonDeviceInf.cpp
push eax
call fcn.0043e4e0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4343fd
cmp word [ebp - 0x21c], 0
je 0x4344b9
lea ecx, [ebp - 0x21c]
push ecx
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection_Delete_the_temp_file.___1_s___n
push 5
call fcn.00403ab0
add esp, 0xc
push 0x80
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x4346eb
push esi
lea ecx, [ebp - 0x484]
call fcn.00448200
push esi
call fcn.0043e500
add esp, 4
lea ecx, [ebp - 0x484]
xor ebx, ebx
call fcn.00445fe0
test eax, eax
je 0x43465d
jmp 0x4344f0
lea ecx, [ebp - 0x4a0]
call fcn.004479b0
push 0x2c
push ebx
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 3
call fcn.00446210
push eax
lea ecx, [ebp - 0x4a0]
call fcn.00447da0
push 0x20
lea ecx, [ebp - 0x4a0]
call fcn.004472b0
mov edi, dword [ebp - 0x464]
test edi, edi
je 0x434590
push 0x5c
push edi
call fcn.0053dd9b
mov esi, eax
mov eax, edi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434542
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x460]
call fcn.004021b0
test esi, esi
je 0x4345a2
cmp word [esi + 2], 0
je 0x4345a2
push 0x5c
push 1
lea ecx, [ebp - 0x460]
call fcn.00418610
jmp 0x4345a2
test eax, eax
jne 0x43447a
push esi
call fcn.0043e500
add esp, 4
jmp 0x4346eb
push 0
push 0x568928
lea ecx, [ebp - 0x460]
call fcn.004021b0
push 0
lea ecx, [ebp - 0x4a0]
call fcn.00446210
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4345b4
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.00402090
mov eax, dword [ebp - 0x44c]
mov edx, dword [ebp - 0x460]
mov esi, edx
cmp eax, 8
jae 0x43461e
lea esi, [ebp - 0x460]
mov ecx, esi
mov edi, dword [ebp - 0x450]
cmp eax, 8
lea ecx, [ecx + edi*2]
mov eax, edx
jae 0x434601
lea eax, [ebp - 0x460]
cmp eax, ecx
je 0x434622
push fcn.0053e521
push esi
push ecx
push eax
lea ecx, [ebp - 0x468]
push ecx
call fcn.004019c0
add esp, 0x14
jmp 0x434628
mov ecx, edx
jmp 0x4345eb
mov dword [ebp - 0x468], esi
mov ecx, dword [ebp - 0x46c]
lea edx, [ebp - 0x460]
push edx
call fcn.00423c70
lea ecx, [ebp - 0x4a0]
mov byte [ebp - 4], 2
call fcn.004479c0
lea ecx, [ebp - 0x484]
inc ebx
call fcn.00445fe0
cmp ebx, eax
jb 0x4344f0
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection__________________________OUT._n
push 5
call fcn.00403ab0
mov esi, 8
add esp, 8
cmp dword [ebp - 0x430], esi
jb 0x434688
mov eax, dword [ebp - 0x444]
push eax
call fcn.00449b7c
add esp, 4
xor ecx, ecx
mov word [ebp - 0x444], cx
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x484]
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], 0
call fcn.00447830
cmp dword [ebp - 0x44c], esi
jb 0x4346ca
mov edx, dword [ebp - 0x460]
push edx
call fcn.00449b7c
add esp, 4
mov eax, 1
jmp 0x43475a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection_pSection_is_invalid._n
push 5
call fcn.00403ab0
add esp, 8
push str.CPrinterDriverInf::GetFilesFromCopyFilesSection__________________________Error_OUT._n
push 5
call fcn.00403ab0
mov esi, 8
add esp, 8
cmp dword [ebp - 0x430], esi
jb 0x434716
mov eax, dword [ebp - 0x444]
push eax
call fcn.00449b7c
add esp, 4
xor ecx, ecx
mov word [ebp - 0x444], cx
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x484]
mov dword [ebp - 0x430], 7
mov dword [ebp - 0x434], 0
call fcn.00447830
cmp dword [ebp - 0x44c], esi
jb 0x434758
mov edx, dword [ebp - 0x460]
push edx
call fcn.00449b7c
add esp, 4
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