Function at 0x413a60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x457968
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], ebp
je 0x41416a
cmp eax, ebp
je 0x41416a
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetLineTextA]
lea eax, [esp + 0x30]
push eax
push ebp
push ebp
push str.Canon
push str.Manufacturer
push esi
push ebp
call edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
cmp eax, ebp
jbe 0x414164
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x5c], ebx
je 0x414164
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x30]
push ecx
push edx
push ebx
push str.Canon
push str.Manufacturer
push esi
push ebp
call edi
cmp eax, ebp
mov dword [esp + 0x40], eax
je 0x41415d
lea ecx, [esp + 0x44]
call fcn.004306c2
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x74], ebp
call fcn.004027b0
push 0x45c6da
lea ecx, [esp + 0x24]
mov byte [esp + 0x74], 1
call fcn.004027b0
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x4c]
mov byte [esp + 0x78], 2
xor esi, esi
call fcn.0043081b
lea ecx, [esp + 0x18]
call fcn.00401e00
lea ecx, [esp + 0x18]
call fcn.00401db0
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebp
jle 0x413c48
push 0x2c
push eax
call fcn.00442df6
add esp, 8
cmp eax, ebp
je 0x413c48
sub eax, dword [esp + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jle 0x413c48
mov bl, 3
jmp 0x413ba0
mov eax, edi
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401910
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x74], bl
call fcn.00402020
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x70], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413be7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
push 0x45c6da
push ecx
call fcn.00442f25
add esp, 8
cmp eax, ebp
setne al
test al, al
je 0x413c15
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.00430be6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
lea esi, [edi + 1]
cmp esi, ebp
jl 0x413c48
cmp esi, ecx
jge 0x413c48
lea ecx, [esi + eax]
push 0x2c
push ecx
call fcn.00442df6
add esp, 8
cmp eax, ebp
je 0x413c48
sub eax, dword [esp + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jg 0x413ba0
push esi
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x20]
call fcn.00401ea0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x74], 4
call fcn.00402020
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x70], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413c8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
push 0x45c6da
push ecx
call fcn.00442f25
add esp, 8
cmp eax, ebp
setne al
test al, al
je 0x413cb9
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.00430be6
push 0x45c6da
lea ecx, [esp + 0x18]
call fcn.004027b0
push 0x45c6da
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 5
call fcn.004027b0
mov eax, dword [esp + 0x4c]
xor edi, edi
xor esi, esi
cmp eax, ebp
mov ebx, eax
mov byte [esp + 0x70], 6
mov dword [esp + 0x38], ebx
jle 0x413f7b
mov ecx, dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402020
mov eax, 1
cmp ebx, eax
mov dword [esp + 0x34], eax
jle 0x413f6a
mov bl, 8
jmp 0x413d24
mov eax, dword [esp + 0x34]
cmp eax, ebp
jl 0x413f7b
cmp eax, dword [esp + 0x4c]
jge 0x413f7b
mov edx, dword [esp + 0x48]
lea eax, [edx + eax*4]
push eax
lea ecx, [esp + 0x20]
call fcn.00402020
mov eax, dword [esp + 0x14]
push str.Canon
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x413f47
mov dword [esp + 0x28], ebp
cmp esi, ebp
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
jl 0x413d83
cmp esi, eax
jge 0x413d83
add esi, ecx
push 0x2e
push esi
call fcn.00442df6
add esp, 8
cmp eax, ebp
jne 0x413d8b
or esi, 0xffffffff
jmp 0x413f2e
sub eax, dword [esp + 0x1c]
mov esi, eax
cmp esi, 0xffffffff
je 0x413f2e
cmp edi, ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
jl 0x413f44
cmp edi, ecx
jge 0x413f44
add edi, eax
push 0x2e
push edi
call fcn.00442df6
add esp, 8
cmp eax, ebp
je 0x413f44
sub eax, dword [esp + 0x14]
mov edi, eax
cmp edi, 0xffffffff
je 0x413f47
push 0x45c6da
lea ecx, [esp + 0x28]
call fcn.004027b0
push 0x45c6da
lea ecx, [esp + 0x30]
mov byte [esp + 0x74], 7
call fcn.004027b0
push 1
add edi, 1
push edi
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], bl
add esi, 1
call fcn.00401910
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x74], 9
call fcn.00402020
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0x70], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413e44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push esi
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x28]
call fcn.00401910
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x74], 0xa
call fcn.00402020
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x70], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413e88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x413fec
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.00442f25
add esp, 8
cmp eax, ebp
setl al
test al, al
jne 0x413f80
mov eax, dword [esp + 0x2c]
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x413fec
mov edx, dword [esp + 0x24]
push eax
push edx
call fcn.00442f25
add esp, 8
cmp eax, ebp
setg al
or edx, 0xffffffff
test al, al
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x70], 7
jne 0x413fdd
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x70], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, 1
mov dword [esp + 0x28], eax
jl 0x413d63
jmp 0x413f55
or edi, 0xffffffff
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402020
mov eax, dword [esp + 0x34]
add eax, 1
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x34], eax
jl 0x413d20
mov eax, dword [esp + 0x4c]
cmp eax, 1
jle 0x41407e
cmp eax, ebp
jg 0x413ff6
jmp fcn.00430460
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402020
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x70], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413fb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x70], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x413f55
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x413fa7
push 0x80004005
call fcn.00401090
mov edx, dword [esp + 0x48]
push 0x45cdfc
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00401f00
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x4c]
mov bl, 0xb
push edx
mov byte [esp + 0x88], bl
call fcn.0040ef70
add esp, 0x18
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 0xc
call fcn.00402020
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x70], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414059
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x70], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41407e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4140a8
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401570
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x70], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4140d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x70], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4140fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x70], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414123
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x70], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414148
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x70], 0xffffffff
call fcn.00430a6d
mov ebx, dword [esp + 0x5c]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x40]
jmp 0x41416c
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0044027a
add esp, 0x60
ret