Function at 0x646140cd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x646170a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, edx
mov dword [ebp - 0xa0], ecx
xor edx, edx
mov esi, edx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x88], edx
mov eax, dword [0x64617004]
push 2
pop edx
cmp eax, 0x64617004
je 0x64614162
test byte [eax + 0x1c], dl
je 0x64614162
cmp byte [eax + 0x19], 5
jb 0x64614162
push dword [eax + 0x14]
mov edx, 0x64603cf8
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.64604423
mov eax, dword [0x64617004]
mov ecx, dword [ebp - 0xa0]
push 2
pop edx
test edi, edi
je 0x646149f9
cmp dword [edi], 0x2c
jne 0x646149f9
test ecx, ecx
je 0x646149f9
test ebx, ebx
je 0x646149f9
xor ecx, ecx
cmp dword [edi + 0x28], ecx
jne 0x646141c4
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x64614198
xor esi, esi
cmp word [ecx], si
jne 0x646141c2
cmp eax, 0x64617004
je 0x64614a1d
test byte [eax + 0x1c], dl
je 0x64614a1d
cmp byte [eax + 0x19], dl
jb 0x64614a1d
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
jmp 0x64614a12
xor ecx, ecx
cmp dword [edi + 0x20], ecx
je 0x646141f3
cmp eax, 0x64617004
je 0x64614a1d
test byte [eax + 0x1c], dl
je 0x64614a1d
cmp byte [eax + 0x19], dl
jb 0x64614a1d
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
jmp 0x64614a12
push ecx
push ecx
call fcn.6460d19e
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x64614241
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6461422c
test byte [eax + 0x1c], 2
je 0x6461422c
cmp byte [eax + 0x19], 2
jb 0x6461422c
push dword [eax + 0x14]
mov edx, 0x64603cf8
push dword [eax + 0x10]
push 0xe
pop ecx
call fcn.64604423
push 0x709
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x80]
mov edi, esi
jmp 0x64614488
xor ecx, ecx
push ecx
lea ecx, [ebp - 0x84]
push ecx
push eax
call dword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
test eax, eax
jne 0x6461429b
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64614237
test byte [eax + 0x1c], 2
je 0x64614237
cmp byte [eax + 0x19], 2
jb 0x64614237
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x78]
mov edx, 0x64603cf8
push eax
mov eax, dword [0x64617004]
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x10
pop ecx
call fcn.64604465
mov esi, dword [ebp - 0x80]
mov edi, esi
jmp 0x6461448b
lea eax, [ebp - 0x94]
push eax
xor eax, eax
push eax
push eax
push 2
push dword [ebp - 0x84]
call dword [sym.imp.WINSPOOL.DRV_GetPrinterW]
test eax, eax
jne 0x64614301
mov ecx, dword [ebp - 0x94]
call fcn.6460cdda
mov esi, eax
mov dword [ebp - 0x8c], esi
test esi, esi
jne 0x64614301
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x646142fa
test byte [eax + 0x1c], 2
je 0x646142fa
cmp byte [eax + 0x19], 2
jb 0x646142fa
push dword [eax + 0x14]
mov edx, 0x64603cf8
push dword [eax + 0x10]
push 0x11
pop ecx
call fcn.64604423
push 8
jmp 0x64614231
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0x94]
push esi
push 2
push dword [ebp - 0x84]
call dword [sym.imp.WINSPOOL.DRV_GetPrinterW]
test eax, eax
jne 0x64614369
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64614237
test byte [eax + 0x1c], 2
je 0x64614237
cmp byte [eax + 0x19], 2
jb 0x64614237
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x12
mov edx, 0x64603cf8
pop ecx
call fcn.64604441
jmp 0x64614237
cmp dword [esi], 0
je 0x646143e2
mov esi, dword [esi]
push 0x646025d0
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
cmp esi, eax
jne 0x6461438d
mov eax, dword [ebp - 0x8c]
add esi, 4
mov dword [eax], esi
push esi
push 0x10
lea ecx, [ebx + 8]
pop edx
call fcn.646042a0
mov esi, eax
test esi, esi
jns 0x646143e8
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x646143cb
test byte [eax + 0x1c], 2
je 0x646143cb
cmp byte [eax + 0x19], 2
jb 0x646143cb
push esi
push dword [eax + 0x14]
mov edx, 0x64603cf8
push dword [eax + 0x10]
push 0x13
pop ecx
call fcn.64604441
mov eax, esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x646143dc
movzx esi, si
push esi
jmp 0x64614231
xor eax, eax
mov word [ebx + 8], ax
xor eax, eax
push eax
push eax
push eax
push eax
push dword [ebp - 0x84]
push eax
call dword [sym.imp.WINSPOOL.DRV_DocumentPropertiesW]
test eax, eax
jg 0x6461443c
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64614237
test byte [eax + 0x1c], 2
je 0x64614237
cmp byte [eax + 0x19], 2
jb 0x64614237
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
jmp 0x64614359
mov ecx, eax
call fcn.6460cdda
mov esi, eax
mov dword [ebp - 0x80], esi
test esi, esi
jne 0x64614581
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x6461447d
test byte [ecx + 0x1c], 2
je 0x6461447d
cmp byte [ecx + 0x19], 2
jb 0x6461447d
push dword [ecx + 0x14]
mov edx, 0x64603cf8
push dword [ecx + 0x10]
push 0x15
pop ecx
call fcn.64604423
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x78]
cmp dword [ebp - 0x84], 0
je 0x646144a0
push dword [ebp - 0x84]
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x646144b1
mov ecx, eax
call fcn.6460ce5b
cmp dword [ebp - 0x90], 0
je 0x64614502
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.GDI32.dll_EndDoc]
test eax, eax
jg 0x64614502
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64614502
test byte [eax + 0x1c], 2
je 0x64614502
cmp byte [eax + 0x19], 2
jb 0x64614502
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64603cf8
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1e
pop ecx
call fcn.64604441
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x6461454e
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
jne 0x6461454e
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6461454e
test byte [eax + 0x1c], 2
je 0x6461454e
cmp byte [eax + 0x19], 2
jb 0x6461454e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64603cf8
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1f
pop ecx
call fcn.64604441
test esi, esi
je 0x64614559
mov ecx, esi
call fcn.6460ce5b
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x6461456a
mov ecx, eax
call fcn.6460ce5b
test edi, edi
je 0x64614575
mov ecx, edi
call fcn.6460ce5b
mov ecx, ebx
call fcn.6460ce5b
jmp 0x64614a25
push 2
xor eax, eax
push eax
push esi
push eax
push dword [ebp - 0x84]
push eax
call dword [sym.imp.WINSPOOL.DRV_DocumentPropertiesW]
cmp eax, 1
je 0x646145e2
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64614485
test byte [eax + 0x1c], 2
je 0x64614485
cmp byte [eax + 0x19], 2
jb 0x64614485
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
mov edx, 0x64603cf8
pop ecx
call fcn.64604441
jmp 0x64614485
movzx eax, word [esi + 0x46]
mov ecx, 0x3c4
cmp ax, cx
jae 0x6461461e
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x64614617
test byte [ecx + 0x1c], 2
je 0x64614617
cmp byte [ecx + 0x19], 2
jb 0x64614617
push ecx
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.6461402c
push 0xd
jmp 0x6461447f
movzx ecx, word [esi + 0x44]
add ecx, esi
cmp dword [ecx], 0x78616644
je 0x6461462f
add ecx, 4
mov eax, dword [ecx + 4]
xor edx, edx
push esi
push edx
push dword [ebp - 0x78]
and eax, 0xfffffff7
mov dword [ecx + 8], edx
or eax, 4
push 0x64603b40
mov dword [ecx + 4], eax
call dword [sym.imp.GDI32.dll_CreateDCW]
mov ecx, eax
mov dword [ebp - 0x9c], ecx
test ecx, ecx
jne 0x6461469b
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x64614485
test byte [ecx + 0x1c], 2
je 0x64614485
cmp byte [ecx + 0x19], 2
jb 0x64614485
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x18
jmp 0x646145d2
mov eax, dword [edi + 4]
mov dword [ebp - 0xb0], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0xac], eax
xor eax, eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xb4]
push eax
push ecx
mov dword [ebp - 0xb4], 0x14
call dword [sym.imp.GDI32.dll_StartDocW]
mov ecx, eax
mov dword [ebp - 0x90], ecx
test ecx, ecx
jg 0x6461471e
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x64614485
test byte [ecx + 0x1c], 2
je 0x64614485
cmp byte [ecx + 0x19], 2
jb 0x64614485
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x19
jmp 0x646145d2
xor edx, edx
cmp dword [edi + 0x28], edx
jne 0x646149a3
mov eax, dword [ebp - 0xa0]
cmp dword [eax], 0xffffffff
jne 0x6461474b
push 1
push edx
push edx
push ecx
push dword [ebp - 0x84]
call dword [sym.imp.WINSPOOL.DRV_SetJobW]
mov ecx, dword [ebp - 0x90]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.64614065
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x6461479d
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x64614485
test byte [ecx + 0x1c], 2
je 0x64614485
cmp byte [ecx + 0x19], 2
jb 0x64614485
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1a
jmp 0x646145d2
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x646147aa
mov dword [ebp - 0x88], ecx
xor eax, eax
test ecx, ecx
setne al
push eax
push 0x64601364
lea eax, [ebp - 0x1c]
push 0xa
push eax
call fcn.64604343
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x6461481b
mov ecx, esi
movzx eax, si
and ecx, 0x1fff0000
cmp ecx, 0x70000
je 0x646147e0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64614813
test byte [eax + 0x1c], 2
je 0x64614813
cmp byte [eax + 0x19], 2
jb 0x64614813
push esi
push dword [eax + 0x14]
mov edx, 0x64603cf8
push dword [eax + 0x10]
push 0x1b
pop ecx
call fcn.64604441
mov esi, dword [ebp - 0x80]
jmp 0x64614485
mov eax, dword [edi + 0x1c]
mov ecx, 0x64603b78
mov dword [ebp - 0x68], eax
mov edx, 0x64603b54
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x58], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], ecx
xor ecx, ecx
push eax
mov dword [ebp - 0x88], ecx
push ecx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x6c], 0x64603b7c
mov dword [ebp - 0x64], 0x64603b9c
mov dword [ebp - 0x5c], 0x64603bcc
mov dword [ebp - 0x54], 0x64603bfc
mov dword [ebp - 0x4c], 0x64603c24
mov dword [ebp - 0x44], 0x64603c54
mov dword [ebp - 0x3c], 0x64603c7c
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], 0x64603ca8
mov dword [ebp - 0x24], 0x64603cd0
call fcn.64622ec7
mov esi, dword [ebp - 0x88]
lea ecx, [esi + 2]
call fcn.6460cdda
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x64614921
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x64614813
test byte [ecx + 0x1c], 2
je 0x64614813
cmp byte [ecx + 0x19], 2
jb 0x64614813
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.64613ffd
jmp 0x64614813
lea ecx, [ebp - 0x88]
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.6460cfbc
mov edi, dword [ebp - 0x7c]
xor ecx, ecx
mov eax, dword [ebp - 0x98]
push ecx
push edi
push 2
push dword [ebp - 0x90]
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x20], eax
push dword [ebp - 0x84]
call dword [sym.imp.WINSPOOL.DRV_SetJobW]
test eax, eax
jne 0x6461499e
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64614996
test byte [eax + 0x1c], 2
je 0x64614996
cmp byte [eax + 0x19], 2
jb 0x64614996
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64603cf8
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1d
pop ecx
call fcn.64604441
mov esi, dword [ebp - 0x80]
jmp 0x64614488
mov esi, dword [ebp - 0x80]
jmp 0x646149a5
mov edi, edx
push dword [ebp - 0x84]
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
mov ecx, dword [ebp - 0x8c]
call fcn.6460ce5b
mov ecx, esi
call fcn.6460ce5b
mov ecx, dword [ebp - 0x98]
call fcn.6460ce5b
mov ecx, edi
call fcn.6460ce5b
mov ecx, dword [ebp - 0x78]
call fcn.6460ce5b
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x90]
mov dword [eax], ecx
mov eax, dword [ebp - 0x9c]
mov dword [ebx + 4], eax
xor eax, eax
inc eax
jmp 0x64614a27
cmp eax, 0x64617004
je 0x64614a1d
test byte [eax + 0x1c], dl
je 0x64614a1d
cmp byte [eax + 0x19], dl
jb 0x64614a1d
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
mov edx, 0x64603cf8
pop ecx
call fcn.64604423
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.64615f50
mov esp, ebp
pop ebp
ret 0xc