Function at 0x10076c0d
Capabilities:
Move file

Disassembly:
push 0xb0
mov eax, 0x1018d94a
call fcn.10188e66
mov ebx, ecx
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x30]
mov dword [ebp - 0xb4], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push 6
mov dword [ebp - 0xb0], eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
push 6
pop ecx
push 7
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x6c], esi
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x68], ecx
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x7c], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], esi
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 1
mov eax, dword [0x101c33f0]
mov edi, 0x101c33f0
cmp eax, edi
je 0x10076c91
test byte [eax + 0x44], 4
je 0x10076c91
push dword [eax + 0x3c]
mov edx, 0x10020390
push dword [eax + 0x38]
push 0x48
pop ecx
call fcn.1004a045
mov eax, 0x1001fffc
cmp dword [ebx + 0xc], esi
jne 0x10076ca0
mov eax, 0x10020054
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x30]
push 0x10020048
push 0xd
push eax
call fcn.10045113
mov esi, eax
add esp, 0x14
test esi, esi
js 0x10076fe3
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xac]
call fcn.1005236c
push 0xffffffffffffffff
xor esi, esi
mov byte [ebp - 4], 2
push esi
lea edi, [ebx + 0x14]
push edi
push ecx
mov ecx, eax
call fcn.100799c5
push eax
lea ecx, [ebp - 0x94]
call fcn.100522e9
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1004fb83
xor ebx, ebx
lea ecx, [ebp - 0x94]
push esi
inc ebx
push ebx
call fcn.10052803
push esi
push ebx
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], bl
call fcn.10052803
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x10076d2c
lea eax, [ebp - 0x7c]
push ebx
push eax
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10076db6
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x10076d6f
test byte [eax + 0x44], bl
je 0x10076d6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x101c33f0]
mov edx, 0x10020390
push eax
push dword [ecx + 0x3c]
push dword [ecx + 0x38]
push 0x4a
pop ecx
call fcn.1004a069
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10076d86
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x10076db4
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x10077007
test byte [eax + 0x44], bl
je 0x10077007
push esi
push dword [eax + 0x3c]
mov edx, 0x10020390
push dword [eax + 0x38]
push 0x4b
jmp 0x10077001
xor esi, esi
mov ebx, dword [ebp - 0xb4]
lea eax, [ebp - 0xbc]
push eax
push 0x1a
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xb8]
push eax
push 0x10020094
push ebx
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDataW]
test eax, eax
jne 0x10076e43
cmp dword [ebp - 0xb8], 1
jne 0x10076e43
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xac]
call fcn.1005236c
push 0xffffffffffffffff
push esi
push edi
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.100799c5
push eax
lea ecx, [ebp - 0x94]
call fcn.100522e9
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x64]
call fcn.1004fb83
push esi
push 1
lea ecx, [ebp - 0x94]
call fcn.10052803
push esi
push 1
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
call fcn.10052803
lea ecx, [ebp - 0x30]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x10076e49
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x30]
push eax
push 1
push 0x10020094
push ebx
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov esi, eax
test esi, esi
je 0x10076efc
mov eax, dword [0x101c33f0]
mov edi, 0x101c33f0
cmp eax, edi
je 0x10076eb5
test byte [eax + 0x44], 1
je 0x10076eb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x101c33f0]
mov edx, 0x10020390
push esi
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x4c
pop ecx
call fcn.1004a2f5
mov eax, dword [0x101c33f0]
test esi, esi
jle 0x10076ec4
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x10076f01
cmp eax, edi
je 0x10076ee4
test byte [eax + 0x44], 1
je 0x10076ee4
push esi
push dword [eax + 0x3c]
mov edx, 0x10020390
push dword [eax + 0x38]
push 0x4d
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0xb4]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
jmp 0x1007701a
mov edi, 0x101c33f0
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0x10020060
push ebx
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov esi, eax
test esi, esi
je 0x10076f71
mov eax, dword [0x101c33f0]
cmp eax, edi
je 0x10076f43
test byte [eax + 0x44], 1
je 0x10076f43
push esi
push dword [eax + 0x3c]
mov edx, 0x10020390
push dword [eax + 0x38]
push 0x4e
pop ecx
call fcn.1004a069
mov eax, dword [0x101c33f0]
test esi, esi
jle 0x10076f52
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x10076f71
cmp eax, edi
je 0x10076ee4
test byte [eax + 0x44], 1
je 0x10076ee4
push esi
push dword [eax + 0x3c]
mov edx, 0x10020390
push dword [eax + 0x38]
push 0x4f
jmp 0x10076ede
cmp dword [ebp - 0x54], 0
je 0x10076fc3
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x10076f83
lea eax, [ebp - 0x64]
push 4
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10076fc5
mov eax, dword [0x101c33f0]
cmp eax, edi
je 0x10076fc5
test byte [eax + 0x44], 1
je 0x10076fc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x101c33f0]
mov edx, 0x10020390
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x50
pop ecx
call fcn.1004a069
jmp 0x10076fc5
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x64]
call fcn.10052803
push esi
push 1
lea ecx, [ebp - 0x7c]
call fcn.10052803
call fcn.10188e03
ret 0xc
mov ecx, dword [0x101c33f0]
cmp ecx, edi
je 0x10077007
test byte [ecx + 0x44], 1
je 0x10077007
push esi
push dword [ecx + 0x3c]
mov edx, 0x10020390
push dword [ecx + 0x38]
push 0x49
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0xb0]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3