Function at 0x494a20
Capabilities:
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53dfc4
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1fa4
call fcn.0052c010
mov eax, dword [0x575494]
xor eax, esp
mov dword [esp + 0x1fa0], eax
push ebx
push esi
push edi
mov eax, dword [0x575494]
xor eax, esp
push eax
lea eax, [esp + 0x1fb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
cmp dword [edx + 0x9314], ebx
je 0x494e99
mov ecx, 0x14
lea eax, [esp + 0x34]
mov byte [eax], bl
inc eax
dec ecx
jne 0x494a87
mov eax, dword [edx + 0x9314]
xor edi, edi
mov dword [esp + 0x14], edi
cmp dword [eax + 0xc], ebx
jle 0x494ac5
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
cmp ecx, eax
je 0x494ac5
sub eax, ecx
mov ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
mov edi, eax
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
push 0x57a319
neg ecx
or ecx, eax
push ecx
call fcn.00520183
mov dword [esp + 0x48], eax
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
push 0x57a319
neg ecx
or ecx, eax
push ecx
call fcn.00520183
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x40], ebx
je 0x494e99
cmp eax, ebx
je 0x494e99
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x9314]
lea esi, [esp + 0x80]
call fcn.00519c50
mov dword [esp + 0x1fc0], ebx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x34], eax
cmp eax, ebx
jne 0x494b50
mov dword [esp + 0x34], 0x54ee24
mov dword [esp + 0x20], ebx
cmp edi, ebx
jle 0x494c7e
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
sub eax, esi
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx + 0x9314]
call fcn.004d3ba0
mov dword [esi], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push 0x54ede0
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x54]
push ecx
mov byte [esp + 0x1fcc], 1
call fcn.00508260
mov byte [esp + 0x1fcc], 2
mov edx, dword [esi]
push edx
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.00508260
add esp, 0x18
lea ecx, [esp + 0x28]
mov byte [esp + 0x1fc0], 3
call fcn.00508010
mov byte [esp + 0x1fc0], 2
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x494bf9
push eax
call fcn.0051ebab
add esp, 4
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov byte [esp + 0x1fc0], 1
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x494c1e
push eax
call fcn.0051ebab
add esp, 4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov edi, dword [esp + 0x28]
mov eax, edi
cmp edi, ebx
jne 0x494c2d
mov eax, 0x54ee24
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x48]
mov dword [ecx + esi], 1
mov byte [esp + 0x1fc0], bl
cmp edi, ebx
je 0x494c64
push edi
call fcn.0051ebab
add esp, 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x20]
inc eax
add esi, 4
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x14]
jl 0x494b6a
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
add esi, 0x92c4
push ebx
lea edi, [esp + 0x38]
mov ecx, esi
call fcn.004b04b0
mov edi, dword [esp + 0x1c]
call fcn.004b0840
push 0x54ee24
lea edx, [esp + 0x1da2]
push 0x104
push edx
call fcn.0051f979
add esp, 0xc
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x8c], vtable.CMemMap.0
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x9c], vtable.CSemaphore.0
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xb8], bl
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc0], vtable.CUseDll.0
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xcc], bl
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd4], bl
mov ecx, 0x1ab0
lea eax, [esp + 0xe4]
mov byte [eax], bl
inc eax
dec ecx
jne 0x494d71
lea eax, [esp + 0x8c]
mov byte [esp + 0x1fc0], 4
call fcn.00475d20
lea eax, [esp + 0xc38]
push eax
lea ecx, [esp + 0x1b98]
push 0x104
push ecx
call fcn.0051f979
add esp, 0xc
push 1
push ebx
push 1
push esi
lea eax, [esp + 0x1ba4]
call fcn.004b0740
call fcn.00451b20
or edi, 0xffffffff
xor esi, esi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], vtable.CPipe.0
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], 0x400
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], vtable.CEvent.0
mov dword [esp + 0x7c], esi
mov byte [esp + 0x1fc0], 5
call fcn.004741f0
test eax, eax
jne 0x494e26
mov edx, dword [esp + 0x24]
push edx
call fcn.00513880
push 0x32
call fcn.00514250
push str.SendFaxScanImage
lea eax, [esp + 0x68]
call fcn.004f4e60
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x6c]
jmp 0x494e38
mov eax, dword [esp + 0x24]
push ebx
push 0x30
push 0xa421
push eax
call fcn.00443b80
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0051edd3
mov edx, dword [esp + 0x44]
push edx
call fcn.0051edd3
add esp, 8
cmp esi, ebx
je 0x494e5a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x494e66
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0x1fc4], bl
call fcn.00475c30
mov dword [esp + 0x1fc0], 0xffffffff
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x494e99
push eax
call fcn.0051ebab
add esp, 4
mov ecx, dword [esp + 0x1fb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1fa0]
xor ecx, esp
call fcn.0051eb9c
mov esp, ebp
pop ebp
ret 4