Function at 0x464170
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0xffffffff
push 0x140
call fcn.0047642c
add esp, 4
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x30], eax
mov dword [ebp - 8], 0
push 0x7d4
call fcn.0047642c
add esp, 4
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x288]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
push 0x140
push 0
mov edx, dword [ebp - 0x30]
push edx
call fcn.004886d0
add esp, 0xc
push 0x7d4
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.004886d0
add esp, 0xc
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x138], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 0x1c]
mov dword [edx + 4], eax
call fcn.00473800
push eax
call fcn.004640c0
add esp, 4
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x70], eax
call fcn.00473800
push eax
call fcn.004640c0
add esp, 4
mov edx, dword [ebp - 0x30]
xor ecx, ecx
cmp dword [edx], eax
sete cl
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
push edx
push str.InstallPrinterDriverFromInf___:_Open_inf_file___s__n
push 0
call fcn.004680b0
add esp, 0xc
cmp dword [ebp + 0x1c], 0
jne 0x4642c8
cmp dword [ebp + 0x18], 1
jg 0x4642bc
push str.InstallPrinterDriverFromInf___Trys_to_Open_As_Class_USB_n
push 0
call fcn.004680b0
add esp, 8
push 0
push 2
push 0x4c928c
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x4642ba
push str.InstallPrinterDriverFromInf___Opened_INF_Class__USB___n
push 0
call fcn.004680b0
add esp, 8
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 8], 2
mov dword [ebp - 0x20], 1
jmp 0x4642c6
mov edx, dword [ebp - 0x30]
mov dword [edx + 8], 3
jmp 0x4642d2
mov eax, dword [ebp - 0x30]
mov dword [eax + 8], 0
cmp dword [ebp - 0x24], 0xffffffff
jne 0x464312
push str.InstallPrinterDriverFromInf___Trys_to_Open_As_Class_Printer_n
push 0
call fcn.004680b0
add esp, 8
push 0
push 2
push 0x4c9308
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x464312
push str.InstallPrinterDriverFromInf___Opened_INF_Class__Printer___n
push 0
call fcn.004680b0
add esp, 8
cmp dword [ebp - 0x24], 0xffffffff
jne 0x46431f
xor eax, eax
jmp 0x464964
push 0
mov edx, dword [ebp - 0x24]
push edx
push 0
call dword [sym.imp.SETUPAPI.dll_SetupOpenAppendInfFileA]
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00464b00
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x464354
jmp 0x464889
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00464de0
add esp, 0xc
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00465670
add esp, 0x18
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00464a60
add esp, 8
lea ecx, [ebp - 8]
push ecx
call fcn.00464a00
add esp, 4
cmp dword [ebp - 0x3c], 0
jne 0x4643bd
jmp 0x464889
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.00467a30
add esp, 8
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00465b30
add esp, 0xc
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00467ef0
add esp, 8
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00464f10
add esp, 0xc
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00465260
add esp, 0xc
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00465380
add esp, 8
push 5
call fcn.00469840
add esp, 4
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x70], 4
jl 0x464463
push 0x104
call fcn.0047645c
add esp, 4
mov dword [ebp - 0x28c], eax
mov edx, dword [ebp - 0x28c]
mov dword [ebp - 0x2a0], edx
jmp 0x46446d
mov dword [ebp - 0x2a0], 0
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x70], 6
je 0x46448c
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x70], 9
jne 0x464634
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x15c], 0x104
push 0x1e
call fcn.00469840
add esp, 4
mov dword [ebp - 0x1c], 0x1e
mov dword [ebp - 0x18], 0x50
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0x7d0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x28]
push eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x4680c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x2a4], 9
ja case.default.0x464507
mov ecx, dword [ebp - 0x2a4]
movzx edx, byte [ecx + 0x464980]
jmp dword [edx*4 + 0x464974]
mov dword [ebp - 0x4c], 0x4c934c
jmp case.default.0x464507
mov dword [ebp - 0x4c], 0x4c9358
jmp case.default.0x464507
mov dword [ebp - 0x4c], 0x4c9368
push 0x4c9374
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x46458b
push str.UploadPrinterDriverPackageA
mov eax, dword [ebp - 0x44]
push eax
call dword [0x4e56bc]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
je 0x464581
lea ecx, [ebp - 0x15c]
push ecx
lea edx, [ebp - 0x158]
push edx
push 0
push 2
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [ebp - 0x164]
mov dword [ebp - 0x160], eax
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0xc], 1
push 0x186a0
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x160], 0
je 0x4645d2
cmp dword [ebp - 0x40], 0
je 0x4645c8
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x290], ecx
mov edx, dword [ebp - 0x290]
push edx
call fcn.00476457
add esp, 4
jmp 0x464889
lea eax, [ebp - 0x158]
push eax
call fcn.00464990
add esp, 4
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00464a30
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x4c], eax
push 0x5c
lea eax, [ebp - 0x158]
push eax
call fcn.00468570
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x46461c
push 0
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004684f0
add esp, 8
lea edx, [ebp - 0x158]
push edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.00489ae0
add esp, 8
jmp 0x46480e
cmp dword [ebp - 0x2c], 0
je 0x4646a2
push 0x104
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00473e80
add esp, 0x1c
test eax, eax
je 0x4646a0
call fcn.00476280
push eax
push 0x4c93a0
push 0
call fcn.004680b0
add esp, 0xc
cmp dword [ebp - 0x40], 0
je 0x464696
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x294], ecx
mov edx, dword [ebp - 0x294]
push edx
call fcn.00476457
add esp, 4
jmp 0x464889
jmp 0x46470e
push 0x104
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00475170
add esp, 0x20
test eax, eax
je 0x46470e
call fcn.00476280
push eax
push str.InstallPrinterDriverFromInf___failed_LTcopyFilesByInfFile_____d__n
push 0
call fcn.004680b0
add esp, 0xc
cmp dword [ebp - 0x40], 0
je 0x464704
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x298], edx
mov eax, dword [ebp - 0x298]
push eax
call fcn.00476457
add esp, 4
jmp 0x464889
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00464990
add esp, 4
push eax
mov edx, dword [ebp - 4]
push edx
call fcn.00464a30
add esp, 8
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x48], eax
cmp dword [ebp - 0x40], 0
je 0x46474b
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x29c], edx
mov eax, dword [ebp - 0x29c]
push eax
call fcn.00476457
add esp, 4
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x70], 3
jl 0x46480e
push 0x4c942c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x168], eax
cmp dword [ebp - 0x168], 0
je 0x46480e
push str.SetupCopyOEMInfA
mov edx, dword [ebp - 0x168]
push edx
call dword [0x4e56bc]
mov dword [ebp - 0x16c], eax
cmp dword [ebp - 0x16c], 0
je 0x464801
lea eax, [ebp - 0x27c]
push eax
push 0
push 0x104
lea ecx, [ebp - 0x278]
push ecx
push 0
push 1
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [ebp - 0x16c]
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x278]
push eax
call fcn.00464990
add esp, 4
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00464a30
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x4c], eax
lea eax, [ebp - 0x278]
push eax
mov ecx, dword [ebp - 0x280]
push ecx
push str.SetupCopyOEMInf__bRet_d_OEMx.inf_s_n
push 0
call fcn.004680b0
add esp, 0x10
mov edx, dword [ebp - 0x168]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.InstallPrinterDriverFromInf___succeeded_LTcopyFilesByInfFile___n
push 0
call fcn.004680b0
add esp, 8
push str.InstallPrinterDriverFromInf___call_getDriverData___n
push 0
call fcn.004680b0
add esp, 8
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00465c80
add esp, 0xc
test eax, eax
jne 0x464848
jmp 0x464889
push str.InstallPrinterDriverFromInf___succeeded_to_getDriverData___n
push 0
call fcn.004680b0
add esp, 8
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.00467af0
add esp, 0xc
test eax, eax
jne 0x464873
jmp 0x464889
push str.InstallPrinterDriverFromInf___succeeded_n
push 0
call fcn.004680b0
add esp, 8
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x70], 4
jl 0x46490c
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x70], 3
jle 0x4648c3
cmp dword [ebp - 0x34], 0
je 0x4648c3
cmp dword [ebp - 0x2c], 0
je 0x4648c3
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x40], 0
je 0x4648c3
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x40]
push ecx
call fcn.00489c70
add esp, 4
test eax, eax
ja 0x46490c
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x44], 0
je 0x46490c
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x44]
push ecx
call fcn.00489c70
add esp, 4
test eax, eax
jbe 0x46490c
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x48], 0
je 0x46490c
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x48]
push ecx
call fcn.00489c70
add esp, 4
test eax, eax
jbe 0x46490c
push 1
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x48]
push eax
call fcn.004654d0
add esp, 8
cmp dword [ebp - 0x34], 0
jne 0x46492f
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00468140
add esp, 4
cmp dword [ebp + 0x24], 0
je 0x46492d
mov edx, dword [ebp + 0x24]
mov dword [edx], 0
jmp 0x46494b
cmp dword [ebp + 0x24], 0
je 0x46493f
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
jmp 0x46494b
mov edx, dword [ebp - 0x30]
push edx
call fcn.00468140
add esp, 4
lea eax, [ebp - 8]
push eax
call fcn.00464a00
add esp, 4
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret