Function at 0x41006770
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x410067bf
push 0xb2
push str.PrinterAccessEx.cpp
push str.m_hPrinter___NULL
call fcn.41002a10
add esp, 0xc
cmp dword [esi + 4], 0
jne 0x410067bf
push str.TPGetPrinterInfo3_called_without_opening_printer.
push 0x2000001
push 0xb5
push str.PrinterAccessEx.cpp
call fcn.41002c10
add esp, 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
lea eax, [ebp - 4]
push eax
push 0
push 0
push 3
mov ecx, esi
mov dword [ebp - 4], 0
call 0x97006540
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [esp + 0x58]
mov edi, dword [eax + 0x14]
mov ecx, dword [edi + 0x130]
call fcn.41006f3c
mov esi, eax
mov ecx, dword [edi + 0x6c]
call fcn.41006f3c
mov ebx, eax
mov edx, dword [edi + 0x88]
mov ecx, esi
push edi
call fcn.41006f90
add esp, 4
mov dword [esp], eax
mov edx, dword [edi + 0xc0]
mov ecx, esi
push edi
call fcn.41006f90
add esp, 4
mov dword [esp + 4], eax
mov edx, dword [edi + 0xc]
mov ecx, esi
push edi
call fcn.41006f90
add esp, 4
mov dword [esp + 0x18], eax
mov edx, dword [edi + 0xfc]
mov ecx, ebx
push edi
call fcn.41006f90
add esp, 4
mov dword [esp + 8], eax
mov edx, dword [edi + 0x90]
mov ecx, esi
push edi
call fcn.41006f90
add esp, 4
mov dword [esp + 0x20], eax
and byte [ebx + 0x14097], cl
add byte [ecx + 0x21e857f1], cl
pop es
add byte [eax], al
add esp, 4
mov dword [esp + 0x14], eax
mov edx, dword [edi + 4]
mov ecx, ebx
mov dword [esp + 0x28], ebx
push edi
call fcn.41006f90
add esp, 4
mov dword [esp + 0xc], eax
mov edx, dword [edi + 0x120]
mov ecx, esi
push edi
call fcn.41006f90
add esp, 4
mov dword [esp + 0x10], eax
mov edx, dword [edi + 0x44]
mov ecx, esi
push edi
call fcn.41006f90
add esp, 4
mov dword [esp + 0x2c], eax
mov edx, dword [edi + 0x138]
mov ecx, esi
push edi
call fcn.41006f90
add esp, 4
mov ebp, eax
mov edx, dword [edi + 0x128]
mov ecx, esi
push edi
call fcn.41006f90
add esp, 4
mov dword [esp + 0x1c], eax
mov edx, dword [edi + 0xb8]
mov ecx, esi
push edi
call fcn.41006f90
add esp, 4
mov edx, dword [edi + 0xac]
mov ecx, ebx
push edi
call fcn.41006f90
add esp, 4
mov dword [esp + 0x24], eax
push 0x80
push 0x40
call ebp
mov ebx, eax
mov edx, dword [edi + 0x34]
mov ecx, esi
push edi
call fcn.41006f90
add esp, 4
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x5c], esi
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x34], eax
mov eax, dword [esp]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x2c], ecx
mov eax, dword [esp + 0x20]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x4c], eax
mov dword [esp + 0x20], ebp
mov dword [ebx + 0x10], ebp
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 8]
mov dword [ebx + 0x78], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 4]
mov dword [ebx + 0x20], eax
mov edx, dword [edi + 0xa0]
mov ebp, ecx
push edi
call fcn.41006f90
add esp, 4
mov dword [ebx + 0x74], eax
mov edx, dword [edi + 0xd0]
mov ecx, ebp
push edi
call fcn.41006f90
add esp, 4
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x58]
mov ebp, dword [eax + 0x1c]
mov edx, dword [edi + 0x12c]
mov ecx, esi
push edi
call fcn.41006f90
add esp, 4
mov dword [esp + 0x2c], eax
mov ecx, dword [edi + 0xc8]
add byte [eax], al
add byte [ebx + 0x14487], cl
add byte [ecx + 0x3318247c], cl
dec edi
sbb al, 0x8b
jl 0x410069d8
add byte [ecx], dh
idiv byte [ecx]
iretd
jne 0x41006b25
mov dword [esp + 4], esi
mov eax, dword [esp + 4]
lea esi, [eax + 0x10]
mov eax, dword [esp + 4]
mov ebp, dword [eax + 8]
mov eax, dword [esp + 4]
mov edi, dword [eax + 0xc]
push edi
push 0x40
call dword [ebx + 0x10]
lea ecx, [esp + 0x34]
mov dword [ecx], 0
push ecx
push ebp
mov ebp, eax
push esi
push edi
push eax
push 2
call dword [ebx + 0x4c]
test eax, eax
jne 0x41006ef1
mov dword [esp], ebx
mov esi, ebp
lea ecx, [ebp + 0x90]
call fcn.410070a7
mov dword [esp + 8], 0
test eax, eax
mov ecx, 0
jne 0x41006a42
mov ecx, dword [esi + 0x160]
add ecx, ebp
mov edx, dword [esi + 8]
cmp dword [edx + ecx + 0x12c1], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
je 0x41006da7
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x7c]
mov dword [esp + 0xc], eax
lea eax, [edx + ecx + 0x12c1]
mov dword [esp + 8], eax
lea edi, [edx + ecx + 0x14bb]
xor esi, esi
mov dword [esp + 0x14], edi
imul ecx, esi, 0x8a
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
lea ebp, [eax + ecx]
mov ecx, ebp
call fcn.410070a7
lea eax, [eax + eax + 2]
push eax
push 0x40
mov eax, dword [esp + 8]
call dword [eax + 0x10]
mov ebx, eax
mov ecx, ebp
call fcn.410070a7
test eax, eax
je 0x41006ac6
movsx ecx, byte [edi + eax]
mov word [ebx + eax*2], cx
dec eax
jne 0x41006abb
movsx eax, byte [ebp]
mov word [ebx], ax
mov ecx, ebx
call fcn.410070d7
test eax, eax
je 0x41006af1
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x68]
xor ecx, ecx
imul ecx, edx
movzx ebp, word [ebx]
add ecx, ebp
add ebx, 2
dec eax
jne 0x41006ae1
jmp 0x41006af3
xor ecx, ecx
cmp ecx, dword [esp + 0xc]
je 0x41006db4
inc esi
add edi, 0x8a
mov eax, dword [esp + 8]
cmp esi, dword [eax]
jb 0x41006a88
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
jmp 0x41006dd6
mov dword [esp], ebx
lea ebx, [ebp + eax]
mov ebp, dword [ebp + eax + 4]
push edi
push 0x40
call dword [esp + 0x28]
mov esi, eax
add ebx, 8
mov ecx, eax
mov edx, ebx
push edi
call fcn.41007057
add esp, 4
test edi, edi
je 0x41006b59
xor eax, eax
xor dword [esi + eax], ebp
add eax, 4
cmp eax, edi
jb 0x41006b4f
push 0x20a
push 0x40
call dword [esp + 0x28]
mov ebx, eax
mov al, byte [esi]
test al, al
je 0x41006b7e
xor ecx, ecx
movsx eax, al
mov word [ebx + ecx*2], ax
mov al, byte [esi + ecx + 1]
inc ecx
test al, al
jne 0x41006b6e
push 0x20a
push 0x40
mov edi, dword [esp + 8]
call dword [edi + 0x10]
mov esi, eax
push 0x105
push eax
push 0
call dword [edi + 4]
lea eax, [esi - 2]
cmp word [eax + 2], 0
lea eax, [eax + 2]
jne 0x41006b9c
mov word [eax], 0
cmp word [eax - 2], 0x5c
lea eax, [eax - 2]
jne 0x41006ba6
mov edx, esi
add edx, 0xfffffffe
xor eax, eax
dec eax
inc eax
cmp word [edx + 2], 0
lea edx, [edx + 2]
jne 0x41006bbd
xor ecx, ecx
cmp word [edx - 2], 0x5c
je 0x41006bd9
mov word [edx], 0x5c
xor ecx, ecx
inc ecx
test ebx, ebx
je 0x41006bfc
movzx edi, word [ebx]
test di, di
je 0x41006c01
lea ebp, [edx + ecx*2]
xor edx, edx
mov word [ebp + edx*2], di
movzx edi, word [ebx + edx*2 + 2]
mov bh, 0x7c
push ebx
add al, byte [edx + 0x66]
test edi, edi
jne 0x41006bea
jmp 0x41006c03
inc eax
mov edx, eax
jmp 0x41006c0a
xor edx, edx
add edx, ecx
add edx, eax
mov edi, dword [esp]
mov word [esi + edx*2], 0
xor eax, eax
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
call dword [edi + 0xc]
cmp eax, 0xffffffff
je 0x41006ef1
mov esi, eax
push 0
push eax
call dword [edi + 0x44]
test eax, eax
je 0x41006d9e
mov ebp, eax
inc eax
push eax
push 0x40
call dword [edi + 0x10]
lea ebx, [esp + 0x34]
push 0
push ebx
push ebp
mov dword [esp + 0x20], eax
push eax
push esi
call dword [edi + 0x50]
mov dword [esp + 8], ebp
mov ebp, eax
push esi
call dword [edi + 0x34]
test ebp, ebp
je 0x41006ef1
mov edi, dword [esp + 0x18]
lea edx, [edi + 0x24]
mov esi, 4
mov ecx, ebx
push esi
call fcn.41007057
add esp, 4
lea edx, [edi + 0x50]
add ebx, esi
mov ecx, ebx
push esi
call fcn.41007057
add esp, 4
mov ecx, dword [esp + 8]
lea eax, [ecx - 8]
cmp eax, 8
je 0x41006ef1
mov dword [esp + 0xc], 0
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], 0
mov ebp, esi
inc ebp
add eax, 0xfffffff7
mov edx, ebp
xor edi, edi
lea esi, [ebp + edi]
mov ebx, 0xfffffff8
mov cl, byte [esp + ebx + 0x3c]
cmp byte [edx + ebx + 8], cl
je 0x41006ce8
cmp cl, 0x3f
jne 0x41006ced
inc ebx
jne 0x41006cd9
jmp 0x41006cfa
inc edx
cmp edi, eax
lea edi, [edi + 1]
jne 0x41006cd0
jmp 0x41006d8d
lea ebx, [esi + 8]
mov edi, dword [esi]
mov eax, dword [esi + 8]
bswap edi
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 0x5c]
jne 0x41006d43
cmp dword [esp + 4], 0
jne 0x41006d43
mov eax, dword [esi + 0x10]
add eax, 0x10
mov dword [esp + 0x10], eax
push eax
push 0x40
mov eax, dword [esp + 8]
call dword [eax + 0x10]
mov dword [esp + 4], eax
mov ecx, eax
mov edx, ebx
push edi
call fcn.41007057
add esp, 4
add dword [esp + 0xc], edi
mov dword [esp + 0x1c], ebx
jmp 0x41006d78
cmp dword [esp + 4], 0
je 0x41006d70
mov ecx, dword [esp + 0xc]
lea ebp, [edi + ecx]
cmp ebp, dword [esp + 0x10]
ja 0x41006ef9
add ecx, dword [esp + 4]
mov edx, ebx
push edi
call fcn.41007057
add esp, 4
mov dword [esp + 0xc], ebp
jmp 0x41006d78
mov dword [esp + 4], 0
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x14]
sub eax, ebx
add eax, ecx
cmp eax, 8
jne 0x41006cc6
mov esi, dword [esp + 4]
test esi, esi
jne 0x41006f10
jmp 0x41006ef1
push esi
call dword [edi + 0x34]
jmp 0x41006ef1
mov dword [esp + 0xc], 0
mov edi, dword [esp]
jmp 0x41006ddd
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + edx + 0x86]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
add eax, dword [ecx + edx + 0x82]
mov dword [esp + 8], eax
mov edi, dword [esp]
mov ebp, dword [esp + 0x30]
push 0x20a
push 0x40
call dword [esp + 0x28]
mov ebx, eax
add ebp, 0xf4
mov ecx, ebp
call fcn.410070a7
test eax, eax
je 0x41006e07
movsx ecx, byte [ebp + eax]
mov word [ebx + eax*2], cx
dec eax
jne 0x41006dfb
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
lea eax, [ecx + eax + 0x3dd]
mov dword [esp], eax
movsx eax, byte [ebp]
mov word [ebx], ax
add ebx, 2
cmp word [ebx - 2], 0
lea ebx, [ebx + 2]
jne 0x41006e23
cmp word [ebx - 4], 0x5c
lea ebx, [ebx - 2]
jne 0x41006e2d
push 0x20a
push 0x40
call dword [edi + 0x10]
mov esi, eax
mov ecx, ebx
call fcn.410070d7
test eax, eax
je 0x41006e5f
mov ecx, esi
movzx edx, word [ebx]
mov word [ecx], dx
add ecx, 2
add ebx, 2
dec eax
jne 0x41006e50
push esi
call dword [edi]
mov esi, eax
mov eax, dword [eax + 0x3c]
add esi, dword [esi + eax + 0x2c]
mov edi, dword [esp + 0xc]
push edi
push 0x40
call dword [esp + 0x28]
mov ebx, eax
mov ecx, eax
mov edx, esi
push edi
call fcn.41007057
add esp, 4
xor eax, eax
mov ecx, dword [esp]
mov dword [ecx + 0xcc4], eax
mov dword [ecx + 0xcc0], ebx
lea ecx, [esp + 0x40]
mov dword [ecx], eax
push ecx
mov ebx, dword [esp + 0x1c]
push dword [ebx + 0x110]
push edi
push esi
mov ebp, dword [esp + 0x3c]
call ebp
mov ecx, esi
mov edx, dword [esp + 8]
push edi
call fcn.41007057
add esp, 4
lea eax, [esp + 0x40]
push eax
push dword [eax]
push edi
push esi
call ebp
mov eax, dword [ebx + 0x110]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
lea eax, [esp + 0x34]
push eax
push dword [esp + 8]
push dword [esp + 8]
push dword [esp + 0x28]
call esi
add esp, 0x10
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x10]
sub eax, ecx
mov esi, dword [esp + 4]
add ecx, esi
mov edx, ebx
push eax
call fcn.41007057
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
and eax, 0xfffffffc
je 0x41006f2c
mov ecx, dword [ecx + 4]
xor edx, edx
xor dword [esi + edx + 0x10], ecx
add edx, 4
cmp edx, eax
jb 0x41006f21
cmp dword [esp + 0xc], 0
mov ebx, dword [esp]
jne 0x410069de
jmp 0x41006ef1