Function at 0x422370
Capabilities:
Delete registry key
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x567bdc
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1bf4
call fcn.00542ad0
mov eax, dword [0x5c0490]
xor eax, esp
mov dword [esp + 0x1bf0], eax
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, esp
push eax
lea eax, [esp + 0x1c08]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [esp + 0x14]
mov esi, ecx
mov edi, edx
push str.Tool_DeletePrinterStd
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x58], edi
call fcn.00401190
add esp, 0xc
push ebx
push edi
push esi
push str.hWnd___08x__lpszPrinter___s__bJob___d
lea ecx, [esp + 0x20]
push 1
push ecx
mov dword [esp + 0x1c28], ebx
call fcn.00401410
push 0x85e
lea eax, [esp + 0x13ba]
xor edx, edx
push ebx
push eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x54], ebx
mov word [esp + 0x13c0], dx
call fcn.00541d20
add esp, 0x24
push 0x40e
lea edx, [esp + 0x15a]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x84], 1
mov word [esp + 0x160], cx
call fcn.00541d20
xor eax, eax
add esp, 0xc
mov word [esp + 0x9c], ax
push ebx
mov eax, 0x5988ec
lea esi, [esp + 0xa0]
mov dword [esp + 0x38], ebx
mov dword [esp + 0xb4], 7
mov dword [esp + 0xb0], ebx
call fcn.00403030
mov eax, 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov byte [esp + 0x1c10], 2
call fcn.0044b52d
mov esi, dword [eax + 4]
mov dword [esp + 0x40], esi
call fcn.00414850
push ebx
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0xb4]
push ebx
push 0x1004
push ecx
mov dword [esp + 0x8c], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
jle 0x422848
push ebx
push ebx
push 1
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.0041f480
add esp, 0xc
cmp eax, 1
jne 0x42256c
push 3
push str.return___08x
lea edx, [esp + 0x18]
push 2
push edx
call fcn.00401410
add esp, 0x10
cmp dword [esp + 0xb0], 8
jb 0x422532
mov eax, dword [esp + 0x9c]
push eax
call fcn.00448ac2
add esp, 4
xor ecx, ecx
mov word [esp + 0x9c], cx
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], ebx
mov dword [esp + 0x1c10], 0xffffffff
call fcn.00401370
mov eax, 3
jmp 0x422824
xor eax, eax
cmp edi, ebx
je 0x422581
mov edx, dword [esi + 0x5f0]
mov eax, dword [edx + 0xa4]
push edi
call eax
mov esi, dword [sym.imp.WINSPOOL.DRV_EnumPrintersW]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
push ebx
push ebx
push 2
push ebx
push 6
mov dword [esp + 0x98], eax
call esi
test eax, eax
jne 0x4225ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4225ef
push 1
push str.return___08x
lea eax, [esp + 0x18]
push 2
push eax
call fcn.00401410
add esp, 0x10
cmp dword [esp + 0xb0], 8
jb 0x4225e0
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00448ac2
add esp, 4
xor edx, edx
mov word [esp + 0x9c], dx
jmp 0x4227f9
mov eax, dword [esp + 0x30]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x4227bf
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x34]
push edx
push eax
push ecx
push 2
push ebx
push 6
call esi
test eax, eax
je 0x42269e
xor esi, esi
cmp dword [esp + 0x34], ebx
jbe 0x42269e
mov ebx, dword [esp + 0x24]
add ebx, 4
mov edx, dword [ebx]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x422650
inc esi
add ebx, 0x54
cmp esi, dword [esp + 0x34]
jb 0x422636
jmp 0x42269c
imul esi, esi, 0x54
add esi, dword [esp + 0x24]
mov ecx, dword [esi + 4]
cmp word [ecx], 0x5c
jne 0x422675
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x422675
mov dword [esp + 0x1c], 1
mov eax, dword [esi + 0x10]
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x422680
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xa0]
call fcn.00403030
xor ebx, ebx
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [esp + 0x1c], ebx
jne 0x4228a7
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x48]
push edx
push edi
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], 0xf000c
call dword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0x42279d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
lea eax, [esp + 0x10]
jne 0x422761
push 4
push str.return___08x
push 2
push eax
call fcn.00401410
add esp, 0x10
cmp dword [esp + 0xb0], 8
jb 0x422727
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00448ac2
add esp, 4
xor edx, edx
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], dx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c10], 0xffffffff
call fcn.00401370
mov eax, 4
jmp 0x422824
push 1
push str.return___08x
push 2
push eax
call fcn.00401410
add esp, 0x10
cmp dword [esp + 0xb0], 8
jb 0x4225e0
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00448ac2
add esp, 4
xor edx, edx
mov word [esp + 0x9c], dx
jmp 0x4227f9
lea edx, [esp + 0x154]
mov ecx, edi
call fcn.0041fbe0
cmp eax, 0xffffffff
jne 0x4228a7
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
push 1
push str.return___08x
lea ecx, [esp + 0x18]
push 2
push ecx
call fcn.00401410
add esp, 0x10
cmp dword [esp + 0xb0], 8
jb 0x4227ef
mov edx, dword [esp + 0x9c]
push edx
call fcn.00448ac2
add esp, 4
xor eax, eax
mov word [esp + 0x9c], ax
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c10], 0xffffffff
call fcn.00401370
mov eax, 1
mov ecx, dword [esp + 0x1c08]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1bf0]
xor ecx, esp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xf0]
push ecx
push 0x595e00
call fcn.0042c390
add esp, 8
test al, al
je 0x4227bf
mov esi, dword [esi + 0x140]
cmp dword [esi + 0x28], ebx
je 0x4227bf
cmp dword [esi + 0x48], ebx
je 0x4227bf
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x422881
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0xa0]
call fcn.00403030
mov dword [esp + 0x20], 1
mov esi, dword [sym.imp.WINSPOOL.DRV_EnumPrinterDriversW]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
push ebx
push ebx
push 3
push ebx
push ebx
call esi
test eax, eax
jne 0x422938
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x422938
push 6
push str.return___08x
lea ecx, [esp + 0x18]
push 2
push ecx
call fcn.00401410
add esp, 0x10
cmp dword [esp + 0xb0], 8
jb 0x4228fe
mov edx, dword [esp + 0x9c]
push edx
call fcn.00448ac2
add esp, 4
xor eax, eax
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], ax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c10], 0xffffffff
call fcn.00401370
mov eax, 6
jmp 0x422824
mov eax, dword [esp + 0x30]
mov byte [esp + 0x3c], 0
cmp eax, ebx
jbe 0x422959
lea ecx, [esp + 0x3c]
push ecx
push ebx
lea edx, [esp + 0x68]
push edx
call fcn.0042c5b0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [esp + 0x6c]
push eax
push 3
push ebx
push ebx
call esi
test eax, eax
je 0x4229e0
xor esi, esi
cmp dword [esp + 0x34], ebx
jbe 0x4229e0
mov ecx, dword [esp + 0x60]
add ecx, 4
mov dword [esp + 0x2c], ecx
jmp 0x422990
cmp dword [esp + 0xb0], 8
mov eax, dword [esp + 0x9c]
jae 0x4229a8
lea eax, [esp + 0x9c]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [edx]
push eax
call fcn.0053d3bf
add esp, 8
test eax, eax
je 0x4229ca
add dword [esp + 0x2c], 0x28
inc esi
cmp esi, dword [esp + 0x34]
jb 0x422990
jmp 0x4229e0
mov edx, dword [esp + 0x60]
lea ecx, [esi + esi*4]
lea esi, [edx + ecx*8]
mov dword [esp + 0x38], esi
cmp esi, ebx
jne 0x422a98
cmp dword [esp + 0x20], ebx
je 0x422a5d
push ebx
push str.return___08x
lea eax, [esp + 0x18]
push 2
push eax
call fcn.00401410
mov eax, dword [esp + 0x70]
add esp, 0x10
cmp eax, ebx
je 0x422a0c
push eax
call fcn.00448ac2
add esp, 4
cmp dword [esp + 0xb0], 8
jb 0x422a26
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00448ac2
add esp, 4
xor edx, edx
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], dx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c10], 0xffffffff
call fcn.00401370
xor eax, eax
jmp 0x422824
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
push 1
push str.return___08x
lea ecx, [esp + 0x18]
push 2
push ecx
call fcn.00401410
mov eax, dword [esp + 0x70]
add esp, 0x10
cmp eax, ebx
je 0x4227d5
push eax
call fcn.00448ac2
add esp, 4
jmp 0x4227d5
mov ecx, dword [esi + 0x1c]
push ebx
call fcn.00414e00
add esp, 4
cmp eax, 1
jne 0x422c75
call fcn.0044b52d
mov edi, dword [eax + 4]
mov dword [esp + 0x54], edi
call fcn.00448c3f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x422ad3
push 0x80004005
call fcn.00404160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x1c10], 3
call fcn.00448c3f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x422b05
push 0x80004005
call fcn.00404160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
push 2
mov byte [esp + 0x1c14], 4
call fcn.00448b35
cmp eax, ebx
je 0x422b34
push 2
push eax
lea ecx, [esp + 0x28]
call fcn.00405160
push 3
call fcn.00448b35
cmp eax, ebx
je 0x422b4f
push 3
push eax
lea ecx, [esp + 0x30]
call fcn.00405160
mov esi, dword [esp + 0x28]
mov ecx, dword [edi + 0x140]
cmp dword [ecx + 0x28], ebx
je 0x422b9b
mov edi, dword [edi + 0x144]
push esi
call fcn.00410a70
push 0x20
push 0xa
lea ebx, [esp + 0x28]
call fcn.00412690
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x54]
mov edi, dword [ebx + 0x144]
push edx
call fcn.00410a70
mov edi, dword [ebx + 0x144]
push 0x596088
call fcn.00410a70
xor ebx, ebx
jmp 0x422bae
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push 0x30
push esi
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 2
push str.return___08x
lea edx, [esp + 0x18]
push 2
push edx
call fcn.00401410
lea eax, [esi - 0x10]
add esp, 0x10
mov byte [esp + 0x1c10], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422be8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c10], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422c10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x422c21
push eax
call fcn.00448ac2
add esp, 4
cmp dword [esp + 0xb0], 8
jb 0x422c3b
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00448ac2
add esp, 4
xor edx, edx
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], dx
mov dword [esp + 0x1c10], 0xffffffff
call fcn.00401370
mov eax, 2
jmp 0x422824
push 0x80
lea eax, [esp + 0xd8]
push ebx
push eax
call fcn.00541d20
mov ecx, dword [esi + 0xc]
add esp, 0xc
push 1
push 0x40
lea edx, [esp + 0xdc]
call fcn.004157c0
add esp, 8
test eax, eax
jne 0x422d06
cmp dword [esp + 0x1c], ebx
jne 0x422cb6
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
push 1
push str.return___08x
lea edx, [esp + 0x18]
push 2
push edx
call fcn.00401410
mov eax, dword [esp + 0x70]
add esp, 0x10
cmp eax, ebx
je 0x422cdd
push eax
call fcn.00448ac2
add esp, 4
cmp dword [esp + 0xb0], 8
jb 0x422cf7
mov eax, dword [esp + 0x9c]
push eax
call fcn.00448ac2
add esp, 4
xor ecx, ecx
mov word [esp + 0x9c], cx
jmp 0x4227f9
xor eax, eax
lea ebx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov byte [esp + 0x5c], al
call fcn.004139a0
push 0x820
lea edx, [esp + 0x568]
push 0
push edx
call fcn.00541d20
mov edi, dword [esp + 0x58]
lea eax, [esp + 0x38]
add esp, 0xc
push eax
lea edx, [esp + 0x568]
mov ecx, edi
mov dword [esp + 0x30], 0
call fcn.00413b80
add esp, 4
cmp dword [esp + 0x20], 0
jne 0x422e9d
cmp dword [esp + 0x1c], 0
jne 0x422e30
cmp dword [esp + 0x48], 0xa
mov ecx, dword [esp + 0x40]
mov ebx, dword [ecx + 0x5f4]
jne 0x422dc6
mov eax, edi
lea ecx, [esp + 0xb8]
call fcn.00402cf0
lea edx, [esp + 0x564]
mov byte [esp + 0x1c10], 5
mov ecx, dword [esp + 0x2c]
push edx
push ecx
lea edx, [esp + 0x4c]
mov ecx, eax
call fcn.0041d4c0
add esp, 8
lea esi, [esp + 0xb8]
mov edi, eax
mov byte [esp + 0x1c10], 2
call fcn.00402d30
mov esi, dword [esp + 0x38]
jmp 0x422df1
mov edx, dword [esp + 0x44]
push edx
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
push eax
push ebx
add ecx, 0x5e8
push edi
push ecx
lea ecx, [esp + 0x574]
call fcn.00444b00
mov edi, eax
cmp dword [esp + 0x28], 0
je 0x422e00
test edi, edi
je 0x422e9d
push 1
push str.return___08x
push 2
lea edx, [esp + 0x1c]
push edx
call fcn.00401410
add esp, 0x10
lea esi, [esp + 0x60]
call fcn.004071b0
lea esi, [esp + 0x9c]
call fcn.00402d30
jmp 0x42280b
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x5f4]
push 0
push ecx
push edi
add eax, 0x5e8
push eax
xor ecx, ecx
call fcn.00444b00
test eax, eax
je 0x422e9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x422e8a
push 4
push str.return___08x
lea edx, [esp + 0x18]
push 2
push edx
call fcn.00401410
add esp, 0x10
lea esi, [esp + 0x60]
call fcn.004071b0
lea esi, [esp + 0x9c]
call fcn.00402d30
jmp 0x422743
push 1
push str.return___08x
push 2
lea eax, [esp + 0x1c]
push eax
jmp 0x422e0e
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x54]
call fcn.00404f00
mov byte [esp + 0x1c10], 6
call fcn.00448c3f
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x422ece
push 0x80004005
call fcn.00404160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c10], 7
mov eax, dword [esp + 0x50]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x60], esp
mov edi, esp
push eax
call fcn.00406410
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00420c40
add esp, 8
cmp dword [esp + 0x20], ebx
jne 0x423293
lea ecx, [esp + 0x1c]
call fcn.00406370
lea ecx, [esp + 0x24]
call fcn.00406370
lea ecx, [esp + 0x58]
call fcn.00406370
lea ecx, [esp + 0x8c]
call fcn.00406370
mov byte [esp + 0x1c10], 0xb
mov edx, dword [esi + 4]
push edx
lea ecx, [esp + 0x4c]
call fcn.00404f00
push 5
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x1c18], 0xc
call fcn.004103e0
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1c14], 0xd
call fcn.004063a0
mov byte [esp + 0x1c10], 0xc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422fa7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x4c]
push edi
lea ecx, [esp + 0x78]
call fcn.00404f00
push 2
push 0x5983c8
push edi
mov byte [esp + 0x1c1c], 0xe
call fcn.0053da48
add esp, 0xc
test eax, eax
jne 0x4230b2
mov ecx, dword [esp + 0x74]
mov eax, dword [ecx - 0xc]
dec eax
push eax
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x7c]
call fcn.004103e0
mov esi, dword [esp + 0x40]
push eax
add esi, 0xf8
lea eax, [esp + 0x1c]
push esi
push eax
mov byte [esp + 0x1c1c], 0xf
call fcn.004104e0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1c14], 0x10
call fcn.004063a0
lea ecx, [esp + 0x18]
call fcn.00405310
lea ecx, [esp + 0x70]
mov byte [esp + 0x1c10], 0xe
call fcn.00405310
push esi
lea ecx, [esp + 0x28]
call fcn.004063a0
mov esi, dword [esp + 0x1c]
push esi
push SysReAllocString
call fcn.0041dd40
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esp, 8
push esi
push SysReAllocString
call ebx
push 0x5c
lea ecx, [esp + 0x20]
call fcn.0040a280
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00410460
mov byte [esp + 0x1c10], 0x11
mov edi, dword [esp + 0x18]
mov esi, SysReAllocString
call fcn.0041df30
cmp eax, 1
jne 0x42309c
push edi
push esi
call ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c10], 0xe
call fcn.00405310
jmp 0x42316e
push edi
lea ecx, [esp + 0x1c]
call fcn.00404f00
mov esi, dword [esp + 0x40]
push eax
lea edx, [esi + 0xf4]
push edx
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x1c1c], 0x12
call fcn.004104e0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1c14], 0x13
call fcn.004063a0
lea ecx, [esp + 0x70]
call fcn.00405310
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c10], 0xe
call fcn.00405310
lea ecx, [esi + 0xf8]
push ecx
lea ecx, [esp + 0x28]
call fcn.004063a0
mov ebx, dword [esp + 0x1c]
push ebx
push SysReAllocString
call fcn.0041dd40
add esp, 8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push SysReAllocString
call ebx
lea edx, [esi + 0x5e4]
push str.CAPT
push edx
call fcn.00406a50
add esp, 8
test al, al
je 0x42316e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x42316e
cmp dword [esi + 0x628], 0
je 0x42316e
mov esi, dword [esp + 0x4c]
call fcn.0042b3a0
mov edi, dword [esp + 0x24]
mov esi, SysReAllocString
call fcn.0041df30
cmp eax, 1
jne 0x42319a
mov eax, edi
push eax
push esi
call ebx
mov edi, str.SOFTWARECANON_
call fcn.0041df30
cmp eax, 1
jne 0x42319a
push edi
push esi
call ebx
mov byte [esp + 0x1c10], 0xc
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4231c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c10], 0xb
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4231ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c10], 0xa
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423215
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c10], 9
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42323d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c10], 8
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423265
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1c10], 7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42328d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x38]
xor ebx, ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 4]
neg ecx
sbb ecx, ecx
and ecx, dword [esp + 0x4c]
push ecx
push edx
call fcn.0041d780
add esp, 8
cmp eax, ebx
je 0x4232b7
xor eax, eax
jmp 0x4233f1
mov edi, dword [esp + 0x40]
lea eax, [edi + 0x5e4]
push str.CAPT
push eax
call fcn.00406a50
add esp, 8
test al, al
je 0x4232e8
cmp dword [edi + 0x628], ebx
je 0x4232e8
call fcn.00429280
test eax, eax
jne 0x4232e8
mov dword [esp + 0x54], ebx
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x568]
mov ecx, esi
call fcn.004235f0
mov edx, dword [edi + 0x140]
add esp, 4
mov dword [esp + 0x84], eax
cmp dword [edx + 0x5c], ebx
jne 0x4233ea
mov ecx, dword [esi + 4]
call fcn.00415c30
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42335b
call fcn.00416230
lea eax, [esp + 0x18]
push eax
push 0x2001f
push ebx
push str.SOFTWARECanonVDCSETUPVDCUser
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x42335b
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x7c], ebx
call edi
call fcn.00419b60
test eax, eax
je 0x4233fd
call fcn.004197a0
push 0x616
lea eax, [esp + 0xd8a]
xor edx, edx
push ebx
push eax
mov dword [esp + 0x44], ebx
mov word [esp + 0xd90], dx
call fcn.00541d20
add esp, 0xc
push str.DIASUser
push str.SOFTWARECanonDIASSETUP
lea ecx, [esp + 0xd8c]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [esp + 0x38]
push edx
push 0x2001f
push ebx
lea eax, [esp + 0xd90]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4233fd
mov ecx, dword [esp + 0x38]
push ecx
mov dword [esp + 0x84], ebx
call edi
mov dword [esp + 0x38], ebx
call fcn.00428e40
mov ebx, eax
jmp 0x42340b
mov eax, dword [esp + 0x88]
mov dword [esp + 0x78], 1
cmp eax, ebx
je 0x423406
call fcn.00428e40
mov ebx, eax
jmp 0x42340b
mov ebx, 1
mov esi, dword [esp + 0x40]
cmp dword [esi + 0x640], 0
je 0x42341d
call fcn.0041a8b0
cmp dword [esp + 0x20], 0
jne 0x423452
cmp dword [esp + 0x7c], 1
jne 0x423452
lea ecx, [esp + 0x139c]
call fcn.0041f700
cmp eax, 1
jne 0x423452
mov edx, dword [esi + 0x5f0]
mov ecx, dword [edx + 0x88]
lea eax, [esp + 0x139c]
push eax
call ecx
mov esi, dword [esp + 0x28]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x8c], esp
mov edi, esp
push esi
call fcn.00406410
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00421230
add esp, 4
cmp dword [esp + 0x84], 0
jne 0x4234fc
push 6
push str.return___08x
lea edx, [esp + 0x18]
push 2
push edx
call fcn.00401410
add esp, 0x10
mov byte [esp + 0x1c10], 6
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4234ba
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x1c10], 2
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4234e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x60]
call fcn.004071b0
lea esi, [esp + 0x9c]
call fcn.00402d30
jmp 0x42291a
cmp dword [esp + 0x78], 0
je 0x42355a
cmp dword [esp + 0x80], 0
je 0x42355a
test ebx, ebx
je 0x42355a
cmp dword [esp + 0x54], 0
je 0x42355a
push 0
push str.return___08x
lea ecx, [esp + 0x18]
push 2
push ecx
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x28]
call fcn.00405310
lea ecx, [esp + 0x50]
call fcn.00405310
lea esi, [esp + 0x60]
call fcn.004071b0
lea esi, [esp + 0x9c]
call fcn.00402d30
jmp 0x422a42
push 5
push str.return___08x
lea edx, [esp + 0x18]
push 2
push edx
call fcn.00401410
add esp, 0x10
mov byte [esp + 0x1c10], 6
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x423591
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x1c10], 2
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4235b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x60]
call fcn.004071b0
lea esi, [esp + 0x9c]
call fcn.00402d30
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c10], 0xffffffff
call fcn.00401370
mov eax, 5
jmp 0x422824