Function at 0x64613ff4
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 0x64614089
test byte [eax + 0x1c], dl
je 0x64614089
cmp byte [eax + 0x19], 5
jb 0x64614089
push dword [eax + 0x14]
mov edx, 0x64603d08
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.64604453
mov eax, dword [0x64617004]
mov ecx, dword [ebp - 0xa0]
push 2
pop edx
test edi, edi
je 0x64614920
cmp dword [edi], 0x2c
jne 0x64614920
test ecx, ecx
je 0x64614920
test ebx, ebx
je 0x64614920
xor ecx, ecx
cmp dword [edi + 0x28], ecx
jne 0x646140eb
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x646140bf
xor esi, esi
cmp word [ecx], si
jne 0x646140e9
cmp eax, 0x64617004
je 0x64614944
test byte [eax + 0x1c], dl
je 0x64614944
cmp byte [eax + 0x19], dl
jb 0x64614944
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
jmp 0x64614939
xor ecx, ecx
cmp dword [edi + 0x20], ecx
je 0x6461411a
cmp eax, 0x64617004
je 0x64614944
test byte [eax + 0x1c], dl
je 0x64614944
cmp byte [eax + 0x19], dl
jb 0x64614944
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xd
jmp 0x64614939
push ecx
push ecx
call fcn.6460d149
mov dword [ebp - 0x78], eax
test eax, eax
jne 0x64614168
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64614153
test byte [eax + 0x1c], 2
je 0x64614153
cmp byte [eax + 0x19], 2
jb 0x64614153
push dword [eax + 0x14]
mov edx, 0x64603d08
push dword [eax + 0x10]
push 0xe
pop ecx
call fcn.64604453
push 0x709
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x80]
mov edi, esi
jmp 0x646143af
xor ecx, ecx
push ecx
lea ecx, [ebp - 0x84]
push ecx
push eax
call dword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
test eax, eax
jne 0x646141c2
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6461415e
test byte [eax + 0x1c], 2
je 0x6461415e
cmp byte [eax + 0x19], 2
jb 0x6461415e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x78]
mov edx, 0x64603d08
push eax
mov eax, dword [0x64617004]
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x10
pop ecx
call fcn.64604495
mov esi, dword [ebp - 0x80]
mov edi, esi
jmp 0x646143b2
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 0x64614228
mov ecx, dword [ebp - 0x94]
call fcn.6460cdc3
mov esi, eax
mov dword [ebp - 0x8c], esi
test esi, esi
jne 0x64614228
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64614221
test byte [eax + 0x1c], 2
je 0x64614221
cmp byte [eax + 0x19], 2
jb 0x64614221
push dword [eax + 0x14]
mov edx, 0x64603d08
push dword [eax + 0x10]
push 0x11
pop ecx
call fcn.64604453
push 8
jmp 0x64614158
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 0x64614290
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6461415e
test byte [eax + 0x1c], 2
je 0x6461415e
cmp byte [eax + 0x19], 2
jb 0x6461415e
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, 0x64603d08
pop ecx
call fcn.64604471
jmp 0x6461415e
cmp dword [esi], 0
je 0x64614309
mov esi, dword [esi]
push 0x646025e0
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
cmp esi, eax
jne 0x646142b4
mov eax, dword [ebp - 0x8c]
add esi, 4
mov dword [eax], esi
push esi
push 0x10
lea ecx, [ebx + 8]
pop edx
call fcn.646042d0
mov esi, eax
test esi, esi
jns 0x6461430f
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x646142f2
test byte [eax + 0x1c], 2
je 0x646142f2
cmp byte [eax + 0x19], 2
jb 0x646142f2
push esi
push dword [eax + 0x14]
mov edx, 0x64603d08
push dword [eax + 0x10]
push 0x13
pop ecx
call fcn.64604471
mov eax, esi
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x64614303
movzx esi, si
push esi
jmp 0x64614158
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 0x64614363
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6461415e
test byte [eax + 0x1c], 2
je 0x6461415e
cmp byte [eax + 0x19], 2
jb 0x6461415e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
jmp 0x64614280
mov ecx, eax
call fcn.6460cdc3
mov esi, eax
mov dword [ebp - 0x80], esi
test esi, esi
jne 0x646144a8
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x646143a4
test byte [ecx + 0x1c], 2
je 0x646143a4
cmp byte [ecx + 0x19], 2
jb 0x646143a4
push dword [ecx + 0x14]
mov edx, 0x64603d08
push dword [ecx + 0x10]
push 0x15
pop ecx
call fcn.64604453
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 0x646143c7
push dword [ebp - 0x84]
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x646143d8
mov ecx, eax
call fcn.6460ce29
cmp dword [ebp - 0x90], 0
je 0x64614429
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.GDI32.dll_EndDoc]
test eax, eax
jg 0x64614429
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64614429
test byte [eax + 0x1c], 2
je 0x64614429
cmp byte [eax + 0x19], 2
jb 0x64614429
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64603d08
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1e
pop ecx
call fcn.64604471
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x64614475
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
jne 0x64614475
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x64614475
test byte [eax + 0x1c], 2
je 0x64614475
cmp byte [eax + 0x19], 2
jb 0x64614475
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64603d08
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1f
pop ecx
call fcn.64604471
test esi, esi
je 0x64614480
mov ecx, esi
call fcn.6460ce29
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x64614491
mov ecx, eax
call fcn.6460ce29
test edi, edi
je 0x6461449c
mov ecx, edi
call fcn.6460ce29
mov ecx, ebx
call fcn.6460ce29
jmp 0x6461494c
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 0x64614509
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x646143ac
test byte [eax + 0x1c], 2
je 0x646143ac
cmp byte [eax + 0x19], 2
jb 0x646143ac
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, 0x64603d08
pop ecx
call fcn.64604471
jmp 0x646143ac
movzx eax, word [esi + 0x46]
mov ecx, 0x3c4
cmp ax, cx
jae 0x64614545
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x6461453e
test byte [ecx + 0x1c], 2
je 0x6461453e
cmp byte [ecx + 0x19], 2
jb 0x6461453e
push ecx
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.64613f54
push 0xd
jmp 0x646143a6
movzx ecx, word [esi + 0x44]
add ecx, esi
cmp dword [ecx], 0x78616644
je 0x64614556
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 0x64603b50
mov dword [ecx + 4], eax
call dword [sym.imp.GDI32.dll_CreateDCW]
mov ecx, eax
mov dword [ebp - 0x9c], ecx
test ecx, ecx
jne 0x646145c2
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x646143ac
test byte [ecx + 0x1c], 2
je 0x646143ac
cmp byte [ecx + 0x19], 2
jb 0x646143ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x18
jmp 0x646144f9
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 0x64614645
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x646143ac
test byte [ecx + 0x1c], 2
je 0x646143ac
cmp byte [ecx + 0x19], 2
jb 0x646143ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x19
jmp 0x646144f9
xor edx, edx
cmp dword [edi + 0x28], edx
jne 0x646148ca
mov eax, dword [ebp - 0xa0]
cmp dword [eax], 0xffffffff
jne 0x64614672
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.64613f8b
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x646146c4
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x646143ac
test byte [ecx + 0x1c], 2
je 0x646143ac
cmp byte [ecx + 0x19], 2
jb 0x646143ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1a
jmp 0x646144f9
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x646146d1
mov dword [ebp - 0x88], ecx
xor eax, eax
test ecx, ecx
setne al
push eax
push 0x64601374
lea eax, [ebp - 0x1c]
push 0xa
push eax
call fcn.64604373
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x64614742
mov ecx, esi
movzx eax, si
and ecx, 0x1fff0000
cmp ecx, 0x70000
je 0x64614707
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6461473a
test byte [eax + 0x1c], 2
je 0x6461473a
cmp byte [eax + 0x19], 2
jb 0x6461473a
push esi
push dword [eax + 0x14]
mov edx, 0x64603d08
push dword [eax + 0x10]
push 0x1b
pop ecx
call fcn.64604471
mov esi, dword [ebp - 0x80]
jmp 0x646143ac
mov eax, dword [edi + 0x1c]
mov ecx, 0x64603b88
mov dword [ebp - 0x68], eax
mov edx, 0x64603b64
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], 0x64603b8c
mov dword [ebp - 0x64], 0x64603bac
mov dword [ebp - 0x5c], 0x64603bdc
mov dword [ebp - 0x54], 0x64603c0c
mov dword [ebp - 0x4c], 0x64603c34
mov dword [ebp - 0x44], 0x64603c64
mov dword [ebp - 0x3c], 0x64603c8c
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], 0x64603cb8
mov dword [ebp - 0x24], 0x64603ce0
call fcn.6460cf69
mov esi, dword [ebp - 0x88]
lea ecx, [esi + 2]
call fcn.6460cdc3
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x64614848
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [0x64617004]
cmp ecx, 0x64617004
je 0x6461473a
test byte [ecx + 0x1c], 2
je 0x6461473a
cmp byte [ecx + 0x19], 2
jb 0x6461473a
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.64613f25
jmp 0x6461473a
lea ecx, [ebp - 0x88]
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.6460cf69
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 0x646148c5
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x646148bd
test byte [eax + 0x1c], 2
je 0x646148bd
cmp byte [eax + 0x19], 2
jb 0x646148bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x64617004]
mov edx, 0x64603d08
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1d
pop ecx
call fcn.64604471
mov esi, dword [ebp - 0x80]
jmp 0x646143af
mov esi, dword [ebp - 0x80]
jmp 0x646148cc
mov edi, edx
push dword [ebp - 0x84]
call dword [sym.imp.WINSPOOL.DRV_ClosePrinter]
mov ecx, dword [ebp - 0x8c]
call fcn.6460ce29
mov ecx, esi
call fcn.6460ce29
mov ecx, dword [ebp - 0x98]
call fcn.6460ce29
mov ecx, edi
call fcn.6460ce29
mov ecx, dword [ebp - 0x78]
call fcn.6460ce29
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 0x6461494e
cmp eax, 0x64617004
je 0x64614944
test byte [eax + 0x1c], dl
je 0x64614944
cmp byte [eax + 0x19], dl
jb 0x64614944
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
mov edx, 0x64603d08
pop ecx
call fcn.64604453
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.64615e30
leave
ret 0xc