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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53dd64
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1fa4
call fcn.0052bf00
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 0x494df9
mov ecx, 0x14
lea eax, [esp + 0x34]
mov byte [eax], bl
inc eax
dec ecx
jne 0x4949e7
mov eax, dword [edx + 0x9314]
xor edi, edi
mov dword [esp + 0x14], edi
cmp dword [eax + 0xc], ebx
jle 0x494a25
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
cmp ecx, eax
je 0x494a25
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.005200b3
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.005200b3
add esp, 0x10
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x40], ebx
je 0x494df9
cmp eax, ebx
je 0x494df9
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x9314]
lea esi, [esp + 0x80]
call fcn.00519b30
mov dword [esp + 0x1fc0], ebx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x34], eax
cmp eax, ebx
jne 0x494ab0
mov dword [esp + 0x34], 0x54ee24
mov dword [esp + 0x20], ebx
cmp edi, ebx
jle 0x494bde
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.004d3c30
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 0x494b59
push eax
call fcn.0051eadb
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 0x494b7e
push eax
call fcn.0051eadb
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 0x494b8d
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 0x494bc4
push edi
call fcn.0051eadb
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 0x494aca
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.004b0520
mov edi, dword [esp + 0x1c]
call fcn.004b08b0
push 0x54ee24
lea edx, [esp + 0x1da2]
push 0x104
push edx
call fcn.0051f8a9
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 0x494cd1
lea eax, [esp + 0x8c]
mov byte [esp + 0x1fc0], 4
call fcn.00475b80
lea eax, [esp + 0xc38]
push eax
lea ecx, [esp + 0x1b98]
push 0x104
push ecx
call fcn.0051f8a9
add esp, 0xc
push 1
push ebx
push 1
push esi
lea eax, [esp + 0x1ba4]
call fcn.004b07b0
call fcn.00451a00
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.00473e20
test eax, eax
jne 0x494d86
mov edx, dword [esp + 0x24]
push edx
call fcn.00513750
push 0x32
call fcn.00514120
push str.SendFaxScanImage
lea eax, [esp + 0x68]
call fcn.004f4ed0
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x6c]
jmp 0x494d98
mov eax, dword [esp + 0x24]
push ebx
push 0x30
push 0xa421
push eax
call fcn.004439f0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0051ed03
mov edx, dword [esp + 0x44]
push edx
call fcn.0051ed03
add esp, 8
cmp esi, ebx
je 0x494dba
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x494dc6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0x1fc4], bl
call fcn.00475a90
mov dword [esp + 0x1fc0], 0xffffffff
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x494df9
push eax
call fcn.0051eadb
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.0051eacc
mov esp, ebp
pop ebp
ret 4