Function at 0x10062875
Capabilities:
Move file

Disassembly:
push 0xc0
mov eax, 0x10166c33
call fcn.10163edf
mov ebx, ecx
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov dword [ebp - 0xc0], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push 6
mov dword [ebp - 0xbc], 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 - 0x48]
mov dword [ebp - 0xa8], esi
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0xa4], ecx
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0xb8], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x8c], esi
mov word [ebp - 0x9c], ax
mov byte [ebp - 4], 1
mov eax, dword [0x101923c0]
mov edi, 0x101923c0
cmp eax, edi
je 0x1006290b
test byte [eax + 0x44], 4
je 0x1006290b
push dword [eax + 0x3c]
mov edx, 0x1001b4a0
push dword [eax + 0x38]
push 0x46
pop ecx
call fcn.10040067
mov eax, 0x1001b9e8
cmp dword [ebx + 0xc], esi
jne 0x1006291a
mov eax, 0x1001b9f4
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push 0x1001ba00
push 0xd
push eax
call fcn.1003fd37
mov esi, eax
add esp, 0x14
test esi, esi
js 0x10062cdb
xor esi, esi
mov dword [ebp - 0x6c], 7
xor eax, eax
mov dword [ebp - 0x70], esi
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x80], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x10062953
sub ecx, edx
lea eax, [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x80]
call fcn.10045aa5
push 0xffffffffffffffff
push esi
lea edi, [ebx + 0x14]
mov byte [ebp - 4], 2
push edi
push ecx
lea ecx, [ebp - 0x80]
call fcn.10065517
xor ecx, ecx
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], cx
lea ecx, [ebp - 0x64]
push eax
mov dword [ebp - 0x54], esi
call fcn.10045157
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xb8]
call fcn.10045157
xor ebx, ebx
lea ecx, [ebp - 0x64]
push esi
inc ebx
push ebx
call fcn.10045ee3
push esi
push ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], bl
call fcn.10045ee3
cmp dword [ebp - 0xa4], 8
mov eax, dword [ebp - 0xb8]
jae 0x100629de
lea eax, [ebp - 0xb8]
push ebx
push eax
push dword [ebp - 0xbc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10062a67
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x10062a20
test byte [eax + 0x44], bl
je 0x10062a20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x101923c0]
mov edx, 0x1001b4a0
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x48
pop ecx
call fcn.100401e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10062a37
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x10062a65
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x10062cff
test byte [eax + 0x44], bl
je 0x10062cff
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b4a0
push dword [eax + 0x38]
push 0x49
jmp 0x10062cf9
xor esi, esi
mov ebx, dword [ebp - 0xc0]
lea eax, [ebp - 0xc8]
push eax
push 0x1a
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0xc4]
push eax
push 0x1001ba0c
push ebx
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDataW]
test eax, eax
jne 0x10062b29
cmp dword [ebp - 0xc4], 1
jne 0x10062b29
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], esi
lea edx, [ecx + 2]
mov word [ebp - 0x64], ax
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x10062ab6
sub ecx, edx
lea eax, [ebp - 0x48]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.10045aa5
push 0xffffffffffffffff
push esi
push edi
push ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call fcn.10065517
xor ecx, ecx
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], cx
lea ecx, [ebp - 0x80]
push eax
mov dword [ebp - 0x70], esi
call fcn.10045157
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x9c]
call fcn.10045157
push esi
push 1
lea ecx, [ebp - 0x80]
call fcn.10045ee3
push esi
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.10045ee3
lea ecx, [ebp - 0x2c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x10062b2f
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push 0x1001ba0c
push ebx
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov esi, eax
test esi, esi
je 0x10062be2
mov eax, dword [0x101923c0]
mov edi, 0x101923c0
cmp eax, edi
je 0x10062b9b
test byte [eax + 0x44], 1
je 0x10062b9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x101923c0]
mov edx, 0x1001b4a0
push esi
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x4a
pop ecx
call fcn.1004026c
mov eax, dword [0x101923c0]
test esi, esi
jle 0x10062baa
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x10062be7
cmp eax, edi
je 0x10062bca
test byte [eax + 0x44], 1
je 0x10062bca
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b4a0
push dword [eax + 0x38]
push 0x4b
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0xc0]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
jmp 0x10062d12
mov edi, 0x101923c0
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0x1001ba40
push ebx
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov esi, eax
test esi, esi
je 0x10062c57
mov eax, dword [0x101923c0]
cmp eax, edi
je 0x10062c29
test byte [eax + 0x44], 1
je 0x10062c29
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b4a0
push dword [eax + 0x38]
push 0x4c
pop ecx
call fcn.100401e4
mov eax, dword [0x101923c0]
test esi, esi
jle 0x10062c38
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x10062c57
cmp eax, edi
je 0x10062bca
test byte [eax + 0x44], 1
je 0x10062bca
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b4a0
push dword [eax + 0x38]
push 0x4d
jmp 0x10062bc4
cmp dword [ebp - 0x8c], 0
je 0x10062cb5
cmp dword [ebp - 0x88], 8
mov eax, dword [ebp - 0x9c]
jae 0x10062c75
lea eax, [ebp - 0x9c]
push 4
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10062cb7
mov eax, dword [0x101923c0]
cmp eax, edi
je 0x10062cb7
test byte [eax + 0x44], 1
je 0x10062cb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x101923c0]
mov edx, 0x1001b4a0
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x4e
pop ecx
call fcn.100401e4
jmp 0x10062cb7
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x9c]
call fcn.10045ee3
push esi
push 1
lea ecx, [ebp - 0xb8]
call fcn.10045ee3
call fcn.10163e8e
ret 0xc
mov ecx, dword [0x101923c0]
cmp ecx, edi
je 0x10062cff
test byte [ecx + 0x44], 1
je 0x10062cff
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001b4a0
push dword [ecx + 0x38]
push 0x47
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0xbc]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3