Function at 0x4370a0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d231
mov eax, dword fs:[0]
push eax
sub esp, 0xaa0
mov eax, dword [0x608554]
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 esi, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0xa84], eax
lea ecx, [ebp - 0xa70]
mov eax, dword [ebp + 0x14]
push str.CheckPrinterDriverInstall::CompareAndCopyFile
mov dword [ebp - 0xa98], edi
mov dword [ebp - 0xa7c], ebx
mov dword [ebp - 0xa88], eax
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x43719e
test byte [ecx + 0x1c], 1
je 0x437156
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5caa20
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x6f
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x43719e
test byte [ecx + 0x1c], 1
je 0x43719e
push dword [ebp - 0xa88]
cmp dword [0x608f68], 8
mov eax, 0x608f54
push dword [ebp - 0xa84]
cmovae eax, dword [0x608f54]
mov edx, 0x5caa20
push ebx
push edi
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x70
call fcn.00430260
add esp, 0x1c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
add esp, 0x24
lea ecx, [ebp - 0xaac]
call fcn.0055b16f
mov byte [ebp - 4], 1
mov eax, 1
push 0x208
mov dword [ebp - 0xa80], eax
or ebx, 0xffffffff
mov dword [ebp - 0xa78], eax
lea eax, [ebp - 0x830]
push 0
push eax
mov dword [ebp - 0xa8c], ebx
mov dword [ebp - 0xa90], ebx
call fcn.00571c00
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00571c00
add esp, 0x18
mov dword [ebp - 0xa94], 0
lea ecx, [ebp - 0xa74]
call fcn.0046a2f0
mov byte [ebp - 4], 2
mov eax, dword [0x6184f0]
mov eax, dword [eax + 8]
cmp dword [eax + 0x7f8], 2
jne 0x43729d
lea eax, [ebp - 0xa78]
mov ecx, esi
push eax
lea eax, [ebp - 0xa90]
push eax
call fcn.00436650
mov eax, dword [0x6184f0]
mov ebx, dword [ebp - 0xa90]
mov dword [ebp - 0xa8c], ebx
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x3d4]
mov dword [ebp - 0xa94], eax
mov eax, dword [ebp - 0xa78]
mov dword [ebp - 0xa80], eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
test edi, edi
je 0x4372b1
push edi
lea eax, [ebp - 0x830]
push eax
call esi
mov eax, dword [ebp - 0xa7c]
test eax, eax
je 0x4372c5
push eax
lea eax, [ebp - 0xa38]
push eax
call esi
cmp ebx, 2
jge 0x4376d1
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
imul ecx, ebx, 0x208
mov dword [ebp - 0xa78], ecx
mov eax, dword [0x6184f0]
mov eax, dword [eax + 8]
cmp dword [eax + 0x7f8], 2
jne 0x437386
mov edx, dword [ebp - 0xa80]
test dword [ebp - 0xa94], edx
je 0x4376ac
cmp ebx, 4
jb 0x437313
mov esi, 0x5c6930
jmp 0x43731b
lea esi, [eax + 0x3d8]
add esi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x830]
push edi
push eax
call ebx
push dword [ebp - 0xa7c]
lea eax, [ebp - 0xa38]
push eax
call ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x830]
push eax
call ebx
lea eax, [ebp - 0xa38]
push eax
call ebx
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x830]
push eax
call ebx
lea eax, [ebp - 0xa38]
push eax
call ebx
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0xa84]
cmp word [eax], 0
je 0x437502
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xaac]
call fcn.0055b63e
push 0
lea eax, [ebp - 0xaac]
push eax
push edi
lea ecx, [ebp - 0xa74]
call fcn.0046bb90
mov eax, dword [ebp - 0xaa4]
xor edi, edi
mov ebx, eax
test ebx, ebx
jle 0x4374f3
nop dword [eax]
test edi, edi
js 0x43775b
cmp edi, eax
jge 0x43775b
push 2
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0xaa8]
lea ecx, [ebp - 0xa74]
push dword [eax + edi*4]
call fcn.0046c3f0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xa84]
lea eax, [ebp - 0x628]
push 0x5c70f4
push eax
call esi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xa98]
lea eax, [ebp - 0x420]
push 0x5c70f4
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x420]
lea ecx, [ebp - 0xa74]
push 1
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0046c620
test eax, eax
jle 0x4374c6
push 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4374e3
mov eax, dword [0x608f30]
cmp eax, 0x608f30
je 0x4374e3
test byte [eax + 0x1c], 2
je 0x4374e3
cmp dword [0x608f68], 8
lea ecx, [ebp - 0xa70]
mov esi, 0x608f54
cmovae esi, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5caa20
push esi
mov ecx, 0x71
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x4374e3
cmp eax, 0xffffffff
jne 0x4374e3
mov ecx, dword [0x6184f0]
push 0x5ca984
push str.DRVMDLEXIST
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
inc edi
cmp edi, ebx
jge 0x4374f3
mov eax, dword [ebp - 0xaa4]
jmp 0x4373d0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xaac]
call fcn.0055b63e
mov eax, dword [ebp - 0xa88]
cmp word [eax], 0
je 0x437683
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xaac]
call fcn.0055b63e
mov edi, dword [ebp - 0xa7c]
lea eax, [ebp - 0xaac]
push 0
push eax
push edi
lea ecx, [ebp - 0xa74]
call fcn.0046bb90
mov eax, dword [ebp - 0xaa4]
xor esi, esi
mov ebx, eax
test ebx, ebx
jle 0x437674
nop
test esi, esi
js 0x43775b
cmp esi, eax
jge 0x43775b
push 2
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0xaa8]
lea ecx, [ebp - 0xa74]
push dword [eax + esi*4]
call fcn.0046c3f0
lea eax, [ebp - 0x218]
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x420]
push 0x5c70f4
push eax
call edi
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xa88]
lea eax, [ebp - 0x628]
push 0x5c70f4
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0x420]
lea ecx, [ebp - 0xa74]
push 1
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0046c620
test eax, eax
jle 0x437641
push 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x43765e
mov eax, dword [0x608f30]
cmp eax, 0x608f30
je 0x43765e
test byte [eax + 0x1c], 2
je 0x43765e
cmp dword [0x608f68], 8
lea ecx, [ebp - 0xa70]
mov edi, 0x608f54
cmovae edi, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5caa20
push edi
mov ecx, 0x72
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
add esp, 0x10
jmp 0x43765e
cmp eax, 0xffffffff
jne 0x43765e
mov ecx, dword [0x6184f0]
push 0x5ca984
push str.DRVMDLEXIST
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
inc esi
cmp esi, ebx
jge 0x437674
mov eax, dword [ebp - 0xaa4]
mov edi, dword [ebp - 0xa7c]
jmp 0x437550
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xaac]
call fcn.0055b63e
mov eax, dword [0x6184f0]
mov eax, dword [eax + 8]
cmp dword [eax + 0x7f8], 2
jne 0x4376d1
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [ebp - 0xa8c]
mov ecx, dword [ebp - 0xa78]
mov edi, dword [ebp - 0xa98]
shl dword [ebp - 0xa80], 1
add ecx, 0x208
inc ebx
mov dword [ebp - 0xa78], ecx
mov dword [ebp - 0xa8c], ebx
cmp ecx, 0x410
jl 0x4372e0
mov byte [ebp - 0xa6c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x43771a
test byte [ecx + 0x1c], 1
je 0x43771a
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5caa20
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x73
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0xa74]
call fcn.0046a3c0
lea ecx, [ebp - 0xaac]
call fcn.0055b186
lea ecx, [ebp - 0xa70]
call fcn.0040a570
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.0056d977
mov esp, ebp
pop ebp
ret 0x10
call fcn.005511b9
int3