Function at 0x1013751
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x102e050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x40], ebx
call fcn.0101ce9b
lea ecx, [ebp - 0x14]
call fcn.0101ce9b
lea ecx, [ebp - 0x1c]
call fcn.0101ce9b
push 0x50
lea eax, [ebp - 0x90]
push ebx
push eax
mov dword [ebp - 0x94], ebx
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
lea edi, [esi + 0x54]
add esp, 0xc
mov ecx, edi
call fcn.0101cee6
test eax, eax
jbe 0x101381d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x102eae0
push edi
push dword [ebp - 0x30]
call fcn.0100c14d
mov ecx, eax
and ecx, 0xffff
mov dword [ebp - 0x20], eax
cmp ecx, 0x32
jne 0x1013814
push ebx
push dword [esi + 0x28]
push eax
push 0xc002000e
push 2
push 1
call fcn.0100d0dd
push ebx
mov ecx, edi
call fcn.0101d352
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], ebx
jl 0x10139da
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x90], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x8c], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x88], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x84], eax
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x6c], eax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0x84]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + 0x88]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x8c]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x90]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
neg eax
lea ecx, [esi + 0xa8]
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x64], eax
call fcn.0101d7f5
test eax, eax
jl 0x10138ef
push dword [ebp - 0x84]
mov ecx, dword [ebp - 0x2c]
call fcn.0101c471
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x10138ef
push dword [ebp - 0x90]
push eax
push dword [ebp - 0x84]
push 0x4002000c
push 2
push 4
call fcn.0100d069
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x14]
sub eax, ebx
je 0x101391c
dec eax
je 0x1013905
dec eax
jne 0x1013923
mov dword [ebp - 0x38], 4
jmp 0x1013923
mov eax, dword [ebp - 0x60]
and eax, 0x2000
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
mov dword [ebp - 0x38], eax
jmp 0x1013923
mov dword [ebp - 0x38], 1
mov ecx, edi
call fcn.0101cee6
test eax, eax
je 0x101395c
push ebx
push dword [ebp - 0x40]
push dword [ebp - 0x10]
call fcn.0100a59d
cmp eax, ebx
mov dword [ebp - 0x20], eax
jge 0x1013961
push ebx
push dword [ebp - 0x90]
call fcn.01005299
push eax
push 0xc002005d
push 2
push 1
call fcn.0100d0dd
cmp dword [ebp - 0x20], ebx
jl 0x10139da
mov ecx, edi
call fcn.0101cee6
test eax, eax
je 0x10139da
push dword [esi + 0xa0]
lea ecx, [ebp - 0xc]
call fcn.0101d352
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x10139da
push 0x10015ec
lea ecx, [ebp - 0xc]
call fcn.0101d26a
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x10139da
push dword [esi + 0x58]
lea ecx, [ebp - 0xc]
call fcn.0101d26a
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x10139da
push ebx
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10139da
call fcn.01005299
push ebx
push dword [esi + 0x28]
push eax
push 0xc002000e
push 2
pop edi
push edi
push 1
call fcn.0100d0dd
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x20], ebx
jmp 0x10139dd
push 2
pop edi
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
jl 0x1013cae
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x94]
push eax
push edi
push dword [ebp - 0x90]
mov ecx, esi
push dword [ebp - 0x30]
call fcn.0101236d
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x1013a75
push dword [ebp - 0x24]
push dword [ebp - 0x34]
call fcn.0101331a
cmp eax, ebx
mov dword [ebp - 0x20], eax
push ebx
jl 0x1013a32
push ebx
push dword [esi + 0x28]
push 0x40020010
push edi
push 4
call fcn.0100d069
jmp 0x1013a43
push dword [esi + 0x28]
push eax
push 0xc0020011
push edi
push 4
call fcn.0100d0dd
lea eax, [ebp - 0x3c]
push eax
push 7
push dword [ebp - 0x24]
mov ecx, esi
call fcn.0101240e
test eax, eax
jge 0x1013a68
push ebx
push ebx
push dword [esi + 0x28]
push 0x80020012
push edi
push edi
call fcn.0100d069
push dword [ebp - 0x24]
call sub.WINSPOOL.DRV_ClosePrinter
jmp 0x1013cae
mov ecx, eax
and ecx, 0xffff
cmp ecx, 0x70a
jne 0x1013be4
cmp dword [ebp + 0x10], 1
jne 0x1013bb7
push ebx
push ebx
push dword [ebp - 0x90]
push 0x80020013
push edi
push 4
call fcn.0100d069
lea eax, [ebp - 0x25]
push eax
push dword [ebp - 0x30]
mov byte [ebp - 0x25], bl
push dword [ebp - 0x88]
call fcn.0100bd88
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x1013cae
cmp byte [ebp - 0x25], bl
je 0x1013b9b
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], 0xf000c
call sub.WINSPOOL.DRV_OpenPrinterW
test eax, eax
je 0x1013b8e
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x94]
push eax
push edi
push dword [ebp - 0x24]
mov ecx, esi
call fcn.0101240e
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x1013a68
lea eax, [ebp - 0x2c]
push eax
push 8
push dword [ebp - 0x24]
mov ecx, esi
call fcn.0101240e
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x1013a68
push dword [ebp - 0x24]
push dword [ebp - 0x34]
call fcn.0101331a
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x1013a68
test dword [esi + 0x80], reloc.NETAPI32.dll_NetApiBufferFree
jne 0x1013b6c
cmp dword [ebp + 0x14], ebx
jne 0x1013a68
lea eax, [ebp - 0x3c]
push eax
push 7
push dword [ebp - 0x24]
mov ecx, esi
call fcn.0101240e
test eax, eax
jge 0x1013a68
push ebx
push ebx
push dword [esi + 0x28]
jmp 0x1013a5c
call fcn.01005299
mov dword [ebp - 0x20], eax
jmp 0x1013cae
push ebx
push dword [ebp - 0x88]
push dword [esi + 0x28]
push 0xc002004d
push edi
push 1
call fcn.0100d069
jmp 0x1013cae
cmp dword [ebp + 0x10], ebx
jne 0x1013cae
push ebx
push ebx
push dword [ebp - 0x90]
push 0x80020014
push edi
push 4
call fcn.0100d069
mov dword [ebp - 0x20], ebx
mov byte [esi + 0xa4], 1
jmp 0x1013cae
push ebx
cmp ecx, 0x704
jne 0x1013c9d
push dword [esi + 0x38]
push dword [esi + 0x28]
push 0x80020015
push edi
push 1
call fcn.0100d069
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x94]
push eax
push edi
push dword [ebp - 0x90]
mov ecx, esi
push dword [ebp - 0x30]
mov dword [ebp - 0x88], 0x100315c
call fcn.0101236d
cmp eax, ebx
mov dword [ebp - 0x20], eax
jl 0x1013c8f
push dword [ebp - 0x24]
push dword [ebp - 0x34]
call fcn.0101331a
test dword [esi + 0x80], 0x2000
mov dword [ebp - 0x20], eax
je 0x1013c70
lea eax, [ebp - 0x3c]
push eax
push 7
push dword [ebp - 0x24]
mov ecx, esi
call fcn.0101240e
test eax, eax
jge 0x1013c70
push ebx
push ebx
push dword [esi + 0x28]
push 0x80020012
push edi
push edi
call fcn.0100d069
push dword [ebp - 0x24]
call sub.WINSPOOL.DRV_ClosePrinter
cmp dword [ebp - 0x20], ebx
jl 0x1013c8f
push ebx
push ebx
push dword [esi + 0x28]
push 0x40020016
push edi
push 4
jmp 0x1013bad
push ebx
push dword [esi + 0x28]
push dword [ebp - 0x20]
push 0xc0020017
jmp 0x1013ca6
push dword [esi + 0x28]
push eax
push 0xc002005c
push edi
push 1
call fcn.0100d0dd
lea ecx, [ebp - 0x1c]
call fcn.0101cff5
lea ecx, [ebp - 0x14]
call fcn.0101cff5
lea ecx, [ebp - 0xc]
call fcn.0101cff5
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01007c80
leave
ret 0x18